/* ================================================
   HOME v2 — Hero con VIDEO full-bleed.
   ────────────────────────────────────────────────
   Solo redefine el hero. El resto del home (marcas,
   envíos, productos, valores, editorial CTA, newsletter)
   reusa pages/home.css idéntico.
   ================================================ */

/* Sección hero — reusa .hero base (height, min/max) y suma .hero-video-section */
.hero-video-section {
    position: relative;
    overflow: hidden;
}

/* Video wrap absoluto — ocupa todo el hero */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--bb-bg-dark); /* fallback negro mientras carga */
}
.hero-video-wrap video,
.hero-video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay con gradiente — clave para legibilidad del copy */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.55) 0%,
        rgba(15, 15, 15, 0.25) 35%,
        rgba(15, 15, 15, 0.35) 65%,
        rgba(15, 15, 15, 0.85) 100%
    );
    pointer-events: none;
}

/* Contenido editorial — sobre el video, anclado abajo */
.hero-video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 0 0 5rem;
    color: #ffffff;
}
@media (max-width: 768px) {
    .hero-video-content { padding-bottom: 4rem; }
}

/* Eyebrow en versión clara (sobre fondo oscuro) */
.hero-video-content .hero-eyebrow {
    color: var(--bb-gold-light);
    margin-bottom: 1.5rem;
}
.hero-video-content .hero-eyebrow::before {
    background: var(--bb-gold-light);
}

/* Título — fuerza color blanco con em dorado claro */
.hero-video-content .hero-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
    /* tamaño base se mantiene del .hero-title de home.css */
}
.hero-video-content .hero-title em {
    color: var(--bb-gold-light);
    font-style: italic;
    font-weight: 500;
}

/* Descripción — gris muy claro sobre oscuro */
.hero-video-content .hero-desc {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin-bottom: 2.5rem;
}

/* Ghost button — versión clara sobre oscuro */
.btn-bb-ghost.on-dark {
    color: #ffffff;
    border-color: #ffffff;
}
.btn-bb-ghost.on-dark:hover {
    background: #ffffff;
    color: var(--bb-ink);
}

/* Vertical text accent — usa el color claro */
.hero-video-section .hero-vertical {
    color: rgba(255, 255, 255, 0.55);
    z-index: 5;
}

/* ================================================
   MUTE BUTTON — esquina inferior derecha,
   discreto, accesible.
   ================================================ */
.hero-video-mute {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
    transition: all var(--dur) var(--bb-ease);
}
.hero-video-mute:hover {
    background: var(--bb-ink);
    border-color: var(--bb-ink);
    transform: translateY(-1px);
}
.hero-video-mute:focus-visible {
    box-shadow: var(--bb-focus-ring);
    outline: none;
}

/* .version-pill se movió a components.css (es reusable cross-page).
   Acá solo ajustamos su z-index/posición sobre el video si hiciera falta. */

/* ================================================
   PREFERS REDUCED MOTION
   Si el usuario tiene reduce motion, NO autoplay.
   El poster del <video> se mantiene visible.
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-video-wrap video {
        /* El video no se reproduce, queda en el frame inicial / poster */
        animation: none !important;
    }
}
