/* ==========================================================
   FICHA DE PRODUCTO — Tienda Excelencia
   ========================================================== */

/* ---- WRAPPER GENERAL ---- */
.ficha-producto {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 980px;
    margin: 20px auto 0;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    align-items: stretch;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* ---- COLUMNA IMAGEN (izquierda ~45%) ---- */
.producto-imagen {
    flex: 1 1 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
}

.producto-imagen a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease;
}

.producto-imagen a:hover {
    transform: scale(1.03);
}

.producto-imagen img {
    max-width: 100%;
    max-height: 380px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.07));
}

/* ---- COLUMNA INFO (derecha ~55%) ---- */
.ficha-producto-info {
    flex: 1 1 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 36px;
}

/* ---- CATEGORÍA BADGE ---- */
.producto-categoria {
    display: inline-block;
    margin-bottom: 14px;
}

.producto-categoria a {
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #eef4ff;
    padding: 4px 10px;
    border-radius: 20px;
}

.producto-categoria a:hover {
    background: #1a73e8;
    color: #fff;
}

/* ---- CTA BOX (cuadro amarillo) ---- */
.ficha-cta-box {
    background: #fffef0;
    border: 2px solid #ffe600;
    border-radius: 12px;
    padding: 22px 24px;
}

/* ---- BOTÓN VER OFERTA ---- */
.btn-ver-oferta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #fff159;
    color: #1a1a2e !important;
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    text-decoration: none !important;
    padding: 16px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    touch-action: manipulation;
    letter-spacing: 0.1px;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-ver-oferta:hover {
    background: #ffe600;
    color: #1a1a2e !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

.btn-ver-oferta:active {
    transform: translateY(0) scale(0.99);
}

/* ---- TRUST SIGNALS ---- */
.ficha-trust {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ficha-trust span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* ---- TEXTO DEL ARTÍCULO ---- */
.ficha-texto {
    max-width: 980px;
    margin: 28px auto 0;
    padding: 24px 28px;
    font-size: 15.5px;
    color: #444;
    line-height: 1.75;
    border-top: 1px solid #eee;
}

.ficha-texto p      { margin-bottom: 14px; }
.ficha-texto h2     {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 26px 0 10px;
}
.ficha-texto h3     {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 20px 0 8px;
}
.ficha-texto strong { color: #222; }
.ficha-texto ul,
.ficha-texto ol     { padding-left: 22px; margin-bottom: 14px; }
.ficha-texto li     { margin-bottom: 6px; }

/* ---- CTA FINAL (debajo del texto) ---- */
.ficha-cta-final {
    max-width: 980px;
    margin: 0 auto 36px;
    padding: 0 28px 28px;
    text-align: center;
}

.btn-ver-oferta--alt {
    max-width: 460px;
    margin: 0 auto;
    font-size: 16px;
}

/* ---- CTA MOBILE (solo visible en mobile) ---- */
.ficha-cta-mobile {
    display: none;
}

/* ---- STICKY BAR MOBILE ---- */
.sticky-ver-oferta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    padding: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
}

.sticky-ver-oferta .btn-ver-oferta {
    margin: 0;
    padding: 14px;
    font-size: 16px;
}

/* ---- OCULTAR COSAS INNECESARIAS ---- */
.single-post .post-image,
.single-post figure.post-image,
.single-post .featured-image { display: none !important; }
.entry-meta                  { display: none !important; }
.copyright-bar               { display: none; }
.single-post .site-content .content-area { max-width: 100% !important; }

/* ---- TÍTULO H1 ---- */
body.single-post .entry-title,
body.single-post .entry-header .entry-title {
    text-align: center !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    color: #1a1a2e !important;
    padding: 0 20px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 768px) {
    .ficha-producto {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .producto-imagen {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        flex: 1 1 100%;
        padding: 20px;
    }

    .producto-imagen img {
        max-height: 280px;
    }

    .ficha-producto-info {
        flex: 1 1 100%;
        padding: 0 18px 20px;
    }

    .ficha-cta-box {
        display: none;
    }

    .ficha-cta-mobile {
        display: block;
        padding: 12px 18px;
    }

    .ficha-cta-final .btn-ver-oferta--alt {
        display: none;
    }

    .sticky-ver-oferta {
        display: block;
    }

    body.single-post {
        padding-bottom: 76px;
    }

    body.single-post .entry-title,
    body.single-post .entry-header .entry-title {
        font-size: 26px !important;
        padding: 0 14px;
    }

    .ficha-texto {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    body.single-post .entry-title,
    body.single-post .entry-header .entry-title {
        font-size: 22px !important;
    }
}
