:root {
    --background: #050408;
    --violet: #8c54ad;
    --violet-light: #c091db;
    --gold: #caa86d;
    --gold-light: #ead2a1;
    --ivory: #efe2c8;
    --muted: #bcae9c;
    --font-display: Georgia, "Times New Roman", serif;
    --font-body: "Palatino Linotype", Palatino, Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    margin: 0;
    background: var(--background);
    color: var(--ivory);
    font-family: var(--font-body);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    font: inherit;
}

.site-shell {
    min-height: 100svh;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    overflow: hidden;
    background: #060409;
}

/* =========================================
   FONDO
========================================= */

.hero-background {
    position: absolute;
    z-index: -6;
    inset: 0;

    background-image: url("assets/hero-master.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    filter:
        saturate(0.94)
        contrast(1.05);

    transform: scale(1.015);
}

.hero-vignette {
    position: absolute;
    z-index: -5;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 2, 5, 0.97) 0%,
            rgba(3, 2, 6, 0.70) 22%,
            transparent 49%,
            rgba(2, 2, 5, 0.21) 74%,
            rgba(2, 2, 5, 0.67) 100%
        ),
        linear-gradient(
            180deg,
            rgba(2, 1, 5, 0.45) 0%,
            transparent 43%,
            rgba(4, 2, 7, 0.07) 60%,
            rgba(4, 2, 7, 0.88) 100%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;
    z-index: -3;
    left: 0;
    right: 0;
    bottom: 0;

    height: 42%;

    background:
        radial-gradient(
            ellipse at 50% 106%,
            rgba(104, 43, 133, 0.25),
            transparent 52%
        ),
        linear-gradient(
            180deg,
            transparent,
            rgba(5, 2, 8, 0.18) 30%,
            rgba(4, 2, 7, 0.9)
        );

    pointer-events: none;
}

/* =========================================
   NAVEGACIÓN
========================================= */

.topbar {
    position: relative;
    z-index: 20;

    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        auto
        minmax(220px, 1fr);

    align-items: center;

    width: min(92%, 1760px);

    margin: 0 auto;

    padding-top: clamp(
        22px,
        3vw,
        48px
    );
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;

    gap: 14px;

    color: var(--gold);
}

.brand-mark {
    position: relative;

    display: grid;
    place-items: center;

    width: 58px;
    aspect-ratio: 1;

    border: 1px solid rgba(202, 168, 109, 0.78);
    border-radius: 50%;

    box-shadow:
        inset 0 0 18px rgba(202, 168, 109, 0.12);
}

.brand-mark::before,
.brand-mark::after {
    content: "";

    position: absolute;
    inset: 9px;

    border: 1px solid rgba(202, 168, 109, 0.55);

    transform: rotate(45deg);
}

.brand-mark::after {
    transform: rotate(-45deg);
}

.brand-mark span {
    font-size: 1rem;

    text-shadow:
        0 0 12px rgba(232, 198, 127, 0.8);
}

.brand-name {
    display: flex;
    flex-direction: column;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand-name strong {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.75vw, 1.9rem);
    font-weight: 500;
    line-height: 1;
}

.brand-name small {
    margin-top: 7px;
    padding-left: 3px;

    font-size: 0.66rem;
    letter-spacing: 0.48em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(22px, 2.1vw, 40px);

    color: #cdbd9f;

    font-size: 0.76rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.main-nav a,
.main-nav span {
    position: relative;

    padding: 10px 0;
}

.nav-disabled {
    opacity: 0.45;
}

.main-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 100%;
    bottom: 3px;

    height: 1px;

    background: var(--gold);

    transition:
        right 260ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    right: 0;
}

/* =========================================
   BOTONES
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    gap: 14px;

    border: 1px solid rgba(218, 183, 119, 0.74);

    color: var(--gold-light);

    font-family: var(--font-display);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        border-color 240ms ease,
        box-shadow 240ms ease,
        color 240ms ease,
        transform 240ms ease;
}

.button:hover,
.button:focus-visible {
    color: #fff0c9;

    border-color:
        rgba(239, 207, 145, 0.95);

    box-shadow:
        0 0 30px rgba(125, 59, 150, 0.28);

    transform:
        translateY(-2px);
}

.button-small {
    min-height: 44px;

    justify-self: end;

    padding:
        0 28px;
}

.button-outline {
    background:
        rgba(10, 5, 16, 0.5);

    box-shadow:
        inset 0 0 0 3px rgba(9, 4, 15, 0.82),
        inset 0 0 0 4px rgba(202, 168, 109, 0.18);
}

.button-primary {
    min-width: 278px;

    padding:
        0 26px;

    background:
        linear-gradient(
            180deg,
            rgba(68, 30, 91, 0.95),
            rgba(35, 14, 51, 0.97)
        );

    box-shadow:
        inset 0 0 0 3px rgba(10, 4, 16, 0.65),
        inset 0 0 0 4px rgba(205, 170, 106, 0.28),
        0 12px 34px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(112, 52, 142, 0.12);
}

.button:focus-visible,
.tarot-card:focus-visible,
.main-nav a:focus-visible,
.brand:focus-visible {
    outline:
        2px solid var(--violet-light);

    outline-offset:
        4px;
}

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

.hero-copy {
    position: absolute;
    z-index: 5;

    top: clamp(160px, 20vh, 235px);
    left: max(
        4vw,
        calc((100vw - 1760px) / 2)
    );

    width: min(34vw, 570px);
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 18px;

    color: var(--gold);

    font-size: clamp(0.68rem, 0.78vw, 0.82rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 70px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}

.hero-copy h1 {
    margin:
        22px 0 18px;

    color: #d4bb87;

    font-family: var(--font-display);
    font-size: clamp(3rem, 4.1vw, 5.1rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;

    text-shadow:
        0 4px 30px rgba(0, 0, 0, 0.68);
}

.hero-copy h1 em {
    display: block;

    margin-top: 10px;

    color: #9e67bc;

    font-weight: 400;
    line-height: 1.02;
}

.hero-copy p {
    width: min(95%, 470px);

    margin:
        0 0 30px;

    color: #d2c3ad;

    font-size: clamp(1rem, 1.22vw, 1.27rem);
    line-height: 1.55;

    text-shadow:
        0 2px 14px #000;
}

/* =========================================
   MESA DE CARTAS
========================================= */

.reading-table {
    position: absolute;
    z-index: 10;

    right: 3.4vw;
    bottom: clamp(24px, 3vh, 42px);

    width: min(67vw, 1260px);
}

.reading-prompt {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: clamp(0.64rem, 0.75vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;

    text-shadow:
        0 1px 10px #000;
}

.reading-prompt strong {
    font-weight: 400;
}

.reading-prompt > span {
    width: 48px;
    height: 1px;

    margin:
        0 18px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(202, 168, 109, 0.75)
        );
}

.reading-prompt > span:last-child {
    transform:
        rotate(180deg);
}

.card-deck {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(118px, 1fr));

    align-items: end;

    gap: clamp(12px, 1.4vw, 24px);

    perspective: 1600px;
}

.tarot-slot {
    min-width: 0;

    transform-origin:
        center bottom;
}

.slot-1 {
    transform:
        rotate(-2.6deg)
        translateY(10px);
}

.slot-2 {
    transform:
        rotate(-1.2deg)
        translateY(3px);
}

