/* ==========================================
   FRUTA DORADA
   CATALOGO.CSS
========================================== */

/* ==========================
   SECCIÓN CATÁLOGO
========================== */

.catalogo {
    background: #F0EBE1;
    padding-bottom: 0;
}

/* ==========================
   HEADER DEL CATÁLOGO
========================== */

.catalog-header {
    text-align: center;
    padding: 100px 40px 60px;
    border-bottom: 1px solid rgba(201,154,51,.2);
}

.catalog-header .catalog-subtitle {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 6px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.catalog-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 14px;
}

.catalog-header p {
    font-size: 1rem;
    color: #666;
    max-width: 480px;
    margin: auto;
    line-height: 1.8;
}

/* ==========================
   FICHA DE PRODUCTO
========================== */

.producto-ficha {
    position: relative;
    background: #F5F0E8;
    border-top: 1px solid rgba(201,154,51,.15);
}

/* Número de producto — esquina superior derecha */
.ficha-numero {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.ficha-numero span {
    font-size: .72rem;
    letter-spacing: 4px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    padding: 14px 20px 14px 0;
}

.ficha-numero strong {
    background: var(--gold);
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 22px;
    letter-spacing: 1px;
}

/* ==========================
   GRID PRINCIPAL: foto | info
========================== */

.ficha-body {
    display: grid;
    grid-template-columns: 50vw 1fr;
    width: 100vw;
    max-width: 100vw;
    min-height: 88vh;
    align-items: stretch;
    gap: 0;
    margin-left: calc(50% - 50vw);
}

/* Columna imagen: full-bleed sin padding ni efectos */
.ficha-imagen {
    position: relative;
    overflow: hidden;
    padding: 0;
    display: block;
}

/* Quitamos el radial-gradient que aclaraba la foto */
.ficha-imagen::after {
    display: none;
}

.ficha-imagen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
    max-width: none;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.ficha-imagen:hover img {
    transform: scale(1.05);
}

/* Columna info */
.ficha-info {
    padding: 90px 70px 60px 40px;
    border-left: 1px solid rgba(201,154,51,.15);
}

/* ==========================
   NOMBRE DEL PRODUCTO
========================== */

.ficha-nombre {
    margin-bottom: 20px;
}

.ficha-nombre h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

.ficha-nombre h2 span {
    display: block;
    font-size: 1.9rem;
    font-weight: 400;
    color: #F0C84A;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    margin-top: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.22);
}

/* ==========================
   DESCRIPCIÓN
========================== */

.ficha-descripcion {
    font-size: .97rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.88);
    margin-bottom: 32px;
    max-width: 420px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.22);
}

/* ==========================
   ATRIBUTOS / ÍCONOS
========================== */

.ficha-atributos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201,154,51,.25);
}

.atributo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.atributo i {
    width: 20px;
    color: var(--gold);
    font-size: 1rem;
    flex-shrink: 0;
}

.atributo span {
    font-size: .88rem;
    color: #444;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ==========================
   ESPECIFICACIONES
========================== */

.ficha-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 36px;
}

.ficha-specs div {
    display: flex;
    gap: 8px;
    font-size: .88rem;
    line-height: 1.6;
}

.ficha-specs strong {
    color: var(--dark);
    font-weight: 600;
    min-width: 130px;
    flex-shrink: 0;
}

.ficha-specs span {
    color: #555;
}

/* ==========================
   QR + CONTACTO
========================== */

.ficha-qr {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ficha-qr img {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(201,154,51,.3);
    padding: 4px;
    background: white;
}

.ficha-qr-placeholder {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(201,154,51,.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-qr-placeholder svg {
    width: 52px;
    height: 52px;
    opacity: .4;
}

.ficha-qr p {
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    line-height: 1.7;
}

/* ==========================
   GALERÍA
========================== */

.ficha-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(201,154,51,.15);
    margin-bottom: 90px;
}

.ficha-galeria figure {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    margin: 0;
}

.ficha-galeria figure:not(:last-child) {
    border-right: 1px solid rgba(201,154,51,.15);
}

.ficha-galeria figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
    display: block;
}

.ficha-galeria figure:hover img {
    transform: scale(1.06);
}

.ficha-galeria figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: white;
    font-size: .75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 28px 16px 14px;
    text-align: center;
    transform: translateY(100%);
    transition: transform .4s ease;
}

.ficha-galeria figure:hover figcaption {
    transform: translateY(0);
}

/* Placeholder para fotos aún no disponibles */
.ficha-galeria .foto-placeholder {
    width: 100%;
    height: 100%;
    background: #E8E2D8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #bbb;
}

.ficha-galeria .foto-placeholder i {
    font-size: 1.8rem;
}

.ficha-galeria .foto-placeholder span {
    font-size: .7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================
   SEPARADOR ENTRE PRODUCTOS
========================== */

.producto-separador {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(201,154,51,.4) 30%,
        rgba(201,154,51,.4) 70%,
        transparent
    );
    margin: 0 60px;
}



/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 900px) {
    .ficha-body {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        min-height: auto;
    }

    .ficha-imagen,
    .ficha-imagen-fullbleed {
        aspect-ratio: 3 / 4;
        min-height: unset;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid rgba(201,154,51,.15);
    }

    .ficha-imagen img,
    .ficha-imagen-fullbleed img {
        max-width: none;
        object-position: center center;
    }

    .ficha-info {
        padding: 40px 30px 50px;
        border-left: none;
    }

    .ficha-nombre h2 {
        font-size: 2.8rem;
    }

    .ficha-nombre h2 span {
        font-size: 1.3rem;
    }

    /* Overlay en móvil: texto más pequeño y compacto */
    .ficha-img-overlay {
        padding: 24px 20px 28px;
    }

    .ficha-img-overlay .ficha-nombre h2 {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .ficha-img-overlay .ficha-nombre h2 span {
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-top: 2px;
    }

    .ficha-img-overlay .ficha-descripcion {
        font-size: .82rem;
        line-height: 1.6;
        margin-top: 8px;
    }

    .ficha-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

    .ficha-galeria figure:nth-child(2) {
        border-right: none;
    }

    .ficha-galeria figure:nth-child(1),
    .ficha-galeria figure:nth-child(2) {
        border-bottom: 1px solid rgba(201,154,51,.15);
    }

    .ficha-footer {
        flex-direction: column;
        gap: 16px;
        padding: 20px 30px;
        text-align: center;
    }

    .ficha-footer-items {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .ficha-numero span {
        display: none;
    }

    .catalog-header {
        padding: 70px 24px 40px;
    }

    .catalog-header h2 {
        font-size: 2.2rem;
    }
}

/* ==========================
   BARRA INFERIOR FIJA
========================== */

.catalogo-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 60px;
    background: var(--dark);
    border-top: 2px solid var(--gold);
    transform: translateY(100%);
    transition: transform .4s ease;
}

.catalogo-bar.visible {
    transform: translateY(0);
}

.catalogo-bar-items {
    display: flex;
    align-items: center;
    gap: 48px;
}

.catalogo-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalogo-bar-item i {
    color: var(--gold);
    font-size: .9rem;
}

.catalogo-bar-item span {
    font-size: .72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

.catalogo-bar-url {
    font-size: .72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 900px) {
    .catalogo-bar {
        padding: 12px 24px;
        flex-direction: column;
        gap: 8px;
    }
    .catalogo-bar-items {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
