:root {
    --bg: #08090d;
    --bg-soft: #101218;
    --surface: #14171f;
    --surface-2: #1a1e28;
    --surface-3: #202530;

    --text: #f7f7fb;
    --text-soft: #b5bac8;
    --text-muted: #7f8696;

    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #6d28d9;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);

    --danger: #fb7185;

    --container: 1240px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.38);

    --transition:
        180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(124, 58, 237, 0.16),
            transparent 28rem
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Arial,
        Calibri,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

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

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

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;

    height: 76px;

    background:
        rgba(8, 9, 13, 0.84);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(18px);
}

.header-content {
    position: relative;

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

    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );

    color: #fff;

    font-size: 20px;
    font-weight: 800;

    box-shadow:
        0 10px 30px rgba(124, 58, 237, 0.35);
}

.brand-name {
    white-space: nowrap;
}

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

.header-nav a {
    position: relative;

    padding-block: 8px;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 700;

    transition:
        color var(--transition);
}

.header-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    background:
        var(--primary-light);

    content: "";

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform var(--transition);
}

.header-nav a:hover {
    color: var(--text);
}

.header-nav a:hover::after {
    transform:
        scaleX(1);
}

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 10px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        12px;
}

.menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin-block: 5px;

    background:
        var(--text);

    border-radius:
        999px;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

/* Hero */

.hero {
    position: relative;

    min-height: 620px;

    overflow: hidden;

    border-bottom:
        1px solid var(--border);
}

.hero-background {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;

    transform:
        scale(1.02);
}

.hero-background::before {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(6, 7, 11, 0.99) 0%,
            rgba(6, 7, 11, 0.92) 30%,
            rgba(6, 7, 11, 0.48) 65%,
            rgba(6, 7, 11, 0.72) 100%
        );

    content: "";
}

.hero-background::after {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            var(--bg) 0%,
            transparent 34%
        );

    content: "";
}

.hero-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    min-height: 620px;

    padding-block:
        90px 110px;
}

.hero-copy {
    width: min(620px, 100%);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 32px;

    margin-bottom: 22px;
    padding-inline: 13px;

    background:
        rgba(139, 92, 246, 0.16);

    border:
        1px solid rgba(167, 139, 250, 0.34);

    border-radius:
        999px;

    color:
        #d8c9ff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.hero-tag::before {
    width: 7px;
    height: 7px;

    background:
        var(--primary-light);

    border-radius:
        50%;

    box-shadow:
        0 0 14px var(--primary-light);

    content: "";
}

.hero h1 {
    max-width: 760px;

    margin:
        0 0 20px;

    font-size:
        clamp(46px, 7vw, 84px);

    line-height: 0.98;
    letter-spacing: -0.065em;
}

.hero-description {
    max-width: 580px;

    margin:
        0 0 30px;

    color:
        var(--text-soft);

    font-size:
        clamp(17px, 2vw, 20px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;

    margin-bottom: 34px;

    color:
        #d7dae3;

    font-size: 14px;
    font-weight: 700;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta-item::before {
    width: 5px;
    height: 5px;

    background:
        var(--primary-light);

    border-radius:
        50%;

    content: "";
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

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

    min-height: 50px;

    padding-inline: 22px;

    border:
        1px solid transparent;

    border-radius:
        13px;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.button:hover {
    transform:
        translateY(-2px);
}

.button-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary-light),
            var(--primary-dark)
        );

    color:
        #fff;

    box-shadow:
        0 16px 35px rgba(109, 40, 217, 0.28);
}

.button-primary:hover {
    background:
        linear-gradient(
            135deg,
            #b39bff,
            #7c3aed
        );
}

.button-secondary {
    background:
        rgba(255, 255, 255, 0.07);

    border-color:
        var(--border-strong);

    color:
        var(--text);
}

.button-secondary:hover {
    background:
        rgba(255, 255, 255, 0.12);
}

/* Sections */

.cartelera,
.como-funciona {
    padding-block:
        92px;
}

.cartelera {
    background:
        var(--bg);
}

.como-funciona {
    background:
        var(--bg-soft);

    border-top:
        1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;

    margin-bottom:
        38px;
}

.section-header-simple {
    align-items: flex-start;
}

.section-title-group {
    max-width: 680px;
}