.slot-4 {
    transform:
        rotate(1.2deg)
        translateY(3px);
}

.slot-5 {
    transform:
        rotate(2.6deg)
        translateY(10px);
}

/* =========================================
   CARTA 3D
========================================= */

.tarot-card {
    display: block;

    width: 100%;
    max-width: 205px;
    aspect-ratio: 0.61;

    margin:
        0 auto;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background:
        transparent;

    cursor: pointer;

    perspective: 1100px;

    transition:
        filter 260ms ease;
}

.card-inner {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    transform-style:
        preserve-3d;

    transition:
        transform 820ms
        cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tarot-card:hover:not(.is-open) .card-inner {
    transform:
        translateY(-14px)
        rotateX(6deg)
        rotateY(-4deg);
}

.tarot-card.is-open {
    filter:
        drop-shadow(
            0 0 18px
            rgba(141, 77, 182, 0.65)
        );
}

.tarot-card.is-open .card-inner {
    transform:
        translateY(-10px)
        rotateY(180deg)
        scale(1.035);
}

.card-face {
    position: absolute;
    inset: 0;

    display: flex;
    overflow: hidden;
    flex-direction: column;

    border:
        1px solid #ad8b57;

    border-radius:
        7px;

    backface-visibility:
        hidden;

    box-shadow:
        0 16px 26px rgba(0, 0, 0, 0.55),
        inset 0 0 0 4px rgba(26, 15, 9, 0.94),
        inset 0 0 0 5px rgba(207, 174, 113, 0.52);
}

/* =========================================
   FRENTE DE LA CARTA
========================================= */

.card-front {
    align-items: center;
    justify-content: space-between;

    padding:
        12px 10px 10px;

    color: #17100d;

    background:
        linear-gradient(
            rgba(205, 174, 117, 0.15),
            rgba(65, 37, 34, 0.08)
        ),
        linear-gradient(
            145deg,
            #baa16e,
            #d2bc87 42%,
            #9b7b4e
        );
}

.card-front::after {
    content: "";

    position: absolute;
    inset: 8px;

    border:
        1px solid rgba(83, 52, 30, 0.68);

    pointer-events: none;
}

.tone-rose {
    --card-sky: #725458;
    --card-mid: #bd7b68;
    --card-ground: #754435;
}

.tone-gold {
    --card-sky: #3a4254;
    --card-mid: #c09a45;
    --card-ground: #6d5530;
}

.tone-violet {
    --card-sky: #353454;
    --card-mid: #8d74a4;
    --card-ground: #494063;
}

.tone-indigo {
    --card-sky: #29354b;
    --card-mid: #6e83a4;
    --card-ground: #404851;
}

.tone-emerald {
    --card-sky: #304944;
    --card-mid: #719b80;
    --card-ground: #3f594b;
}

.card-number {
    position: relative;
    z-index: 3;

    font-family: var(--font-display);
    font-size: clamp(0.62rem, 0.8vw, 0.9rem);
    letter-spacing: 0.08em;
}

.tarot-scene {
    position: absolute;

    top: 29px;
    left: 14px;
    right: 14px;
    bottom: 39px;

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

    padding-top: 15%;

    border:
        1px solid rgba(43, 28, 24, 0.58);

    background:
        radial-gradient(
            circle at 12% 14%,
            #e8ce8e 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 78% 20%,
            #e8ce8e 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 58% 7%,
            #e8ce8e 0 1px,
            transparent 2px
        ),
        linear-gradient(
            180deg,
            var(--card-sky),
            var(--card-mid) 64%,
            var(--card-ground)
        );
}

.tarot-symbol {
    position: relative;
    z-index: 2;

    color: #f0d99a;

    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 4.7rem);
    line-height: 1;

    text-shadow:
        0 0 12px rgba(242, 212, 138, 0.45);
}

.tarot-figure {
    position: absolute;
    z-index: 2;

    left: 21%;
    right: 21%;
    bottom: 9%;

    height: 49%;
}

.figure-halo {
    position: absolute;

    top: 1%;
    left: 50%;

    width: 28%;
    aspect-ratio: 1;

    border:
        2px solid rgba(231, 205, 140, 0.7);

    border-radius:
        50%;

    transform:
        translateX(-50%);
}

.figure-body {
    position: absolute;

    top: 16%;
    left: 50%;

    width: 25%;
    height: 64%;

    border:
        1px solid rgba(42, 27, 24, 0.82);

    border-radius:
        50% 50% 18% 18%;

    background:
        linear-gradient(
            90deg,
            #826047,
            #c19b6f,
            #77523d
        );

    transform:
        translateX(-50%);

    box-shadow:
        -24px 28px 0 -19px #8d6d50,
        24px 28px 0 -19px #8d6d50;
}

.figure-body::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -29%;

    width: 210%;
    height: 70%;

    border:
        1px solid rgba(45, 27, 22, 0.68);

    background:
        linear-gradient(
            90deg,
            #6e4e3b,
            #b28460,
            #624332
        );

    transform:
        translateX(-50%);

    clip-path:
        polygon(
            28% 0,
            72% 0,
            100% 100%,
            0 100%
        );
}

.figure-ground {
    position: absolute;

    left: -22%;
    right: -22%;
    bottom: 0;

    height: 2px;

    background:
        rgba(49, 31, 27, 0.78);

    box-shadow:
        0 5px 0 rgba(231, 201, 129, 0.26);
}

.card-title {
    position: relative;
    z-index: 3;

    display: block;

    width: calc(100% - 4px);

    overflow: hidden;

    padding:
        3px 2px 0;

    color: #1f1510;

    font-family: var(--font-display);
    font-size: clamp(0.55rem, 0.74vw, 0.78rem);
    letter-spacing: 0.06em;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================================
   REVERSO DE LA CARTA
========================================= */

.card-back {
    align-items: center;
    justify-content: center;

    padding:
        clamp(13px, 1.2vw, 22px);

    border-color:
        rgba(190, 140, 227, 0.9);

    color:
        #e8d7b7;

    background:
        radial-gradient(
            circle at center 22%,
            rgba(129, 66, 160, 0.26),
            transparent 30%
        ),
        repeating-radial-gradient(
            circle at center,
            transparent 0 13px,
            rgba(192, 145, 219, 0.05) 14px 15px
        ),
        linear-gradient(
            145deg,
            #1e0e2c,
            #0e0918 55%,
            #160b21
        );

    text-align:
        center;

    transform:
        rotateY(180deg);

    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.65),
        inset 0 0 0 4px #090510,
        inset 0 0 0 5px rgba(205, 162, 101, 0.46),
        inset 0 0 28px rgba(123, 60, 153, 0.28);
}

.card-back::before,
.card-back::after {
    content: "";

    position: absolute;

    width: 24px;
    aspect-ratio: 1;

    border-color:
        var(--gold);

    border-style:
        solid;

    opacity:
        0.7;
}

.card-back::before {
    top: 12px;
    left: 12px;

    border-width:
        1px 0 0 1px;
}

.card-back::after {
    right: 12px;
    bottom: 12px;

    border-width:
        0 1px 1px 0;
}

.back-symbol {
    color:
        var(--gold-light);

    font-size:
        clamp(1.4rem, 2vw, 2.4rem);

    text-shadow:
        0 0 16px rgba(196, 133, 232, 0.85);
}

