/* ================================= */
/* ENCABEZADO */
/* ================================= */

.encabezado {
    position: sticky;
    top: 0;
    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 18px 48px;

    background: var(--blanco);
    border-bottom: var(--borde-fuerte);
}



.btn-subir {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 35px;
    height: 35px;

    background: var(--terracota);
    border: none;
    cursor: pointer;

    transform: rotate(-45deg);
    border-radius: 0 0 5px 0;

    z-index: 9999;

    box-shadow: 0 3px 8px rgba(28, 26, 22, 0.25);

    transition: background 0.3s ease, transform 0.3s ease;
}

/* Las dos partes redondas del corazón */
.btn-subir::before,
.btn-subir::after {
    content: "";
    position: absolute;

    width: 35px;
    height: 35px;

    background: var(--terracota);
    border-radius: 50%;

    transition: background 0.3s ease;
}

.btn-subir::before {
    top: -17px;
    left: 0;
}

.btn-subir::after {
    top: 0;
    left: 17px;
}

/* Al pasar el mouse */
.btn-subir:hover {
    background: var(--negro);
    transform: rotate(-45deg) scale(1.12);
}

.btn-subir:hover::before,
.btn-subir:hover::after {
    background: var(--negro);
}

.marca-nombre {
    font-family: var(--serif);
    font-style: italic;
    font-size: 24px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-principal {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-principal a {
    text-decoration: none;
    font-size: 15px;
    position: relative;
    padding-bottom: 3px;
}

.nav-principal a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: var(--negro);
    transition: width 0.25s ease;
}

.nav-principal a:hover::after,
.nav-principal a[aria-current="page"]::after {
    width: 100%;
}

.acciones-header {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icono-boton {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--linea-oscura);
    border-radius: 50%;
    background: transparent;
    color: var(--negro);
    cursor: pointer;
    transition: var(--transicion-normal);
}

.icono-boton:hover {
    background: var(--negro);
    color: var(--blanco);
    border-color: var(--negro);
}

.icono-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

}

.contador-carrito {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radio-md);
    background: var(--negro);
    color: var(--blanco);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-movil-btn {
    display: none;
}

.buscador-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border: var(--borde-fuerte);
    border-radius: var(--radio-lg);
    padding: 8px 16px;
    min-width: 220px;
}

.buscador-header input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 14px;
}

/* =========================================
   BOTÓN MENÚ DE CONFIGURACIÓN
========================================= */

.menu-movil-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;

    color: var(--negro);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-movil-btn:hover {
    transform: scale(1.08);
    opacity: 0.7;
}

.menu-movil-btn:focus {
    outline: none;
    box-shadow: none;
}

/* ================================= */
/* HERO — VERSIÓN COLOMBIA */
/* ================================= */

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: var(--negro);
    color: var(--blanco);
    overflow: hidden;
    padding: var(--space-8) var(--space-6) var(--space-7);
}

/* Capa de gradiente + viñeta */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 15%, rgba(16, 97, 74, 0.34) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(191, 159, 92, 0.16) 0%, transparent 50%),
        linear-gradient(180deg, rgba(28, 26, 22, 0) 30%, rgba(28, 26, 22, 0.92) 100%);
    z-index: 1;
}

/* Patrón sutil "tejido" */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.012) 40px,
            rgba(255, 255, 255, 0.012) 41px
        );
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

/* Video de fondo opcional */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
}

.hero-contenido {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: var(--space-6);
    max-width: var(--contenedor);
    margin: 0 auto;
}

.hero-titulo-fijo {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--oro);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-titulo-fijo::before {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--gradiente-oro);
}

/* Título cambiante con animación de palabras */
.titulo-cambiante {
    position: relative;
    height: 200px;
    max-width: 720px;
}

.frase {
    position: absolute;
    left: 0;
    bottom: 0;
    font-family: var(--display);
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.05;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.frase span {
    display: inline-block;
    opacity: 0;
}

/* Énfasis en palabras clave: UN SOLO acento (regla de armonía).
   Antes había 5 colores distintos en la misma frase; ahora el
   énfasis es siempre oro y la marca vive en el fondo del héroe. */
.frase .resalte { color: var(--oro); }

/* CTA */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
    padding-bottom: var(--space-1);
}

.btn-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);

    min-height: var(--btn-alto);
    padding: 0 var(--btn-pad-x);

    background: var(--esmeralda);
    color: var(--blanco);
    text-decoration: none;

    border: var(--btn-borde);
    border-radius: var(--radio-sm);
    box-shadow: var(--elev-2);

    font-size: var(--btn-tamano);
    font-weight: var(--btn-peso);
    letter-spacing: 0.01em;

    transition:
        transform var(--transicion-rapida),
        box-shadow var(--transicion-rapida),
        background var(--transicion-rapida),
        color var(--transicion-rapida),
        border-color var(--transicion-rapida);
}

.btn-principal:hover {
    transform: translateY(var(--btn-desplazamiento));
    box-shadow: var(--elev-3);
    background: var(--esmeralda-oscura);
    color: var(--blanco);
}

.btn-principal:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-principal:focus-visible {
    outline: 3px solid var(--oro);
    outline-offset: 3px;
}

/* Sobre el hero (fondo oscuro): botón claro con sombra dorada.
   El oro se usa como acento, no como relleno, para no competir
   con las palabras resaltadas del titular. */