.section-kicker {
    margin:
        0 0 10px;

    color:
        var(--primary-light);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-header h2 {
    margin:
        0;

    font-size:
        clamp(34px, 5vw, 52px);

    line-height: 1.05;
    letter-spacing: -0.045em;
}

.section-description {
    margin:
        14px 0 0;

    color:
        var(--text-muted);

    font-size:
        16px;
}

/* Search */

.search-box {
    position: relative;

    flex: 0 1 355px;
}

.search-box input {
    width: 100%;
    height: 52px;

    padding:
        0 18px 0 47px;

    outline: none;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        14px;

    color:
        var(--text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.search-box input::placeholder {
    color:
        var(--text-muted);
}

.search-box input:focus {
    border-color:
        rgba(167, 139, 250, 0.72);

    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.12);
}

.search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 18px;

    width: 16px;
    height: 16px;

    border:
        2px solid var(--text-muted);

    border-radius:
        50%;

    transform:
        translateY(-56%);
}

.search-icon::after {
    position: absolute;
    right: -6px;
    bottom: -4px;

    width: 7px;
    height: 2px;

    background:
        var(--text-muted);

    border-radius:
        999px;

    content: "";

    transform:
        rotate(45deg);
}

/* Event cards */

.event-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.event-card {
    position: relative;

    overflow: hidden;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.12);

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

.event-card:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(167, 139, 250, 0.35);

    box-shadow:
        var(--shadow);
}

.event-card-image {
    position: relative;

    aspect-ratio:
        4 / 5;

    overflow: hidden;

    background:
        #050608;
}

.event-card-image::after {
    position: absolute;
    inset:
        auto 0 0;

    height: 55%;

    background:
        linear-gradient(
            0deg,
            rgba(20, 23, 31, 0.9),
            transparent
        );

    content: "";
}

.event-card-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform 350ms ease;
}

.event-card:hover .event-card-image img {
    transform:
        scale(1.035);
}

.event-card-tag {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;

    min-height: 28px;

    padding:
        6px 11px;

    background:
        rgba(8, 9, 13, 0.78);

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius:
        999px;

    color:
        #fff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    backdrop-filter:
        blur(10px);
}

.event-card-body {
    padding:
        22px;
}

.event-card-title {
    margin:
        0 0 10px;

    font-size:
        23px;

    line-height:
        1.15;

    letter-spacing:
        -0.025em;
}

.event-card-description {
    display: -webkit-box;

    min-height: 48px;

    margin:
        0 0 20px;

    overflow: hidden;

    color:
        var(--text-muted);

    font-size:
        14px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin-bottom:
        22px;

    color:
        var(--text-soft);

    font-size:
        13px;
}

.event-card-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.event-card-meta-label {
    color:
        var(--text-muted);
}

.event-card-meta-value {
    color:
        var(--text);

    font-weight:
        700;

    text-align:
        right;
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding-top:
        18px;

    border-top:
        1px solid var(--border);
}

.event-price {
    display: flex;
    flex-direction: column;
}

.event-price-label {
    color:
        var(--text-muted);

    font-size:
        11px;

    text-transform:
        uppercase;
}

.event-price-value {
    font-size:
        21px;
    font-weight:
        900;
}

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

    min-height: 42px;

    padding-inline:
        16px;

    background:
        var(--surface-3);

    border:
        1px solid var(--border);

    border-radius:
        11px;

    color:
        var(--text);

    font-size:
        13px;
    font-weight:
        800;

    transition:
        background var(--transition),
        border-color var(--transition);
}

.event-link:hover {
    background:
        var(--primary-dark);

    border-color:
        var(--primary-light);
}

/* States */

.estado-mensaje {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 220px;

    padding:
        34px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    color:
        var(--text-muted);

    text-align:
        center;
}

.estado-mensaje strong {
    color:
        var(--text);

    font-size:
        18px;
}

.estado-error strong {
    color:
        var(--danger);
}

.loader {
    width: 34px;
    height: 34px;

    margin-bottom:
        8px;

    border:
        3px solid rgba(255, 255, 255, 0.12);

    border-top-color:
        var(--primary-light);

    border-radius:
        50%;

    animation:
        girar 0.75s linear infinite;
}

@keyframes girar {
    to {
        transform:
            rotate(360deg);
    }
}

/* Steps */

.steps-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.step-card {
    position: relative;

    min-height: 250px;

    padding:
        30px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            rgba(20, 23, 31, 0.68)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);
}

.step-card::after {
    position: absolute;
    right: -70px;
    bottom: -90px;

    width: 190px;
    height: 190px;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.17),
            transparent 68%
        );

    content: "";
}