.card-back strong {
    margin-top:
        10px;

    color:
        #e8cb91;

    font-family:
        var(--font-display);

    font-size:
        clamp(0.67rem, 0.82vw, 0.95rem);

    font-weight:
        500;

    letter-spacing:
        0.08em;

    line-height:
        1.18;

    text-transform:
        uppercase;
}

.back-divider {
    width:
        36px;

    height:
        1px;

    margin:
        12px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--violet-light),
            transparent
        );
}

.back-description {
    color:
        #cdbca5;

    font-size:
        clamp(0.62rem, 0.74vw, 0.78rem);

    line-height:
        1.4;
}

.back-action {
    margin-top:
        14px;

    color:
        #b987d1;

    font-size:
        clamp(0.52rem, 0.61vw, 0.66rem);

    letter-spacing:
        0.1em;

    text-transform:
        uppercase;
}

/* =========================================
   EFECTOS AMBIENTALES
========================================= */

.candle-glow {
    position: absolute;
    z-index: -2;

    width: 170px;
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 172, 74, 0.19),
            rgba(115, 62, 24, 0.05) 42%,
            transparent 69%
        );

    mix-blend-mode:
        screen;

    animation:
        candleFlicker
        2.8s
        ease-in-out
        infinite
        alternate;

    pointer-events:
        none;
}

.candle-glow-left {
    top: 32%;
    left: 19%;
}

.candle-glow-right {
    top: 29%;
    right: 4.5%;

    animation-delay:
        -1.2s;
}

.smoke {
    position: absolute;
    z-index: -1;

    width: 240px;
    height: 58vh;

    opacity: 0.28;

    filter:
        blur(20px);

    background:
        radial-gradient(
            ellipse at 45% 82%,
            rgba(153, 88, 175, 0.26),
            transparent 44%
        ),
        radial-gradient(
            ellipse at 62% 47%,
            rgba(187, 154, 204, 0.16),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 35% 18%,
            rgba(119, 81, 140, 0.14),
            transparent 36%
        );

    animation:
        smokeDrift
        9s
        ease-in-out
        infinite
        alternate;

    pointer-events:
        none;
}

.smoke-left {
    left: 24%;
    bottom: 6%;

    transform:
        rotate(-8deg);
}

.smoke-right {
    right: 12%;
    bottom: 14%;

    animation-delay:
        -4s;

    transform:
        scaleX(-1)
        rotate(-4deg);
}

.particles {
    position: absolute;
    z-index: -1;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}

.particles span {
    position: absolute;

    bottom: -8px;

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: #d8b775;

    box-shadow:
        0 0 8px 2px rgba(194, 146, 94, 0.42);

    opacity: 0;

    animation:
        particleRise
        11s
        linear
        infinite;
}

.mobile-hint {
    display: none;
}

/* =========================================
   ANIMACIONES
========================================= */

@keyframes candleFlicker {

    0% {
        opacity: 0.65;

        transform:
            scale(0.95)
            translateY(1px);
    }

    35% {
        opacity: 0.86;

        transform:
            scale(1.04)
            translateY(-2px);
    }

    70% {
        opacity: 0.72;

        transform:
            scale(0.98)
            translateX(2px);
    }

    100% {
        opacity: 0.9;

        transform:
            scale(1.07)
            translateY(-1px);
    }

}

@keyframes smokeDrift {

    from {
        opacity: 0.18;

        translate:
            -10px 18px;
    }

    to {
        opacity: 0.34;

        translate:
            14px -12px;
    }

}

@keyframes particleRise {

    0% {
        opacity: 0;

        transform:
            translate3d(0, 0, 0)
            scale(0.6);
    }

    15% {
        opacity: 0.6;
    }

    70% {
        opacity: 0.28;
    }

    100% {
        opacity: 0;

        transform:
            translate3d(28px, -88vh, 0)
            scale(1.4);
    }

}

/* =========================================
   TABLETA
========================================= */

@media (max-width: 1180px) {

    .topbar {
        grid-template-columns:
            1fr auto;

        width:
            calc(100% - 48px);
    }

    .main-nav {
        display: none;
    }

    .hero-copy {
        top: 155px;
        left: 32px;

        width:
            min(45vw, 500px);
    }

    .hero-copy h1 {
        font-size:
            clamp(2.9rem, 5.2vw, 4.4rem);
    }

    .reading-table {
        right: 2.5vw;

        width:
            72vw;
    }

}

/* =========================================
   CELULAR Y TABLETA VERTICAL
========================================= */

@media (max-width: 820px) {

    .hero {
        display: flex;
        flex-direction: column;

        min-height: 980px;
    }

    .hero-background {
        background-position:
            58% top;
    }

    .hero-vignette {
        background:
            linear-gradient(
                180deg,
                rgba(3, 2, 6, 0.6) 0%,
                rgba(3, 2, 6, 0.15) 24%,
                rgba(5, 3, 8, 0.78) 50%,
                #050308 75%
            ),
            linear-gradient(
                90deg,
                rgba(2, 2, 5, 0.72),
                transparent 65%
            );
    }

    .topbar {
        width:
            calc(100% - 32px);

        padding-top:
            20px;
    }

    .brand-mark {
        width: 46px;
    }

    .brand-name strong {
        font-size: 1.08rem;
    }

    .brand-name small {
        margin-top: 5px;

        font-size: 0.54rem;
    }

    .button-small {
        min-height: 40px;

        padding:
            0 16px;

        font-size:
            0.66rem;
    }

    .hero-copy {
        position: relative;

        top: auto;
        left: auto;

        width:
            calc(100% - 40px);

        margin:
            clamp(280px, 45vh, 390px)
            auto
            0;
    }

    .eyebrow {
        font-size: 0.64rem;
    }

    .hero-copy h1 {
        max-width: 620px;

        margin-top: 15px;

        font-size:
            clamp(2.5rem, 10vw, 4.4rem);
    }

    .hero-copy p {
        max-width: 520px;

        margin-bottom: 22px;

        font-size: 1rem;
    }

    .button-primary {
        min-width: 238px;
        min-height: 48px;

        font-size: 0.75rem;
    }

    .reading-table {
        position: relative;

        right: auto;
        bottom: auto;

        width: 100%;

        margin-top: 44px;

        padding-bottom: 38px;
    }

    .reading-prompt {
        padding:
            0 20px;

        white-space:
            nowrap;
    }

    .reading-prompt > span {
        width: 28px;

        margin:
            0 10px;
    }

    .card-deck {
        display: flex;
        align-items: center;

        gap: 14px;

        overflow-x: auto;

        padding:
            18px
            calc(50vw - 69px)
            28px;

        scroll-padding-inline:
            calc(50vw - 69px);

        scroll-snap-type:
            x mandatory;

        scrollbar-width:
            none;
    }

    .card-deck::-webkit-scrollbar {
        display: none;
    }

    .tarot-slot,
    .slot-1,
    .slot-2,
    .slot-4,
    .slot-5 {
        flex:
            0 0 138px;

        transform:
            none;

        scroll-snap-align:
            center;
    }

    .tarot-card {
        width: 138px;
    }

    .tarot-card:hover:not(.is-open) .card-inner {
        transform:
            translateY(-7px);
    }

    .tarot-card.is-open .card-inner {
        transform:
            translateY(-7px)
            rotateY(180deg)
            scale(1.03);
    }

    .mobile-hint {
        display: block;

        margin:
            -12px 0 0;

        color:
            rgba(205, 189, 162, 0.6);

        font-size:
            0.68rem;

        letter-spacing:
            0.1em;

        text-align:
            center;

        text-transform:
            uppercase;
    }

    .smoke-right {
        display: none;
    }

}

