:root {
    --bg: #070614;
    --bg2: #120c22;
    --txt: #f2ecff;
    --muted: #c9c2de;
    --gold: #E8C547;
    --amethyst: #8B5CF6;
    --panel: rgba(18, 14, 36, .7);
    --panelB: #3f2e5c;
    --radius: 18px;
    --shadow: 0 12px 36px rgba(0, 0, 0, .35);
    --topbar-h: 56px;
    --header-h: 66px;
}


/* ===== Base ===== */

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--txt);
    background: linear-gradient(180deg, var(--bg), var(--bg2));
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth
}

h1,
h2,
h3 {
    font-family: Cinzel, Georgia, "Times New Roman", serif
}

a {
    color: inherit;
    text-decoration: none
}

img,
video {
    max-width: 100%;
    display: block
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto
}


/* ===== Estrellas ===== */

#sky {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none
}

#content {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--topbar-h)+var(--header-h))
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(1000px 600px at 65% 10%, rgba(232, 197, 71, .08), transparent 65%), radial-gradient(1200px 800px at 35% 90%, rgba(139, 92, 246, .10), transparent 72%);
    mix-blend-mode: screen
}


/* ===== Topbar fija ===== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    height: var(--topbar-h);
    background: rgba(10, 9, 24, .9);
    border-bottom: 1px solid #2b1f44;
    backdrop-filter: saturate(1.15) blur(8px);
    display: flex;
    align-items: center
}

.topbar .bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .45rem .8rem;
    color: #e8e6ff;
    font-weight: 700
}

.topbar .chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 211, 102, .75), rgba(167, 139, 250, .18));
    color: #0c1c13;
    border: 1px solid rgba(42, 61, 47, .55);
    box-shadow: 0 18px 36px rgba(37, 211, 102, .20), 0 2px 8px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px) saturate(1.1)
}


/* ===== Header fijo ===== */

header.site {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 44;
    background: linear-gradient(180deg, rgba(5, 5, 12, .85), rgba(5, 5, 12, .25));
    border-bottom: 1px solid #2b1f44;
    backdrop-filter: saturate(1.15) blur(10px)
}

header.site::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0));
    pointer-events: none
}

header.site .wrap {
    height: 100%
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 1rem
}

.logo {
    display: flex;
    align-items: center;
    gap: .55rem
}

.logo img {
    width: 32px;
    height: 32px
}

.logo em {
    color: var(--gold)
}

@media (max-width:640px) {
    .logo strong {
        display: inline
    }
}

nav.main {
    display: flex;
    align-items: center;
    gap: .4rem
}

nav.main a {
    padding: .6rem .8rem;
    color: var(--muted);
    border-radius: 10px
}

nav.main a:hover {
    color: var(--txt);
    background: rgba(255, 255, 255, .05)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--amethyst));
    box-shadow: 0 12px 26px rgba(139, 92, 246, .3), 0 2px 8px rgba(0, 0, 0, .3);
    transition: transform .18s ease, filter .22s ease
}

.btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.08)
}

.btn.secondary {
    color: var(--txt);
    background: rgba(255, 255, 255, .06);
    border: 1px solid #3a2b56;
    font-weight: 700
}


/* WhatsApp glass */

.btn.wpp {
    color: #dfffe9;
    background: linear-gradient(135deg, rgba(37, 211, 102, .26), rgba(167, 139, 250, .12));
    border: 1px solid rgba(65, 255, 155, .25);
    box-shadow: 0 14px 28px rgba(37, 211, 102, .18), inset 0 0 0 1px rgba(255, 255, 255, .12);
    backdrop-filter: saturate(1.15) blur(6px)
}

.btn.wpp:hover {
    filter: saturate(1.1);
    transform: translateY(-1px)
}


/* Botón flotante WA */

.wa {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40
}

.wa a {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(37, 211, 102, .28), rgba(167, 139, 250, .10));
    color: #eafff2;
    border: 1px solid rgba(65, 255, 155, .22);
    box-shadow: 0 18px 36px rgba(37, 211, 102, .22), 0 2px 8px rgba(0, 0, 0, .3);
    backdrop-filter: blur(6px)
}

.btn.wpp:hover,
.wa a:hover {
    filter: saturate(1.05);
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(37, 211, 102, .24), 0 3px 10px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .14)
}

.tag {
    display: inline-block;
    padding: .28rem .65rem;
    border: 1px solid #384160;
    border-radius: 999px;
    color: var(--muted);
    font-size: .82rem
}


/* ===== Drawer / menú móvil ===== */

.drawer {
    display: none
}

