:root {
    --brand-yellow: #e09b00;
    --brand-yellow-hover: #c28600;
    --brand-yellow-light: #f0a600;
    --bg-dark: #09090b; /* zinc-950 */
    --bg-card: #18181b; /* zinc-900 */
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

::selection {
    background-color: var(--brand-yellow);
    color: #000;
}

/* Utilidades Generales Typografía */
.text-brand { color: var(--brand-yellow); }
.bg-brand { background-color: var(--brand-yellow); }
.fw-black { font-weight: 900; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }

/* Navbar Dynamics */
.navbar-custom {
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.5s ease-in-out;
    border-bottom: 1px solid #27272a;
}
.navbar-custom.scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(224, 155, 0, 0.2);
    box-shadow: 0 4px 30px rgba(224, 155, 0, 0.05);
}
.navbar-brand img {
    height: 80px;
    transition: all 0.5s ease-in-out;
}
.navbar-custom.scrolled .navbar-brand img {
    height: 55px; /* Reducción sutil, no extrema */
}

.nav-link {
    color: #a1a1aa !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--brand-yellow) !important; }

.btn-brand {
    background-color: var(--brand-yellow);
    color: #000 !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    transition: all 0.3s;
    border-radius: 0;
    padding: 0.5rem 1.5rem;
}
.btn-brand:hover {
    background-color: var(--brand-yellow-light);
    box-shadow: 0 0 20px rgba(224, 155, 0, 0.3);
}

/* Hero Section */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
}
.badge-brand {
    background-color: rgba(224, 155, 0, 0.1);
    border: 1px solid rgba(224, 155, 0, 0.3);
    color: var(--brand-yellow);
    padding: 0.35rem 1rem;
    border-radius: 50rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.gradient-text {
    background: linear-gradient(to right, var(--brand-yellow), var(--brand-yellow-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 0.1em;
    display: inline-block;
}

.video-box {
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid #27272a;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(224, 155, 0, 0.05);
}
.video-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mix-blend-mode: luminosity;
    filter: grayscale(100%);
    transition: transform 0.7s;
}
.video-box:hover .video-bg { transform: scale(105%); }
.play-btn {
    width: 80px; height: 80px;
    background-color: var(--brand-yellow);
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 40px rgba(224, 155, 0, 0.3);
    transition: transform 0.3s;
    z-index: 10;
}
.video-box:hover .play-btn { transform: scale(1.1); }

/* Bifurcación CTA */
.btn-outline-dark-custom {
    border: 2px solid #3f3f46;
    background-color: var(--bg-card);
    color: #d4d4d8;
    border-radius: 0;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}
.btn-outline-dark-custom:hover {
    border-color: #71717a;
    color: #fff;
}
.btn-brand-large {
    padding: 1.5rem;
    font-size: 1.125rem;
    border-radius: 0;
}

/* Quien Soy */
.profile-img-container { position: relative; }
.profile-img-container::before {
    content: '';
    position: absolute; inset: 0;
    background-color: var(--brand-yellow);
    transform: translate(16px, -16px);
    border-radius: 0.5rem;
    z-index: -1;
}
.profile-img {
    width: 100%; border-radius: 0.5rem;
    filter: grayscale(100%);
    transition: filter 0.7s;
    border: 1px solid #27272a;
}
.profile-img:hover { filter: grayscale(0%); }
.badge-bni {
    position: absolute; bottom: -24px; left: -24px;
    background-color: var(--bg-dark);
    border: 1px solid #27272a;
    padding: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* Cards */
.card-custom {
    background-color: var(--bg-card);
    border: 1px solid #27272a;
    padding: 2rem;
    transition: border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}
.card-custom:hover { border-color: rgba(224, 155, 0, 0.5); }
.card-custom::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 64px; height: 64px;
    background-color: rgba(224, 155, 0, 0.1);
    border-bottom-left-radius: 100%;
    margin-top: -32px; margin-right: -32px;
    transition: transform 0.3s;
}
.card-custom:hover::after { transform: scale(1.5); }

/* Split Offer */
.split-section { border-top: 1px solid #27272a; border-bottom: 1px solid #27272a; }
.bg-club { background-color: var(--brand-yellow); color: #000; position: relative; overflow: hidden; }
.club-badge { background-color: #000; color: var(--brand-yellow); padding: 0.25rem 0.75rem; font-size: 0.875rem; display: inline-block; }
.bg-libro { background-color: var(--bg-card); }
.text-link-brand { color: var(--brand-yellow); text-decoration: none; border-bottom: 2px solid rgba(224, 155, 0, 0.3); transition: border-color 0.3s; padding-bottom: 0.25rem; }
.text-link-brand:hover { color: var(--brand-yellow); border-color: var(--brand-yellow); }

/* Disruptive CTA */
.cta-section {
    background-color: var(--bg-card);
    border-top: 4px solid var(--brand-yellow);
}
.btn-disruptive {
    position: relative; z-index: 10;
    background: transparent; color: #fff;
    border: none;
    padding: 1rem 2rem;
    display: flex; flex-direction: column; align-items: center;
}
.btn-disruptive-wrapper { position: relative; display: inline-block; }
.btn-disruptive-wrapper::before {
    content: ''; position: absolute; inset: -4px;
    border: 1px solid rgba(224, 155, 0, 0.5);
    transform: skewX(-10deg);
    transition: background-color 0.3s;
}
.btn-disruptive-wrapper:hover::before { background-color: rgba(224, 155, 0, 0.1); }

/* Footer */
footer { background-color: #000; }
.footer-link { color: #a1a1aa; text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: var(--brand-yellow); }

/* Acordeón "Quién Soy" */
.flecha-toggle {
    transition: transform 0.3s ease;
}
.rotate-down {
    transform: rotate(90deg); /* fa-chevron-right: 90° lo apunta hacia abajo */
}

/* ── Navbar desktop: layout trilumnar Logo | Links centrados | CTA ──────── */
@media (min-width: 992px) {
    #mainNav .navbar-collapse {
        flex-grow: 1;
    }
}

/* ── Hero: compensar altura del navbar de dos filas en xs ───────────────── */
@media (max-width: 575.98px) {
    .hero {
        padding-top: 15rem !important;
    }
}

/* ── Navbar dos filas en xs (<576px) ────────────────────────────────────────
   Fila 1: Logo centrado a ancho completo
   Fila 2: [Cita Gratis izquierda] [Hamburguesa derecha]
   sm/md/lg: layout de una sola fila sin cambios
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    #mainNav .container-fluid {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    /* Fila 1 — logo ocupa el 100% y se centra */
    #mainNav .navbar-brand {
        width: 100%;
        margin-right: 0;        /* anula me-auto en xs */
        display: flex;
        justify-content: center;
    }

    /* Fila 2 — controles a ancho completo: CTA izquierda, toggler derecha */
    #mainNav #navControls {
        width: 100%;
        justify-content: space-between;
    }
}