/* =========================================
   CELULAR PEQUEÑO
========================================= */

@media (max-width: 520px) {

    .hero {
        min-height: 940px;
    }

    .topbar {
        width:
            calc(100% - 24px);
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 40px;
    }

    .brand-name strong {
        font-size: 0.91rem;

        letter-spacing:
            0.18em;
    }

    .brand-name small {
        font-size: 0.46rem;

        letter-spacing:
            0.36em;
    }

    .button-small {
        width: 42px;
        min-width: 42px;

        padding: 0;

        overflow: hidden;

        color: transparent;

        font-size: 0;
    }

    .button-small::before {
        content: "✦";

        color:
            var(--gold-light);

        font-size:
            0.9rem;
    }

    .hero-copy {
        width:
            calc(100% - 32px);

        margin-top:
            320px;
    }

    .hero-copy h1 {
        font-size:
            clamp(2.45rem, 13vw, 3.6rem);
    }

    .hero-copy p {
        width: 100%;

        font-size:
            0.95rem;
    }

    .reading-table {
        margin-top:
            38px;
    }

}

/* =========================================
   PANTALLAS BAJAS
========================================= */

@media (
    max-height: 780px
) and (
    min-width: 821px
) {

    .hero-copy {
        top: 130px;
    }

    .hero-copy h1 {
        margin-top: 12px;

        font-size:
            clamp(2.6rem, 3.6vw, 4.2rem);
    }

    .hero-copy p {
        margin-bottom: 20px;
    }

    .reading-table {
        bottom: 16px;

        width:
            min(64vw, 1120px);
    }

    .tarot-card {
        max-width: 170px;
    }

}

/* =========================================
   REDUCIR MOVIMIENTO
========================================= */

@media (
    prefers-reduced-motion: reduce
) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}

/* =========================================
   MODAL DE LA CARTA
========================================= */

body.modal-open {
    overflow: hidden;
}

.tarot-modal {
    position: fixed;
    z-index: 1000;

    inset: 0;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at center,
            rgba(71, 29, 90, 0.25),
            transparent 45%
        ),
        rgba(2, 1, 5, 0.88);

    -webkit-backdrop-filter:
        blur(13px);

    backdrop-filter:
        blur(13px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 350ms ease,
        visibility 0s linear 350ms;
}

.tarot-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition-delay: 0s;
}

.tarot-modal::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(157, 88, 190, 0.16),
            transparent 36%
        );

    pointer-events: none;
}

.tarot-modal-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;

    max-width: 100%;

    opacity: 0;

    transform:
        translateY(45px)
        scale(0.42)
        rotate(-3deg);

    transition:
        opacity 500ms ease,
        transform 650ms cubic-bezier(
            0.18,
            0.85,
            0.25,
            1
        );
}

.tarot-modal.is-visible .tarot-modal-content {
    opacity: 1;

    transform:
        translateY(0)
        scale(1)
        rotate(0);
}

.tarot-modal-close {
    position: absolute;
    z-index: 5;

    top: 22px;
    right: 26px;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border:
        1px solid rgba(218, 183, 119, 0.72);

    border-radius: 50%;

    color: var(--gold-light);

    background:
        rgba(16, 7, 23, 0.88);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.8rem;
    line-height: 1;

    cursor: pointer;

    transition:
        color 200ms ease,
        background 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.tarot-modal-close:hover,
.tarot-modal-close:focus-visible {
    color: #ffffff;

    border-color:
        var(--violet-light);

    background:
        rgba(75, 31, 96, 0.95);

    transform:
        rotate(90deg);
}

.modal-card {
    position: relative;

    width:
        min(360px, 82vw);

    aspect-ratio:
        0.61;

    perspective:
        1400px;

    filter:
        drop-shadow(
            0 0 32px
            rgba(153, 79, 192, 0.72)
        );
}

.modal-card .card-inner {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;

    transform:
        rotateY(180deg) !important;

    transform-style:
        preserve-3d;

    transition: none;
}

.modal-card .card-face {
    border-radius: 12px;

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.72),
        inset 0 0 0 6px #090510,
        inset 0 0 0 7px rgba(205, 162, 101, 0.55),
        inset 0 0 42px rgba(123, 60, 153, 0.35);
}

.modal-card .card-back {
    padding:
        clamp(25px, 5vw, 44px);
}

.modal-card .back-symbol {
    font-size:
        clamp(2.6rem, 7vw, 4rem);
}

.modal-card .card-back strong {
    margin-top: 18px;

    font-size:
        clamp(1rem, 3vw, 1.35rem);

    line-height:
        1.25;
}

.modal-card .back-divider {
    width: 64px;

    margin:
        20px 0;
}

.modal-card .back-description {
    max-width: 270px;

    font-size:
        clamp(0.84rem, 2.4vw, 1rem);

    line-height:
        1.6;
}

.modal-card .back-action {
    margin-top: 22px;

    font-size:
        clamp(0.62rem, 1.8vw, 0.75rem);
}

.modal-reading-info {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: var(--ivory);

    text-align: center;
}