.burger {
    display: none;
    cursor: pointer;
    border: 1px solid #32324a;
    border-radius: 10px;
    padding: .5rem .7rem;
    background: rgba(255, 255, 255, .04)
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #cfcbe6;
    margin: 5px 0;
    border-radius: 2px
}

@media (max-width:980px) {
    nav.main {
        display: none
    }
    .burger {
        display: block
    }
    .drawer-bg {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 95;
        background: rgba(8, 7, 18, .78);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity .25s ease
    }
    .drawer-bg.show {
        display: block;
        opacity: 1
    }
    .drawer {
        display: block;
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 100;
        width: min(86%, 360px);
        background: #0a0918F2;
        backdrop-filter: blur(14px) saturate(1.1);
        border-left: 1px solid #2b1f44;
        box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
        transform: translateX(100%);
        transition: transform .28s ease;
        padding: 18px 16px 24px
    }
    .drawer.open {
        transform: none
    }
    .drawer::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .6;
        background: radial-gradient(120% 70% at 0% 0%, rgba(232, 197, 71, .10), transparent 60%), radial-gradient(120% 70% at 100% 100%, rgba(139, 92, 246, .12), transparent 62%);
        mix-blend-mode: screen
    }
    .drawer .top {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 2px 14px;
        margin-bottom: 8px;
        background: linear-gradient(180deg, rgba(10, 9, 24, .96), rgba(10, 9, 24, .90));
        border-bottom: 1px solid rgba(255, 255, 255, .10)
    }
    .drawer .top strong {
        font-size: 1.05rem
    }
    .drawer a {
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        color: #fff;
        font-size: 1.08rem;
        font-weight: 800;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .12);
        text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .35);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .35)
    }
    .drawer a+a {
        margin-top: 4px
    }
    .drawer a:hover {
        background: rgba(255, 255, 255, .12);
        border-color: rgba(255, 255, 255, .18)
    }
}


/* ===== HERO ===== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 2rem;
    align-items: center;
    min-height: 86vh;
    padding: 7rem 0 4rem
}

@media (max-width:980px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        padding: 5.5rem 0 3rem
    }
}

.hero .auras {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(1200px 720px at 62% 12%, rgba(232, 197, 71, .14), transparent 60%), radial-gradient(1400px 880px at 38% 88%, rgba(139, 92, 246, .18), transparent 70%), radial-gradient(900px 600px at 5% 40%, rgba(139, 92, 246, .08), transparent 70%);
    mix-blend-mode: screen
}

.portrait {
    position: relative;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #3a2b56;
    box-shadow: var(--shadow);
    background: radial-gradient(70% 80% at 50% 10%, rgba(232, 197, 71, .18), transparent 60%), radial-gradient(70% 85% at 50% 90%, rgba(139, 92, 246, .18), transparent 70%), #0b0920;
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    background: image-set(url('assets/portrait.png') type('image/png') 1x) center/cover no-repeat;
    opacity: .92;
    mix-blend-mode: screen;
    filter: contrast(1.08) saturate(1.08);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 14%, black 34%, black 76%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .6) 14%, black 34%, black 76%, transparent 100%)
}

.portrait .sigil {
    position: relative;
    margin-bottom: 22px;
    padding: .55rem .95rem;
    border-radius: 999px;
    border: 1px solid #3a2b56;
    background: rgba(255, 255, 255, .06);
    font-weight: 700;
    font-size: .92rem;
    color: var(--muted);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25)
}

.hero h1 {
    font-size: clamp(2.5rem, 7.2vw, 4.15rem);
    line-height: 1.02;
    margin: .4rem 0 .6rem
}

.hero p {
    max-width: 70ch;
    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.18rem)
}

.cta {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    margin-top: 1.35rem
}


/* ===== Secciones ===== */

section {
    padding: 3.2rem 0;
    scroll-margin-top: 100px
}

.section-title {
    font-size: 2rem;
    margin: 0 0 1.2rem;
    position: relative;
    padding-bottom: .45rem
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 62%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent)
}

.grid {
    display: grid;
    gap: 1.2rem
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

@media (max-width:900px) {
    .grid.cols-3 {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:680px) {
    .grid.cols-3 {
        grid-template-columns: 1fr
    }
}

.card {
    background: var(--panel);
    border: 1px solid var(--panelB);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px)
}

.card h3 {
    margin: .4rem 0 .3rem;
    font-size: 1.15rem
}

.muted {
    color: var(--muted)
}

.divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 2.2rem 0 1rem
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent)
}


/* Band + Steps */

.band {
    background: rgba(255, 255, 255, .04);
    border: 1px solid #2b1f44;
    border-radius: 16px;
    padding: 1.1rem 1rem
}

.steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr)
}

