/* Base */

:root {
    --cream: #f8f2e7;
    --paper: #fffdf8;
    --green: #173f37;
    --mint: #63bb96;
    --pink: #b52b72;
    --yellow: #f3d16f;
    --lime: #dce52b;
    --muted: #65716a;
    --border: #dedfd3;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--green);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body.dialog-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select,
summary {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
summary {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 4px;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.1;
    text-wrap: balance;
}

h1 {
    margin-bottom: 24px;
    color: var(--pink);
    font-size: clamp(42px, 4.6vw, 66px);
    letter-spacing: -0.055em;
}

h1 span,
h2 span {
    color: var(--green);
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(34px, 3.8vw, 48px);
    letter-spacing: -0.045em;
}

h3 {
    letter-spacing: -0.035em;
}

.eyebrow {
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.description {
    max-width: 490px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.helper {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 12px 18px;
    transform: translateY(-180%);
    border-radius: 8px;
    background: var(--green);
    color: white;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Encabezado */

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
    box-shadow: 0 4px 20px rgb(23 63 55 / 4%);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-number {
    color: var(--pink);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.09em;
}

.brand-text {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.brand-text small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-menu a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 3px;
    transform: scaleX(0);
    border-radius: 3px;
    background: var(--mint);
    content: "";
    transition: transform 180ms ease;
}

.main-menu a[aria-current="location"]::after {
    transform: scaleX(1);
}

.header-motto {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    text-align: right;
    letter-spacing: -0.04em;
}

.header-motto span {
    display: block;
    margin-top: 6px;
    color: var(--pink);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 90px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--paper);
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 19px;
}

.menu-icon span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Botones */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--lime);
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.button-secondary {
    background: var(--mint);
}

.button-full {
    width: 100%;
}

.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Inicio */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 65px;
    padding-block: 70px 85px;
}

.hero-content {
    min-width: 0;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-block: 30px;
}

.event-details > div {
    padding-left: 14px;
    border-left: 3px solid var(--mint);
}

.event-details span,
.event-details strong,
.event-details small {
    display: block;
}

.event-details span {
    margin-bottom: 7px;
    color: var(--pink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.event-details strong {
    font-size: 14px;
    line-height: 1.5;
}

.event-details small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.poster {
    width: 100%;
    min-width: 0;
    transform: rotate(2deg);
    overflow: hidden;
    border: 6px solid var(--paper);
    border-radius: 25px;
    background: var(--paper);
    box-shadow: 15px 17px 0 var(--mint);
}

.poster img {
    width: 100%;
    height: auto;
}

.celebration-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    overflow: hidden;
    padding: 17px 20px;
    background: var(--green);
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

/* Formularios */

.registration {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 80px;
    padding-block: 85px;
}

.section-intro {
    min-width: 0;
    padding-top: 15px;
}

.section-intro .eyebrow {
    color: var(--pink);
}

.info-box {
    max-width: 470px;
    margin-top: 25px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgb(255 253 248 / 75%);
    font-size: 13px;
}

.info-box > strong {
    display: block;
    margin-bottom: 10px;
}

.info-box p {
    margin-bottom: 12px;
    color: var(--muted);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.simple-list {
    margin: 0 0 14px;
    padding-left: 19px;
    color: var(--muted);
}

.simple-list li + li {
    margin-top: 5px;
}

.form-card {
    min-width: 0;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 18px 45px rgb(23 63 55 / 5%);
}

.mobile-form-toggle {
    display: none;
}

.mobile-form-content {
    min-width: 0;
}

.step-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--pink);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.form-card > h3,
.mobile-form-content > h3 {
    margin-bottom: 12px;
    font-size: 29px;
}

.form-card > p:not(.demo-note, .form-message),
.mobile-form-content > p:not(.demo-note, .form-message) {
    color: var(--muted);
    font-size: 13px;
}

fieldset {
    min-width: 0;
    margin: 26px 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 13px;
    font-size: 13px;
    font-weight: 700;
}

.quantity-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.quantity-option {
    position: relative;
    cursor: pointer;
}

.quantity-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.quantity-option span {
    display: grid;
    min-height: 55px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--cream);
    font-size: 20px;
    font-weight: 800;
}

.quantity-option input:checked + span {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.quantity-option input:focus-visible + span {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
}

.flow-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-block: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #edf3df;
    font-size: 13px;
}

.flow-summary strong {
    overflow-wrap: anywhere;
}

.flow-field {
    min-width: 0;
    margin-bottom: 20px;
}

.flow-field > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.flow-field > input,
.flow-field > select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
    color: var(--green);
    font-size: 16px;
}

.flow-field > small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.flow-phone {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
}

.flow-phone > span {
    flex-shrink: 0;
    padding-inline: 14px;
    border-right: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
}

.flow-phone > input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 16px;
}

.flow-phone:focus-within {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
}

.flow-phone > input:focus-visible {
    outline: none;
}

.flow-verification {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f5f5ee;
}

.flow-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.flow-check > input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--green);
}