.hero .btn-principal {
    background: var(--blanco);
    color: var(--negro);
    border-color: transparent;
    box-shadow: var(--elev-oro);
}

.hero .btn-principal:hover {
    background: var(--oro);
    color: var(--negro);
    box-shadow: var(--elev-3);
}

.btn-principal .flecha {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: inherit;
    transition: transform var(--transicion-normal);
}

.btn-principal:hover .flecha {
    transform: translateX(4px);
}

.hero-nota {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: right;
    max-width: 260px;
    line-height: 1.5;
    font-style: italic;
}

/* Badge de confianza */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radio-full);
    font-size: 12px;
    color: var(--oro-claro);
    margin-top: var(--space-3);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

/* ================================= */
/* TICKER DE FIRMAS (DISEÑADORAS) */
/* ================================= */

.ticker-firmas {
    background: var(--oro);
    color: var(--negro);
    border-top: var(--borde-fuerte);
    border-bottom: var(--borde-fuerte);
    overflow: hidden;
    padding: 16px 0;
}

.ticker-pista {
    display: flex;
    gap: 46px;
    width: max-content;
    animation: desfilar 38s linear infinite;
}

.ticker-firmas:hover .ticker-pista {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--negro);
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ticker-item:hover {
    opacity: 0.62;
}

.ticker-item .punto {
    font-family: var(--sans);
    font-style: normal;
    font-size: 11px;
    color: var(--niebla);
}

@keyframes desfilar {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ================================= */
/* SECCIONES GENERALES */
/* ================================= */

.seccion {
    padding: var(--seccion-pad-y) 48px;
}

.seccion-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 44px;
    padding-bottom: 22px;
    border-bottom: var(--borde-fuerte);
}

.seccion-titulo {
    font-family: var(--serif);
    font-size: var(--seccion-titulo-tamano);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    max-width: 18ch;
}

.seccion-descripcion {
    color: var(--niebla);
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
    text-align: right;
}

/* ================================= */
/* PIE DE PÁGINA */
/* ================================= */

.pie {
    background: var(--negro);
    color: var(--blanco);
    padding: 70px 48px 30px;
    border-top: 5px solid var(--oro);
}

.pie-arriba {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--linea-clara);
}

.pie-marca {
    max-width: 340px;
}

.pie-marca .marca-nombre {
    color: var(--blanco);
}

.pie-marca p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.pie-columnas {
    display: flex;
    gap: 70px;
}

.pie-columna h4 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    font-weight: 500;
}

.pie-columna a {
    display: block;
    text-decoration: none;
    color: var(--blanco);
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.85;
}

.pie-columna a:hover {
    opacity: 1;
    text-decoration: underline;
}

.pie-abajo {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ================================= */
/* DRAWER GENÉRICO (CARRITO / CUENTA) */
/* ================================= */

.fondo-drawer {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 22, 0.6);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fondo-drawer.activo {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 440px;
    max-width: 92vw;
    background: var(--blanco);
    z-index: 901;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    flex-direction: column;
}

.drawer.activo {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--linea-oscura);
}

.drawer-header h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}

.drawer-cerrar {
    font-size: 26px;
    line-height: 1;
}

.drawer-cuerpo {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.drawer-pie {
    padding: 22px 28px 28px;
    border-top: 1px solid var(--linea-oscura);
}

/* ================================= */
/* MODAL GENÉRICO */
/* ================================= */

.fondo-modal {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 22, 0.72);
    z-index: 950;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.fondo-modal.activo {
    display: flex;
}

.modal {
    position: relative;
    background: var(--blanco);
    width: 100%;
    border-radius: var(--radio-sm);
    animation: aparecer 0.25s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-cerrar {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    z-index: 5;
}

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

@media (max-width: 980px) {
    .seccion {
        padding: 70px 30px;
    }

    .encabezado {
        padding: 18px 24px;
    }

    .buscador-header {
        display: none;
    }

    .hero {
        padding: 40px 24px 50px;
    }

    .frase {
        font-size: 42px;
    }

    .titulo-cambiante {
        height: 150px;
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .nav-principal {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 78vw;
        max-width: 320px;
        background: var(--negro);
        color: var(--blanco);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 26px;
        padding: 100px 30px 30px;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 600;
    }

    .nav-principal.abierto {
        transform: translateX(0);
    }

    .nav-principal a {
        font-size: 20px;
        font-family: var(--serif);
    }

    .menu-movil-btn {
        display: flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }

    .hero {
        min-height: 74vh;
        align-items: flex-end;
    }

    .hero-contenido {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .hero-cta {
        align-items: flex-start;
        width: 100%;
    }

    .hero-nota {
        text-align: left;
    }

    .frase {
        font-size: 34px;
    }

    .seccion-encabezado {
        flex-direction: column;
        align-items: flex-start;
    }

    .seccion-descripcion {
        text-align: left;
        max-width: 100%;
    }

    .seccion-titulo {
        font-size: 28px;
    }

    .pie-arriba {
        flex-direction: column;
        gap: 34px;
    }

    .pie-columnas {
        gap: 40px;
        flex-wrap: wrap;
    }

    .pie-abajo {
        flex-direction: column;
        gap: 10px;
    }

    .drawer {
        width: 100vw;
        max-width: 100vw;
    }
}