.modal-eyebrow {
    color: var(--violet-light);

    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.modal-reading-info h2 {
    margin: 0 0 8px;

    color: var(--gold-light);

    font-family:
        var(--font-display);

    font-size:
        clamp(1.2rem, 4vw, 1.55rem);

    font-weight: 400;
}

.modal-reading-info .button {
    min-height: 46px;

    min-width: 240px;

    font-size: 0.72rem;
}

/* =========================================
   AJUSTE RESPONSIVO DEL FONDO
========================================= */

@media (max-width: 820px) {

    .hero {
        min-height: 100svh;
    }

    .hero-background {
        background-color: #050408;
        background-position: center top;
        background-size: auto 58svh;
    }

    .hero-copy {
        margin-top:
            clamp(
                300px,
                48svh,
                390px
            );
    }

}

/* =========================================
   MODAL EN CELULAR
========================================= */

@media (max-width: 520px) {

    .tarot-modal {
        padding:
            16px 12px;
    }

    .tarot-modal-close {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 1.5rem;
    }

    .tarot-modal-content {
        gap: 12px;
    }

    .modal-card {
        width:
            min(300px, 82vw);
    }

    .modal-card .card-back {
        padding:
            25px 24px;
    }

    .modal-reading-info h2 {
        max-width: 280px;

        font-size: 1.1rem;
    }

    .modal-reading-info .button {
        min-width: 215px;
        min-height: 43px;

        font-size: 0.66rem;
    }

}

/* =========================================
   CELULAR HORIZONTAL
========================================= */

@media (
    max-height: 650px
) and (
    orientation: landscape
) {

    .tarot-modal-content {
        flex-direction: row;

        gap: 30px;
    }

    .modal-card {
        width:
            min(200px, 30vw);
    }

    .modal-reading-info {
        width: 230px;
    }

    .modal-reading-info .button {
        min-width: 210px;
    }

}

/* =========================================
   BOTÓN VER TESTIMONIOS
========================================= */

.testimonials-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    margin-top: 20px;

    padding:
        8px 17px;

    border:
        1px solid rgba(190, 140, 227, 0.72);

    border-radius:
        2px;

    color:
        #d2a8e5;

    background:
        rgba(83, 37, 105, 0.28);

    font-family:
        var(--font-display);

    font-size:
        0.68rem;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

    cursor:
        pointer;

    transition:
        color 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.testimonials-trigger:hover,
.testimonials-trigger:focus-visible {
    color:
        #fff1cf;

    border-color:
        var(--gold-light);

    background:
        rgba(111, 54, 137, 0.5);

    box-shadow:
        0 0 22px rgba(174, 101, 210, 0.32);

    transform:
        translateY(-2px);
}


/* =========================================
   MODAL DE TESTIMONIOS
========================================= */

.testimonials-modal {
    position: fixed;
    z-index: 1300;

    inset: 0;

    display: grid;
    place-items: center;

    overflow: hidden;

    padding: 22px;

    background:
        radial-gradient(
            circle at center,
            rgba(89, 46, 91, 0.18),
            transparent 48%
        ),
        rgba(4, 2, 6, 0.9);

    -webkit-backdrop-filter:
        blur(16px);

    backdrop-filter:
        blur(16px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 350ms ease,
        visibility 0s linear 350ms;
}

.testimonials-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition-delay: 0s;
}

.testimonials-close {
    position: absolute;
    z-index: 10;

    top: 22px;
    right: 28px;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border:
        1px solid rgba(218, 183, 119, 0.75);

    border-radius: 50%;

    color:
        var(--gold-light);

    background:
        rgba(16, 7, 23, 0.92);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        1.8rem;

    cursor:
        pointer;

    transition:
        color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}

.testimonials-close:hover,
.testimonials-close:focus-visible {
    color: #ffffff;

    background:
        rgba(85, 39, 104, 0.96);

    transform:
        rotate(90deg);
}


/* =========================================
   ESTRUCTURA DEL PAPIRO
========================================= */

.papyrus {
    position: relative;

    width:
        min(720px, calc(100vw - 40px));

    max-height:
        calc(100svh - 42px);

    opacity: 0;

    transform:
        scaleY(0.04)
        scaleX(0.82);

    transform-origin:
        center;

    filter:
        drop-shadow(
            0 34px 55px
            rgba(0, 0, 0, 0.66)
        );
}

.testimonials-modal.is-visible .papyrus {
    animation:
        unrollPapyrus
        900ms
        cubic-bezier(0.2, 0.8, 0.2, 1)
        forwards;
}

.papyrus-sheet {
    position: relative;

    min-height: 570px;

    overflow: hidden;

    padding:
        65px
        clamp(60px, 10vw, 105px)
        55px;

    color:
        #392414;

    background:
        radial-gradient(
            circle at 18% 16%,
            rgba(116, 72, 35, 0.14),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 78%,
            rgba(92, 54, 25, 0.12),
            transparent 26%
        ),
        repeating-linear-gradient(
            4deg,
            rgba(95, 57, 24, 0.025) 0 2px,
            transparent 2px 7px
        ),
        linear-gradient(
            90deg,
            #c79858 0%,
            #e4c98f 7%,
            #f0dda9 18%,
            #e9ce94 50%,
            #f1ddaa 82%,
            #d0a563 94%,
            #a96f35 100%
        );

    border-left:
        2px solid rgba(94, 56, 25, 0.45);

    border-right:
        2px solid rgba(94, 56, 25, 0.45);

    box-shadow:
        inset 20px 0 28px rgba(91, 50, 21, 0.17),
        inset -20px 0 28px rgba(91, 50, 21, 0.17);
}

.papyrus-sheet::before,
.papyrus-sheet::after {
    content: "";

    position: absolute;
    z-index: 0;

    width: 145px;
    height: 145px;

    border-radius: 50%;

    background:
        rgba(111, 62, 24, 0.12);

    filter:
        blur(2px);
}

.papyrus-sheet::before {
    top: -70px;
    left: -55px;
}

.papyrus-sheet::after {
    right: -65px;
    bottom: -72px;
}

.papyrus-roll {
    position: relative;
    z-index: 3;

    width:
        calc(100% + 38px);

    height: 34px;

    margin-left: -19px;

    border:
        1px solid rgba(79, 44, 20, 0.72);

    border-radius:
        50px;

    background:
        linear-gradient(
            180deg,
            #7b431f 0%,
            #b1773c 18%,
            #e0b875 48%,
            #9b5e2b 78%,
            #5a2e16 100%
        );

    box-shadow:
        0 5px 9px rgba(0, 0, 0, 0.42),
        inset 0 2px 5px rgba(255, 229, 170, 0.32);
}

.papyrus-roll::before,
.papyrus-roll::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 29px;
    height: 47px;

    border-radius: 50%;

    background:
        linear-gradient(
            90deg,
            #512914,
            #a66b35,
            #5b2d15
        );

    transform:
        translateY(-50%);
}

.papyrus-roll::before {
    left: -17px;
}

.papyrus-roll::after {
    right: -17px;
}

.papyrus-roll-top {
    margin-bottom: -3px;
}

.papyrus-roll-bottom {
    margin-top: -3px;
}


/* =========================================
   CONTENIDO DEL PAPIRO
========================================= */

.papyrus-category,
.papyrus-sheet h2,
.testimonial-carousel,
.carousel-dots {
    position: relative;
    z-index: 2;

    opacity: 0;
}

.testimonials-modal.is-visible .papyrus-category,
.testimonials-modal.is-visible .papyrus-sheet h2,
.testimonials-modal.is-visible .testimonial-carousel,
.testimonials-modal.is-visible .carousel-dots {
    animation:
        revealPapyrusContent
        450ms
        ease
        700ms
        forwards;
}

.papyrus-category {
    display: block;

    margin-bottom: 9px;

    color:
        #70451f;

    font-size:
        0.68rem;

    letter-spacing:
        0.2em;

    text-align:
        center;

    text-transform:
        uppercase;
}

.papyrus-sheet h2 {
    margin:
        0 0 21px;

    color:
        #4b2e17;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(2rem, 5vw, 3rem);

    font-weight:
        400;

    letter-spacing:
        0.04em;

    text-align:
        center;
}

.papyrus-sheet h2::after {
    content: "✦";

    display: block;

    margin-top: 5px;

    color:
        #855326;

    font-size:
        0.8rem;
}


/* =========================================
   CARRUSEL
========================================= */

.testimonial-carousel {
    display: grid;
    grid-template-columns:
        48px
        minmax(0, 1fr)
        48px;

    align-items: center;

    gap: 16px;
}

.testimonial-slide {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;

    text-align: center;
}

.testimonial-slide h3 {
    margin:
        0 0 15px;

    color:
        #4c2c15;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(1.2rem, 3vw, 1.55rem);

    font-weight:
        600;
}

.testimonial-photo-frame {
    position: relative;

    width: 112px;
    height: 112px;

    margin-bottom: 18px;

    padding: 5px;

    border:
        1px solid rgba(91, 52, 23, 0.64);

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #6e411f,
            #d5ad69,
            #70431f
        );

    box-shadow:
        0 9px 18px rgba(82, 45, 19, 0.28);
}