.steps .s {
    background: var(--panel);
    border: 1px solid #2b1f44;
    border-radius: 14px;
    padding: 1rem
}

@media (max-width:900px) {
    .steps {
        grid-template-columns: 1fr
    }
}


/* Galería (fallback grid si lo quisieras) */

.gallery {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(3, 1fr)
}

.gallery figure {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #2c3650;
    cursor: pointer
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease
}

.gallery figure:hover img {
    transform: scale(1.06)
}

@media (max-width:900px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:680px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }
    .gallery figure {
        border-radius: 16px
    }
}


/* Videos */

.videos {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start
}

.videos .vid {
    position: relative;
    border-radius: 14px;
    overflow: visible;
    border: 1px solid #273042;
    background: rgba(2, 6, 23, .6);
    padding: 0;
    box-shadow: var(--shadow)
}

.videos .vid>video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #0b0920;
    max-height: 70vh
}


/* FAQ */

details.faq {
    background: rgba(2, 6, 23, .6);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 1rem
}

details.faq+details.faq {
    margin-top: .6rem
}

details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

details summary::-webkit-details-marker {
    display: none
}


/* Footer */

footer {
    padding: 2rem 0;
    border-top: 1px solid #1f2937;
    color: var(--muted);
    font-size: .95rem
}


/* Reveal */

.reveal {
    opacity: 0;
    transform: translateY(18px) scale(.99);
    filter: blur(6px);
    transition: opacity .9s ease, transform .9s ease, filter .9s ease
}

.reveal.show {
    opacity: 1;
    transform: none;
    filter: blur(0)
}

@media (prefers-reduced-motion:reduce) {
    .reveal,
    .btn {
        transition: none
    }
}


/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 12, .88);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 20px
}

.lightbox.open {
    display: flex
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    border: 1px solid #31324d
}

.lightbox .nav {
    position: absolute;
    inset: auto 0 24px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    pointer-events: none
}

.lightbox button {
    pointer-events: auto;
    border: 1px solid #31324d;
    background: rgba(255, 255, 255, .06);
    color: #eee;
    padding: .6rem .9rem;
    border-radius: 12px;
    cursor: pointer
}


/* CTA final */

.cta-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 1.1rem 1.2rem
}

.cta-final .text h3 {
    margin: 0 0 .35rem;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem)
}

.cta-final .text p {
    margin: .2rem 0 .6rem;
    max-width: 60ch
}

.cta-final .benefits {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .2rem 0 0;
    padding: 0;
    list-style: none
}

.cta-final .benefits li {
    padding: .28rem .6rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    font-size: .9rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .03)
}

@media (max-width:820px) {
    .cta-final {
        flex-direction: column;
        align-items: flex-start
    }
    .cta-final .text p {
        max-width: unset
    }
}


/* WhatsApp centrado + “Mensaje directo” mobile */

@media (max-width:640px) {
    .topbar .chip,
    .btn.wpp,
    .wa a {
        justify-content: center;
        text-align: center;
        line-height: 1.1;
        min-height: 44px;
        padding: .8rem 1rem
    }
    .topbar .chip {
        min-width: 160px;
        font-weight: 800
    }
    .band .muted {
        display: flex;
        flex-direction: column;
        gap: .75rem
    }
    .band .btn.wpp {
        align-self: flex-start
    }
}


/* ===== Carrusel Galería (look mejorado) ===== */

.carousel {
    position: relative;
    overflow: hidden;
    margin-top: 1rem
}

.carousel::before,
.carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 38px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, rgba(7, 6, 20, 1), rgba(7, 6, 20, 0))
}

.carousel::before {
    left: 0
}

.carousel::after {
    right: 0;
    transform: scaleX(-1)
}

.ctrack {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(80%, 320px);
    gap: .8rem;
    overflow-x: auto;
    padding: .2rem .2rem .8rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%)
}

.ctrack::-webkit-scrollbar {
    display: none
}

.citem {
    scroll-snap-align: start;
    border: 1px solid #2c3650;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(2, 6, 23, .6);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease
}

.citem:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45)
}

.citem img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease
}

.citem:hover img {
    transform: scale(1.035)
}

.cnav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: 1px solid #31324d;
    background: rgba(255, 255, 255, .08);
    color: #eee;
    padding: .55rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
    opacity: .92
}

.cnav:hover {
    transform: translateY(-50%) scale(1.04);
    background: rgba(255, 255, 255, .12)
}

.cnav.prev {
    left: .35rem
}

.cnav.next {
    right: .35rem
}

@media (min-width:900px) {
    .ctrack {
        grid-auto-columns: min(28%, 360px)
    }
    .citem img {
        height: 280px
    }
}