.flow-check > span {
    min-width: 0;
}

.flow-verification > small,
.demo-controls > small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
}

.flow-legal {
    margin-block: 17px 24px;
    font-size: 12px;
}

.flow-legal > summary {
    padding-block: 6px;
    color: var(--pink);
    font-weight: 700;
    cursor: pointer;
}

.flow-legal > p {
    margin-top: 12px;
    color: var(--muted);
}

.flow-back {
    display: flex;
    margin: 12px auto 0;
}

.form-submit {
    margin-top: 24px;
}

.form-message {
    margin: 16px 0 0;
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.form-message:empty {
    display: none;
}

.flow-result {
    padding-top: 20px;
    text-align: center;
}

.flow-result-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    font-size: 28px;
    font-weight: 800;
}

.flow-result h4 {
    margin-bottom: 15px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.flow-result p {
    color: var(--muted);
    font-size: 13px;
}

.flow-result .button {
    margin-top: 15px;
}

.recovery-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    text-align: center;
}

#recovery-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--cream);
}

#recovery-panel h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.demo-note {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-align: center;
}

/* Rifa */

.raffle-section {
    border-block: 1px solid var(--border);
    background: #edf0e3;
}

.folio-fields {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.folio-fields .flow-field {
    margin-bottom: 0;
}

.demo-controls {
    margin-block: 22px;
    padding: 16px;
    border: 1px dashed #b4bea9;
    border-radius: 12px;
    background: #f5f5ee;
}

.demo-controls .flow-field {
    margin-bottom: 0;
}

/* Lista de boletos */

.ticket-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--cream);
}

.ticket-item > div {
    min-width: 0;
}

.ticket-item strong,
.ticket-item small {
    display: block;
}

.ticket-item strong {
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ticket-item small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.ticket-item button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

/* Cartelera */

.theater-section {
    padding-block: 80px;
    background: var(--paper);
}

.theater-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}

.theater-heading h2 {
    margin-bottom: 0;
}

.theater-heading .eyebrow {
    color: var(--pink);
}

.theater-intro {
    max-width: 280px;
    flex-shrink: 0;
}

.theater-badge {
    display: inline-block;
    margin-bottom: 13px;
    padding: 7px 12px;
    border-radius: 7px;
    background: var(--yellow);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.theater-intro p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.event-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--paper);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-poster {
    aspect-ratio: 1;
    overflow: hidden;
    background: #ecebdf;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-placeholder {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--green);
    color: var(--yellow);
    text-align: center;
}

.event-placeholder > span {
    font-size: 32px;
}

.event-placeholder strong {
    font-size: 19px;
    line-height: 1.2;
}

.event-placeholder small {
    font-size: 9px;
    letter-spacing: 0.06em;
}

.event-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px;
}

.event-category {
    margin-bottom: 8px;
    color: var(--pink);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.event-content h3 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.event-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 46px;
    margin-top: auto;
    padding: 10px;
    border-radius: 8px;
    background: var(--lime);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
}

.event-buy > span {
    flex-shrink: 0;
    font-size: 16px;
}

.theater-note {
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Boleto digital */

.ticket-dialog {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 20px;
    background: var(--cream);
    color: var(--green);
}

.ticket-dialog::backdrop {
    background: rgb(12 30 26 / 70%);
}

.dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.dialog-toolbar h2 {
    margin: 0;
    font-size: 23px;
}

.dialog-close {
    display: grid;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--paper);
    color: var(--green);
    font-size: 20px;
}

.digital-ticket {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--paper);
}

.ticket-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--green);
    color: var(--paper);
}

.ticket-heading > div {
    min-width: 0;
}

.ticket-centenary {
    flex-shrink: 0;
    color: var(--yellow);
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.08em;
}