.testimonial-photo-frame img {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

    background:
        #d7b77b;
}

.testimonial-slide blockquote {
    min-height: 105px;

    margin:
        0;

    color:
        #422b18;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(0.94rem, 2.4vw, 1.08rem);

    font-style: italic;
    line-height: 1.65;

    text-wrap: balance;
}

.testimonial-slide blockquote::before {
    content: "“";

    color:
        #8d5d2d;

    font-size:
        1.7em;

    line-height: 0;
}

.testimonial-slide blockquote::after {
    content: "”";

    color:
        #8d5d2d;

    font-size:
        1.7em;

    line-height: 0;
}

.testimonial-counter {
    margin-top: 13px;

    color:
        #805426;

    font-size:
        0.67rem;

    letter-spacing:
        0.14em;

    text-transform:
        uppercase;
}

.carousel-button {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    padding: 0;

    border:
        1px solid rgba(85, 50, 22, 0.55);

    border-radius: 50%;

    color:
        #57351a;

    background:
        rgba(116, 72, 32, 0.08);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        2rem;
    line-height: 1;

    cursor:
        pointer;

    transition:
        color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
    color:
        #2c180c;

    background:
        rgba(116, 72, 32, 0.2);

    transform:
        scale(1.08);
}

.carousel-dots {
    display: flex;
    justify-content: center;

    gap: 9px;

    margin-top: 20px;
}

.carousel-dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border:
        1px solid rgba(80, 46, 19, 0.66);

    border-radius: 50%;

    background:
        transparent;

    cursor:
        pointer;

    transition:
        background 200ms ease,
        transform 200ms ease;
}

.carousel-dot.is-active {
    background:
        #71451f;

    transform:
        scale(1.25);
}


/* =========================================
   ANIMACIONES DEL PAPIRO
========================================= */

@keyframes unrollPapyrus {

    0% {
        opacity: 0;

        transform:
            scaleY(0.04)
            scaleX(0.82);
    }

    35% {
        opacity: 1;

        transform:
            scaleY(0.2)
            scaleX(0.9);
    }

    68% {
        transform:
            scaleY(1.04)
            scaleX(1);
    }

    100% {
        opacity: 1;

        transform:
            scaleY(1)
            scaleX(1);
    }

}