.step-number {
    display: block;

    margin-bottom:
        28px;

    color:
        var(--primary-light);

    font-size:
        12px;
    font-weight:
        900;
    letter-spacing:
        0.12em;
}

.step-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    margin-bottom:
        22px;

    background:
        rgba(139, 92, 246, 0.14);

    border:
        1px solid rgba(167, 139, 250, 0.22);

    border-radius:
        12px;

    color:
        var(--primary-light);

    font-size:
        18px;
}

.step-card h3 {
    margin:
        0 0 10px;

    font-size:
        20px;
}

.step-card p {
    margin:
        0;

    color:
        var(--text-muted);

    font-size:
        14px;
}

/* Footer */

.site-footer {
    padding-block:
        42px;

    background:
        #06070a;

    border-top:
        1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand p {
    margin:
        15px 0 0;

    color:
        var(--text-muted);

    font-size:
        14px;
}

.footer-copy {
    margin:
        0;

    color:
        var(--text-muted);

    font-size:
        13px;
}

/* Tablet */

@media (max-width: 960px) {
    .hero,
    .hero-content {
        min-height:
            570px;
    }

    .event-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns:
            1fr;
    }

    .step-card {
        min-height:
            auto;
    }
}

/* Mobile */

@media (max-width: 720px) {
    .container {
        width:
            min(calc(100% - 28px), var(--container));
    }

    .site-header {
        height:
            68px;
    }

    .menu-button {
        display:
            block;
    }

    .header-nav {
        position: fixed;
        top: 68px;
        right: 0;
        left: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;

        padding:
            18px 14px 24px;

        background:
            rgba(8, 9, 13, 0.98);

        border-bottom:
            1px solid var(--border);

        opacity: 0;
        pointer-events: none;

        transform:
            translateY(-10px);

        transition:
            opacity var(--transition),
            transform var(--transition);
    }

    .header-nav.open {
        opacity: 1;
        pointer-events: auto;

        transform:
            translateY(0);
    }

    .header-nav a {
        padding:
            13px 14px;

        background:
            var(--surface);

        border-radius:
            10px;
    }

    .hero,
    .hero-content {
        min-height:
            600px;
    }

    .hero-content {
        align-items:
            flex-end;

        padding-block:
            100px 70px;
    }

    .hero-background::before {
        background:
            linear-gradient(
                0deg,
                rgba(6, 7, 11, 1) 0%,
                rgba(6, 7, 11, 0.76) 60%,
                rgba(6, 7, 11, 0.48) 100%
            );
    }

    .hero h1 {
        font-size:
            clamp(42px, 14vw, 62px);
    }

    .hero-description {
        font-size:
            16px;
    }

    .hero-actions {
        align-items:
            stretch;
        flex-direction:
            column;
    }

    .button {
        width:
            100%;
    }

    .cartelera,
    .como-funciona {
        padding-block:
            68px;
    }

    .section-header {
        align-items:
            stretch;
        flex-direction:
            column;

        margin-bottom:
            28px;
    }

    .search-box {
        flex-basis:
            auto;
        width:
            100%;
    }

    .event-grid {
        grid-template-columns:
            1fr;
    }

    .event-card-image {
        aspect-ratio:
            16 / 13;
    }

    .footer-content {
        align-items:
            flex-start;
        flex-direction:
            column;
    }
}

/* Small mobile */

@media (max-width: 420px) {
    .brand-name {
        font-size:
            18px;
    }

    .hero-meta {
        align-items:
            flex-start;
        flex-direction:
            column;
    }

    .event-card-footer {
        align-items:
            stretch;
        flex-direction:
            column;
    }

    .event-link {
        width:
            100%;
    }
}

.site-header {
    position: relative;
}

.header-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.pedido-popover {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: max(1rem, calc((100vw - 1200px) / 2));
    z-index: 1000;
    width: min(420px, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.85rem;
    background: #151515;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.pedido-popover-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.pedido-popover-form input {
    min-width: 0;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: inherit;
    text-transform: uppercase;
}

.estado-recuperar-pedido {
    grid-column: 1 / -1;
    font-size: 0.9rem;
}

.estado-recuperar-pedido.estado-error {
    color: #ff9f9f;
}

@media (max-width: 720px) {
    .pedido-popover {
        right: 1rem;
        left: 1rem;
        width: auto;
    }

    .pedido-popover-form {
        grid-template-columns: 1fr;
    }

    .pedido-popover-form .button {
        width: 100%;
    }
}