.ticket-heading p {
    margin: 0 0 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.ticket-heading strong {
    font-size: 15px;
}

.ticket-body {
    padding: 25px;
}

.ticket-body .eyebrow {
    color: var(--pink);
    font-size: 10px;
}

.ticket-body h3 {
    margin-bottom: 25px;
    font-size: 29px;
}

.ticket-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.ticket-details > div {
    min-width: 0;
}

.ticket-details dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ticket-details dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.qr-placeholder {
    display: flex;
    width: 190px;
    max-width: 100%;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 25px auto;
    padding: 15px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: white;
    text-align: center;
}

.qr-placeholder > span {
    color: var(--muted);
    font-size: 65px;
    line-height: 1;
}

.qr-placeholder strong {
    margin-top: 10px;
    font-size: 11px;
}

.qr-placeholder small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.ticket-warning {
    margin-bottom: 10px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.ticket-footnote {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.ticket-bottom {
    padding: 14px;
    border-top: 2px dashed var(--border);
    background: var(--yellow);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
}

.ticket-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dialog-note {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Pie de página */

.footer {
    padding-block: 30px;
    background: var(--green);
    color: var(--paper);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-content strong,
.footer-content span {
    display: block;
}

.footer-content strong {
    font-size: 13px;
}

.footer-content span {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.85;
}

.footer-content > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--yellow);
    font-size: 13px;
    text-underline-offset: 5px;
}

/* Interacciones */

@media (hover: hover) and (pointer: fine) {
    .main-menu a:hover::after {
        transform: scaleX(1);
    }

    .button:hover {
        transform: translateY(-2px);
        background: #cdd622;
    }

    .button-secondary:hover {
        background: #51aa86;
    }

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgb(23 63 55 / 9%);
    }

    .event-buy:hover {
        background: #cdd622;
    }
}

/* Tabletas */

@media (max-width: 1100px) {
    .header-motto {
        display: none;
    }

    .hero,
    .registration {
        gap: 40px;
    }

    .events-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 88px;
    }

    .navigation {
        position: relative;
        min-height: 76px;
        flex-wrap: wrap;
        gap: 12px;
        padding-block: 12px;
    }

    .brand-number {
        font-size: 42px;
    }

    .main-menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    .menu-ready .menu-toggle {
        display: inline-flex;
    }

    .menu-ready .main-menu {
        position: absolute;
        top: calc(100% - 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        overflow-y: auto;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 0 0 16px 16px;
        background: var(--paper);
        box-shadow: 0 16px 25px rgb(23 63 55 / 12%);
    }

    .menu-ready .main-menu.is-open {
        display: flex;
    }

    .main-menu a {
        min-height: 48px;
        padding: 12px 15px;
        border-radius: 9px;
        font-size: 15px;
    }

    .main-menu a::after {
        display: none;
    }

    .main-menu a[aria-current="location"] {
        background: #edf3df;
    }

    .theater-heading {
        align-items: flex-start;
        gap: 25px;
    }

    .theater-intro {
        max-width: 230px;
    }
}

/* Celulares */

@media (max-width: 760px) {
    html {
        scroll-padding-top: 80px;
    }

    .container {
        width: min(560px, calc(100% - 28px));
    }

    .navigation {
        min-height: 64px;
        padding-block: 9px;
    }

    .brand {
        gap: 8px;
    }

    .brand-number {
        font-size: 36px;
    }

    .brand-text {
        font-size: 9px;
    }

    .brand-text small {
        font-size: 7px;
    }

    .menu-toggle {
        min-width: 80px;
        padding: 9px 10px;
        font-size: 12px;
    }

    h1 {
        margin-bottom: 0;
        font-size: clamp(33px, 8.4vw, 45px);
        line-height: 1.08;
    }

    h2 {
        margin-bottom: 0;
        font-size: 28px;
        line-height: 1.15;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding-block: 27px 32px;
    }

    .hero-content > .eyebrow {
        margin-bottom: 12px;
        font-size: 9px;
    }

    .hero-content > .description,
    .celebration-band,
    .section-intro > .description,
    .section-intro > .info-box,
    .section-intro > .helper,
    .theater-intro > p,
    .event-category {
        display: none;
    }

    .event-details {
        gap: 12px;
        margin-block: 21px;
    }

    .event-details > div {
        padding-left: 10px;
    }

    .event-details span {
        margin-bottom: 4px;
        font-size: 9px;
    }

    .event-details strong {
        font-size: 12px;
    }

    .event-details small {
        font-size: 11px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .hero-actions .button {
        min-height: 48px;
        padding: 12px 8px;
        font-size: 12px;
    }

    .poster {
        width: calc(100% - 12px);
        max-width: 420px;
        margin: 2px auto 6px;
        transform: none;
        border-width: 4px;
        border-radius: 18px;
        box-shadow: 6px 7px 0 var(--mint);
    }

    .registration {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        padding-block: 26px;
    }

    #registro {
        border-top: 1px solid var(--border);
    }

    .section-intro {
        padding-top: 0;
    }

    .section-intro .eyebrow {
        margin-bottom: 8px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .form-card {
        padding: 20px;
        border-radius: 17px;
        box-shadow: 0 6px 18px rgb(23 63 55 / 4%);
    }

    .mobile-form-card {
        padding: 0;
        overflow: hidden;
    }

    .mobile-form-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
        min-height: 88px;
        padding: 19px;
        border: 0;
        background: var(--green);
        color: white;
        text-align: left;
    }

    #rifa .mobile-form-toggle {
        background: var(--pink);
    }

    .mobile-form-toggle:focus-visible {
        outline-offset: -5px;
        outline-color: var(--yellow);
    }

    .mobile-form-text {
        display: block;
        min-width: 0;
    }

    .mobile-form-text strong {
        display: block;
        font-size: 19px;
        line-height: 1.25;
        letter-spacing: -0.03em;
    }

    .mobile-form-text small {
        display: block;
        margin-top: 6px;
        color: rgb(255 255 255 / 85%);
        font-size: 12px;
        line-height: 1.5;
    }

    .mobile-form-icon {
        display: grid;
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid rgb(255 255 255 / 35%);
        border-radius: 50%;
        font-size: 25px;
        font-weight: 400;
        line-height: 1;
    }

    .mobile-form-content {
        padding: 20px;
    }

    .mobile-form-content > .step-label {
        margin-bottom: 10px;
        font-size: 10px;
    }

    .mobile-form-content > h3 {
        margin-bottom: 9px;
        font-size: 24px;
    }

    .mobile-form-content > h3 + p {
        display: none;
    }

    .mobile-form-content .demo-note {
        margin-top: 17px;
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 0;
    }

    fieldset {
        margin-block: 15px 20px;
    }

    legend {
        margin-bottom: 11px;
        font-size: 13px;
    }

    .quantity-options {
        gap: 8px;
    }

    .quantity-option span {
        min-height: 50px;
        border-radius: 10px;
        font-size: 20px;
    }

    .button {
        min-height: 50px;
        padding: 13px 14px;
        font-size: 14px;
    }

    .flow-field {
        margin-bottom: 17px;
    }

    .flow-field > label {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .flow-field > input,
    .flow-field > select,
    .flow-phone > input {
        min-height: 52px;
        padding: 13px 12px;
        font-size: 16px;
    }

    .flow-field > small,
    .helper {
        font-size: 12px;
    }

    .flow-summary {
        margin-block: 15px 20px;
        padding: 12px;
        font-size: 12px;
    }

    .flow-check {
        gap: 10px;
        font-size: 12px;
    }

    .flow-verification {
        margin-bottom: 17px;
        padding: 13px;
    }

    .flow-verification > small {
        font-size: 11px;
    }

    .flow-legal {
        margin-block: 13px 19px;
    }

    .flow-back {
        margin-top: 8px;
    }

    .recovery-access {
        gap: 0;
        margin-top: 18px;
        padding-top: 14px;
        font-size: 12px;
    }

    #recovery-panel {
        margin-top: 14px;
        padding: 14px;
    }

    #recovery-panel h4 {
        font-size: 19px;
    }

    .folio-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
        margin-top: 17px;
    }

    .demo-controls {
        margin-block: 17px;
        padding: 13px;
    }

    .demo-controls > small {
        font-size: 11px;
    }

    .flow-result {
        padding-top: 8px;
    }

    .flow-result-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 15px;
        font-size: 24px;
    }

    .flow-result h4 {
        font-size: 23px;
    }

    .ticket-list {
        gap: 10px;
        margin-top: 18px;
    }

    .ticket-item {
        gap: 10px;
        padding: 12px;
    }

    .ticket-item strong {
        font-size: 15px;
    }

    .ticket-item small {
        font-size: 11px;
    }

    .ticket-item button {
        padding-inline: 11px;
    }

    .theater-section {
        padding-block: 30px;
    }

    .theater-heading {
        flex-direction: column;
        gap: 13px;
        margin-bottom: 19px;
    }

    .theater-heading h2 {
        font-size: 29px;
    }

    .theater-heading .eyebrow {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .theater-intro {
        max-width: none;
    }

    .theater-badge {
        margin: 0;
        font-size: 9px;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .event-card {
        border-radius: 12px;
    }

    .event-content {
        padding: 10px;
    }

    .event-content h3 {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.2;
        letter-spacing: -0.025em;
    }

    .event-buy {
        min-height: 45px;
        gap: 4px;
        padding: 10px 8px;
        font-size: 11px;
        letter-spacing: -0.02em;
    }

    .event-buy > span {
        font-size: 15px;
    }

    .event-placeholder {
        gap: 7px;
        padding: 11px;
    }

    .event-placeholder strong {
        font-size: 16px;
    }

    .theater-note {
        margin-top: 19px;
        font-size: 11px;
    }

    .footer {
        padding-block: 22px;
        padding-bottom: max(22px, env(safe-area-inset-bottom));
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .footer-content span {
        font-size: 11px;
    }

    .ticket-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 14px;
        border-radius: 17px;
    }

    .dialog-toolbar {
        margin-bottom: 13px;
    }

    .dialog-toolbar h2 {
        font-size: 21px;
    }

    .digital-ticket {
        border-radius: 14px;
    }

    .ticket-heading {
        gap: 13px;
        padding: 18px;
    }

    .ticket-centenary {
        font-size: 46px;
    }

    .ticket-heading p {
        font-size: 9px;
        letter-spacing: 0.02em;
    }

    .ticket-heading strong {
        font-size: 12px;
    }

    .ticket-body {
        padding: 20px 18px;
    }

    .ticket-body h3 {
        margin-bottom: 22px;
        font-size: 26px;
    }

    .ticket-details {
        gap: 16px 12px;
    }

    .ticket-details dd {
        font-size: 13px;
    }

    .ticket-actions .button {
        width: 100%;
        font-size: 13px;
    }
}

/* Pantallas pequeñas */

@media (max-width: 359px) {
    .container {
        width: calc(100% - 24px);
    }

    .brand {
        gap: 7px;
    }

    .brand-number {
        font-size: 33px;
    }

    .brand-text {
        font-size: 8px;
    }

    .brand-text small {
        font-size: 7px;
    }

    .menu-toggle {
        min-width: 74px;
        gap: 6px;
        padding-inline: 8px;
        font-size: 11px;
    }

    h1 {
        font-size: 31px;
    }

    .hero-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .mobile-form-toggle {
        gap: 10px;
        padding: 16px;
    }

    .mobile-form-text strong {
        font-size: 18px;
    }

    .mobile-form-text small {
        font-size: 11px;
    }

    .mobile-form-content {
        padding: 17px;
    }

    .quantity-options {
        gap: 6px;
    }

    .quantity-option span {
        min-height: 46px;
        font-size: 18px;
    }

    .events-grid {
        gap: 9px;
    }

    .event-content {
        padding: 9px;
    }

    .event-content h3 {
        font-size: 15px;
    }

    .event-buy {
        padding-inline: 6px;
        font-size: 10px;
    }

    .ticket-item {
        flex-wrap: wrap;
    }

    .ticket-item button {
        width: 100%;
    }

    .ticket-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .ticket-heading {
        gap: 10px;
        padding: 16px;
    }

    .ticket-heading p {
        font-size: 8px;
    }

    .ticket-heading strong {
        font-size: 11px;
    }
}

/* Impresión */

@media print {
    @page {
        margin: 12mm;
    }

    html,
    body,
    body.dialog-open {
        height: auto;
        overflow: visible;
        background: white;
    }

    body > header,
    body > main,
    body > footer,
    .skip-link,
    .dialog-toolbar,
    .ticket-actions,
    .dialog-note {
        display: none !important;
    }

    .ticket-dialog[open] {
        position: static;
        display: block;
        width: 105mm;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin: 0 auto;
        padding: 0;
        overflow: visible;
        border: 0;
        background: white;
    }

    .ticket-dialog::backdrop {
        display: none;
    }

    .digital-ticket {
        break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}