@keyframes revealPapyrusContent {

    from {
        opacity: 0;

        transform:
            translateY(12px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================
   PAPIRO RESPONSIVO
========================================= */

@media (max-width: 620px) {

    .testimonials-modal {
        padding:
            12px 9px;
    }

    .testimonials-close {
        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        font-size: 1.5rem;
    }

    .papyrus {
        width:
            calc(100vw - 24px);

        max-height:
            calc(100svh - 20px);
    }

    .papyrus-sheet {
        min-height: 540px;

        padding:
            52px
            40px
            42px;
    }

    .papyrus-roll {
        height: 27px;

        width:
            calc(100% + 20px);

        margin-left:
            -10px;
    }

    .papyrus-roll::before,
    .papyrus-roll::after {
        width: 21px;
        height: 38px;
    }

    .testimonial-carousel {
        grid-template-columns:
            36px
            minmax(0, 1fr)
            36px;

        gap: 7px;
    }

    .carousel-button {
        width: 35px;
        height: 35px;

        font-size: 1.55rem;
    }

    .testimonial-photo-frame {
        width: 88px;
        height: 88px;

        margin-bottom: 14px;
    }

    .testimonial-slide blockquote {
        min-height: 126px;

        font-size: 0.88rem;
        line-height: 1.55;
    }

    .papyrus-sheet h2 {
        margin-bottom: 14px;

        font-size: 1.8rem;
    }

}


/* =========================================
   PAPIRO EN CELULAR HORIZONTAL
========================================= */

@media (
    max-height: 600px
) and (
    orientation: landscape
) {

    .papyrus {
        width:
            min(680px, calc(100vw - 30px));
    }

    .papyrus-sheet {
        min-height: 410px;

        padding:
            38px
            80px
            28px;
    }

    .papyrus-sheet h2 {
        margin-bottom: 10px;

        font-size: 1.7rem;
    }

    .testimonial-photo-frame {
        width: 70px;
        height: 70px;

        margin-bottom: 8px;
    }

    .testimonial-slide blockquote {
        min-height: 70px;

        font-size: 0.83rem;
        line-height: 1.45;
    }

    .testimonial-counter {
        margin-top: 5px;
    }

    .carousel-dots {
        margin-top: 8px;
    }

}

/* =========================================
   CORRECCIÓN DEFINITIVA DEL ENCABEZADO
========================================= */

.topbar {
    grid-template-columns:
        minmax(220px, 1fr)
        auto
        minmax(220px, 1fr);

    align-items: center;
}

.brand {
    grid-column: 1;
    grid-row: 1;

    justify-self: start;
}

.main-nav {
    grid-column: 2;
    grid-row: 1;

    justify-self: center;
}

.topbar > .button-small {
    grid-column: 3;
    grid-row: 1;

    justify-self: end;
}


/* TABLETA Y CELULAR */

@media (max-width: 1180px) {

    .topbar {
        grid-template-columns:
            1fr auto;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .main-nav {
        display: none;
    }

    .topbar > .button-small {
        grid-column: 2;
        grid-row: 1;

        justify-self: end;
    }

}

/* =========================================
   CORRECCIÓN DE CLIC EN TESTIMONIOS
========================================= */

.modal-card .card-front {
    pointer-events: none;
}

.modal-card .card-back {
    pointer-events: auto;
}

.modal-card .testimonials-trigger {
    position: relative;
    z-index: 50;

    pointer-events: auto;

    cursor: pointer;
}

/* =========================================================
   RESPONSIVE DEFINITIVO
   Debe permanecer al final de styles.css
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
}

.site-shell {
  min-height: 100svh;
  overflow: visible;
}

.hero {
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}

/* =========================================================
   ESCRITORIO
========================================================= */

@media (min-width: 1181px) {
  .reading-table {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: clamp(12px, 2vh, 28px);

    width: min(1000px, 76vw);
    margin: 0;
    transform: translateX(-50%);
  }

  .card-deck {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: center;
    align-items: end;
    gap: clamp(12px, 1.2vw, 18px);

    width: 100%;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .tarot-slot {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .tarot-card {
    width: 100%;
    max-width: 180px;
    margin-inline: auto;
  }

  .reading-prompt {
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
}

/* Pantallas grandes */

@media (min-width: 1600px) and (min-height: 850px) {
  .reading-table {
    width: min(1080px, 72vw);
  }

  .tarot-card {
    max-width: 195px;
  }
}

/* Portátiles con poca altura */

@media (min-width: 821px) and (max-height: 820px) {
  .hero-copy {
    top: clamp(105px, 16vh, 140px);
    width: min(33vw, 440px);
  }

  .hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(2.65rem, 4vw, 4rem);
    line-height: 0.98;
  }

  .hero-copy p {
    max-width: 400px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .reading-table {
    bottom: 8px;
    width: min(880px, 72vw);
  }

  .reading-prompt {
    margin-bottom: 10px;
    font-size: 0.7rem;
  }

  .tarot-card {
    max-width: 150px;
  }
}

/* =========================================================
   TABLETAS
========================================================= */

@media (min-width: 821px) and (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(190px, 1fr) auto;
    column-gap: 20px;
    width: min(94%, 1100px);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .main-nav {
    display: none;
  }

  .topbar > .button-small {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .reading-table {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 14px;

    width: min(94vw, 900px);
    margin: 0;
    transform: translateX(-50%);
  }

  .card-deck {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: center;
    align-items: end;
    gap: clamp(7px, 1.1vw, 14px);

    width: 100%;
    margin-inline: auto;
    padding: 0;
    overflow: visible;
  }

  .tarot-slot {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .tarot-card {
    width: 100%;
    max-width: 150px;
    margin-inline: auto;
  }

  .reading-prompt {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   CELULARES Y TABLETAS VERTICALES
========================================================= */

@media (max-width: 820px) {
  .site-shell {
    overflow: visible;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    height: auto;
    overflow: hidden;
  }

  .hero-background {
    position: absolute;
    inset: 0;
    height: 100%;
    background-position: center top;
    background-size: auto 56svh;
    background-repeat: no-repeat;
  }

  .hero-vignette {
    background:
      linear-gradient(
        to bottom,
        rgba(2, 1, 5, 0.05) 0%,
        rgba(2, 1, 5, 0.08) 35%,
        rgba(2, 1, 5, 0.78) 54%,
        #030106 72%,
        #030106 100%
      );
  }

  /* Encabezado */

  .topbar {
    position: relative;
    z-index: 20;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;

    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 18px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .main-nav {
    display: none;
  }

  .topbar > .button-small {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: relative;
    inset: auto;
  }

  /* Texto principal */

  .hero-copy {
    position: relative;
    inset: auto;
    z-index: 5;

    width: min(calc(100% - 34px), 580px);
    margin: clamp(310px, 49svh, 410px) auto 0;
    padding: 0;

    text-align: center;
  }

  .eyebrow {
    justify-content: center;
    width: 100%;
    font-size: clamp(0.62rem, 2.6vw, 0.75rem);
  }

  .hero-copy h1 {
    max-width: 620px;
    margin: 16px auto 20px;

    font-size: clamp(2.8rem, 10vw, 4.7rem);
    line-height: 0.96;
    text-align: center;
  }

  .hero-copy p {
    width: min(100%, 520px);
    margin-inline: auto;

    font-size: clamp(0.95rem, 2.5vw, 1.08rem);
    line-height: 1.65;
    text-align: center;
  }

  /* Baraja centrada y deslizable */

  .reading-table {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;

    width: 100%;
    margin: clamp(30px, 7vw, 48px) auto 0;
    padding: 0 0 24px;

    transform: none;
  }

  .reading-prompt {
    width: calc(100% - 34px);
    margin: 0 auto 12px;

    white-space: normal;
    text-align: center;
    line-height: 1.5;
  }

  .card-deck {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;

    width: 100%;
    margin: 0;
    padding: 18px calc(50vw - 76px) 32px;

    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc(50vw - 76px);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .card-deck::-webkit-scrollbar {
    display: none;
  }

  .tarot-slot {
    flex: 0 0 152px;
    width: 152px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .tarot-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .mobile-hint {
    display: block;
    margin-top: -14px;
    padding-bottom: 12px;
    text-align: center;
  }
}

/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 520px) {
  .topbar {
    width: calc(100% - 24px);
    column-gap: 10px;
    padding-top: 15px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand-name {
    font-size: clamp(0.84rem, 4.2vw, 1.12rem);
    letter-spacing: 0.12em;
  }

  .brand-subtitle {
    font-size: 0.48rem;
    letter-spacing: 0.32em;
  }

  /* Mantiene visible el botón superior */

  .topbar > .button-small {
    width: auto;
    min-width: 108px;
    height: 40px;
    padding: 0 11px;

    color: var(--gold-light);
    font-size: 0.56rem;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }

  .topbar > .button-small::before {
    content: none;
  }

  .hero-background {
    background-position: 50% top;
    background-size: auto clamp(345px, 53svh, 440px);
  }

  .hero-copy {
    width: calc(100% - 30px);
    margin-top: clamp(300px, 48svh, 375px);
  }

  .hero-copy h1 {
    margin-top: 14px;
    font-size: clamp(2.45rem, 12vw, 3.35rem);
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .reading-table {
    margin-top: 32px;
  }

  .reading-prompt {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .card-deck {
    gap: 16px;
    padding-right: calc(50vw - 67px);
    padding-left: calc(50vw - 67px);
    scroll-padding-inline: calc(50vw - 67px);
  }

  .tarot-slot {
    flex-basis: 134px;
    width: 134px;
  }
}

/* Celulares muy estrechos */

@media (max-width: 380px) {
  .topbar {
    width: calc(100% - 20px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-name {
    font-size: 0.78rem;
  }

  .brand-subtitle {
    font-size: 0.42rem;
  }

  .topbar > .button-small {
    min-width: 102px;
    height: 38px;
    padding-inline: 9px;
    font-size: 0.52rem;
  }

  .hero-copy {
    width: calc(100% - 24px);
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 11.8vw, 2.85rem);
  }

  .card-deck {
    gap: 14px;
    padding-right: calc(50vw - 62px);
    padding-left: calc(50vw - 62px);
    scroll-padding-inline: calc(50vw - 62px);
  }

  .tarot-slot {
    flex-basis: 124px;
    width: 124px;
  }
}

/* =========================================================
   MODAL DE LA CARTA
========================================================= */

.tarot-modal {
  width: 100%;
  min-height: 100svh;
  height: 100dvh;
}

@media (max-width: 820px) {
  .tarot-modal {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .tarot-modal-content {
    display: flex;
    min-height: 100%;
    width: 100%;
    margin: auto;
    padding: 72px 16px 30px;
  }

  .modal-card {
    width: min(320px, 78vw);
    max-width: 320px;
  }

  .modal-reading-info {
    width: min(100%, 360px);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .tarot-modal-content {
    padding: 66px 12px 24px;
  }

  .modal-card {
    width: min(280px, 76vw);
  }

  .modal-reading-info h3 {
    font-size: 1.3rem;
  }
}

/* Modal horizontal en celulares */

@media (max-height: 650px) and (orientation: landscape) {
  .tarot-modal-content {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 5vw, 60px);
    padding: 62px 22px 24px;
  }

  .modal-card {
    width: min(220px, 30vw);
  }

  .modal-reading-info {
    width: min(330px, 42vw);
    margin: 0;
    text-align: left;
  }
}

/* =========================================================
   MODAL DE TESTIMONIOS / PERGAMINO
========================================================= */

.testimonials-modal {
  width: 100%;
  min-height: 100svh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.papyrus {
  margin: auto;
}

@media (max-width: 620px) {
  .testimonials-modal {
    display: block;
    padding: 48px 12px 24px;
  }

  .papyrus {
    width: min(94vw, 440px);
    margin: 0 auto;
  }

  .papyrus-sheet {
    min-height: 0;
    max-height: calc(100dvh - 120px);
    padding: 34px 24px 28px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .testimonial-photo {
    width: 88px;
    height: 88px;
  }

  .testimonial-name {
    font-size: 1.35rem;
  }

  .testimonial-text {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
  }
}

/* Pergamino en pantallas con poca altura */

@media (min-width: 621px) and (max-height: 720px) {
  .papyrus-sheet {
    min-height: 0;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
  }
}

/* Accesibilidad: reduce animaciones si el usuario lo solicita */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   COMPOSICIÓN RESPONSIVA DEL HERO
   MAESTRO → CARTAS → TEXTO
========================================================= */

@media (max-width: 820px) {
    .hero {
        min-height: auto;
    }

    .topbar {
        order: 1;
    }

    /* =========================================
       MESA DE CARTAS
    ========================================= */

    .reading-table {
        order: 2;

        position: relative;
        inset: auto;
        z-index: 10;

        width: 100%;

        margin:
            clamp(260px, 34svh, 330px)
            auto
            0;

        padding:
            0
            0
            20px;

        transform: none;
        isolation: isolate;
    }

    /*
    Degradado para integrar visualmente
    las cartas con la mesa del maestro.
    */

    .reading-table::before {
        content: "";

        position: absolute;
        z-index: -1;

        top: -90px;
        right: 0;
        bottom: -50px;
        left: 0;

        pointer-events: none;

        background:
            radial-gradient(
                ellipse at center top,
                rgba(102, 48, 126, 0.13),
                transparent 58%
            ),
            linear-gradient(
                to bottom,
                transparent,
                rgba(3, 1, 7, 0.9) 28%,
                #030106 82%
            );
    }

    /* =========================================
       TEXTO SOBRE LAS CARTAS
    ========================================= */

    .reading-prompt {
        width:
            calc(100% - 32px);

        min-height: 24px;

        margin:
            0
            auto
            7px;

        padding:
            0
            8px;

        color: #d3ae68;

        font-size: 0.61rem;
        line-height: 1.4;
        letter-spacing: 0.13em;

        white-space: nowrap;
        text-align: center;
    }

    .reading-prompt strong {
        white-space: nowrap;
    }

    .reading-prompt > span {
        width: 24px;

        margin:
            0
            8px;
    }

    /* =========================================
       CARRUSEL
    ========================================= */

    .card-deck {
        display: flex;
        justify-content: flex-start;
        align-items: center;

        gap: 18px;

        width: 100%;

        margin: 0;

        padding:
            20px
            calc(50vw - 82px)
            27px;

        overflow-x: auto;
        overflow-y: visible;

        cursor: grab;

        scroll-padding-inline:
            calc(50vw - 82px);

        scroll-snap-type:
            x mandatory;

        scroll-behavior: smooth;

        touch-action: pan-x;

        overscroll-behavior-x:
            contain;

        -webkit-overflow-scrolling:
            touch;

        scrollbar-width: none;

        -webkit-mask-image:
            linear-gradient(
                to right,
                transparent 0,
                #000 7%,
                #000 93%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                to right,
                transparent 0,
                #000 7%,
                #000 93%,
                transparent 100%
            );
    }

    .card-deck::-webkit-scrollbar {
        display: none;
    }

    .card-deck:active {
        cursor: grabbing;
    }

    .tarot-slot,
    .slot-1,
    .slot-2,
    .slot-3,
    .slot-4,
    .slot-5 {
        flex:
            0
            0
            164px;

        width: 164px;

        opacity: 0.58;

        filter:
            brightness(0.72)
            saturate(0.82);

        transform:
            scale(0.93)
            translateY(2px);

        transform-origin:
            center center;

        scroll-snap-align:
            center;

        scroll-snap-stop:
            always;

        transition:
            opacity 280ms ease,
            filter 280ms ease,
            transform 280ms ease;
    }

    /*
    La carta que esté en el centro
    recibe el protagonismo visual.
    */

    .tarot-slot.is-centered {
        z-index: 4;

        opacity: 1;

        filter:
            brightness(1.08)
            saturate(1.05);

        transform:
            translateY(-7px)
            scale(1.035);
    }

    .tarot-card {
        width: 164px;
        max-width: none;

        margin: 0;

        transition:
            filter 280ms ease,
            box-shadow 280ms ease;
    }

    .tarot-slot.is-centered .tarot-card {
        filter:
            drop-shadow(
                0 14px 16px
                rgba(0, 0, 0, 0.58)
            )
            drop-shadow(
                0 0 11px
                rgba(149, 84, 182, 0.25)
            );
    }

    /* =========================================
       INDICACIÓN PARA DESLIZAR
    ========================================= */

    .mobile-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        width: max-content;
        max-width:
            calc(100% - 30px);

        margin:
            -4px
            auto
            0;

        padding:
            8px
            14px;

        border-top:
            1px solid
            rgba(202, 168, 109, 0.22);

        border-bottom:
            1px solid
            rgba(202, 168, 109, 0.12);

        color:
            rgba(215, 186, 128, 0.68);

        font-size: 0.58rem;
        letter-spacing: 0.14em;
        line-height: 1.4;
        text-align: center;
        text-transform: uppercase;
    }

    .mobile-hint::before {
        content: "‹";
        color: var(--gold);
        font-size: 1rem;
    }

    .mobile-hint::after {
        content: "›";
        color: var(--gold);
        font-size: 1rem;
    }

    /* =========================================
       TEXTO PRINCIPAL DESPUÉS DE LAS CARTAS
    ========================================= */

    .hero-copy {
        order: 3;

        position: relative;
        inset: auto;
        z-index: 5;

        width: min(
            calc(100% - 34px),
            580px
        );

        margin:
            28px
            auto
            clamp(58px, 11vw, 85px);

        padding: 0;

        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }

    .hero-copy h1 {
        margin:
            16px
            auto
            20px;

        text-align: center;
    }

    .hero-copy p {
        margin-inline: auto;

        text-align: center;
    }
}

/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 520px) {
    .reading-table {
        margin-top:
            clamp(220px, 32svh, 275px);
    }

    .reading-prompt {
        width:
            calc(100% - 20px);

        padding: 0;

        font-size: 0.56rem;
        letter-spacing: 0.11em;
    }

    .reading-prompt > span {
        width: 18px;

        margin:
            0
            6px;
    }

    .card-deck {
        gap: 17px;

        padding-right:
            calc(50vw - 71px);

        padding-left:
            calc(50vw - 71px);

        scroll-padding-inline:
            calc(50vw - 71px);
    }

    .tarot-slot,
    .slot-1,
    .slot-2,
    .slot-3,
    .slot-4,
    .slot-5 {
        flex-basis: 142px;
        width: 142px;
    }

    .tarot-card {
        width: 142px;
    }

    .hero-copy {
        width:
            calc(100% - 28px);

        margin-top: 25px;
    }

    .hero-copy h1 {
        font-size:
            clamp(
                2.55rem,
                12vw,
                3.25rem
            );
    }
}

/* =========================================================
   CELULARES MUY ESTRECHOS
========================================================= */

@media (max-width: 380px) {
    .reading-table {
        margin-top:
            clamp(215px, 31svh, 260px);
    }

    .card-deck {
        gap: 15px;

        padding-right:
            calc(50vw - 66px);

        padding-left:
            calc(50vw - 66px);

        scroll-padding-inline:
            calc(50vw - 66px);
    }

    .tarot-slot,
    .slot-1,
    .slot-2,
    .slot-3,
    .slot-4,
    .slot-5 {
        flex-basis: 132px;
        width: 132px;
    }

    .tarot-card {
        width: 132px;
    }
}