:root {
  --bg: #000;
  --bg-2: #0d0d0d;
  --bg-3: #161616;
  --line: #262626;
  --text: #fff;
  --muted: #9b9b9b;
  --dim: #5f5f5f;
  --ok: #19d36b;
  --warn: #ffb020;
  --bad: #ff3b3b;
  --radius: 14px;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
h1, h2, h3, .display { font-family: var(--display); text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.95; margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-header .logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 16px; width: 100%; text-align: center; border-top: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 700 14px var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid #fff; background: #fff; color: #000; transition: transform .12s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: #fff; color: #000; }
.btn.small { padding: 9px 16px; font-size: 12px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px); mask: linear-gradient(180deg, #000 40%, transparent); }
.hero .wrap { position: relative; padding: clamp(70px, 12vw, 150px) 0 clamp(60px, 9vw, 110px); display: grid; gap: 34px; }
.hero-logo { width: min(620px, 100%); filter: drop-shadow(0 30px 60px rgba(255,255,255,.08)); }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); max-width: 560px; color: #cfcfcf; line-height: 1.5; margin: 0; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
section.block { padding: clamp(60px, 9vw, 110px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 6vw, 72px); }

/* Event cards */
.grid-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ecard { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s; }
.ecard:hover { border-color: #fff; transform: translateY(-3px); }
.ecard .poster { aspect-ratio: 4/5; background: var(--bg-3) center/cover no-repeat; position: relative; }
.ecard .poster.placeholder { display: grid; place-items: center; background-image: repeating-linear-gradient(-55deg, #0d0d0d 0 18px, #141414 18px 19px); }
.ecard .poster.placeholder img { width: 55%; opacity: .9; }
.ecard .date-badge { position: absolute; top: 14px; left: 14px; background: #fff; color: #000; border-radius: 10px; padding: 8px 10px; text-align: center; line-height: 1; }
.ecard .date-badge b { display: block; font-family: var(--display); font-size: 24px; }
.ecard .date-badge span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.ecard .body { padding: 18px 18px 20px; display: grid; gap: 6px; }
.ecard h3 { font-size: 22px; }
.ecard .meta { font-size: 13px; color: var(--muted); }
.ecard .price { margin-top: 6px; font-weight: 700; font-size: 14px; }
/* Próximamente */
.ecard.soon .poster { filter: grayscale(.35); }
.soon-ribbon { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; text-align: center; font: 800 12px var(--body); letter-spacing: .25em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #d7192a, #ff3b3b); }
.ecard.soon:hover { border-color: #ff3b3b; }
.ecard.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97); border-color: #ff3b3b; }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.toast-soon { position: fixed; z-index: 100; top: 16px; left: 50%; width: min(440px, calc(100% - 32px)); transform: translateX(-50%); display: flex; gap: 14px; align-items: center; padding: 16px 18px 20px; border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #e0182b, #a50d1b); box-shadow: 0 18px 50px rgba(255,40,60,.45), 0 0 0 1px rgba(255,255,255,.12) inset; cursor: pointer;
  animation: toastIn .6s cubic-bezier(.18,1.4,.4,1) both, toastShake .45s .55s ease-in-out; }
.toast-soon.out { animation: toastOut .35s cubic-bezier(.6,-.3,.7,.4) both; }
.toast-soon .ts-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 900 22px var(--display); color: #e0182b; background: #fff; animation: pulse 1.2s .6s ease-in-out infinite; }
.toast-soon .ts-text { display: grid; gap: 3px; font-size: 14px; line-height: 1.45; }
.toast-soon .ts-text b { font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.toast-soon .ts-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255,255,255,.7); transform-origin: left; animation: bar 3.8s linear both; }
@keyframes toastIn { 0% { opacity: 0; transform: translate(-50%, -140%) scale(.9); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -140%) scale(.92); } }
@keyframes toastShake { 0%, 100% { margin-left: 0; } 20% { margin-left: -10px; } 40% { margin-left: 9px; } 60% { margin-left: -6px; } 80% { margin-left: 4px; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
@keyframes bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.soon-box { display: flex; gap: 16px; align-items: center; margin-top: 30px; padding: 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #e0182b, #a50d1b); box-shadow: 0 18px 50px rgba(255,40,60,.25); animation: toastShake .5s .2s ease-in-out; }
.soon-box .soon-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 900 24px var(--display); color: #e0182b; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.soon-box b { display: block; font-family: var(--display); font-size: 20px; text-transform: uppercase; margin-bottom: 4px; }
.soon-box span { font-size: 15px; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .toast-soon, .toast-soon .ts-icon, .soon-box, .soon-box .soon-icon, .ecard.shake { animation: none; } .toast-soon .ts-bar { animation: bar 3.8s linear both; } }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px 20px; text-align: center; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--bg); padding: 34px 28px; display: grid; gap: 12px; align-content: start; transition: background .2s; }
.service:hover { background: var(--bg-2); }
.service .num { font-family: var(--display); font-size: 14px; color: var(--dim); }
.service h3 { font-size: 24px; }
.service p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }

/* Stats strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.strip div b { display: block; font-family: var(--display); font-size: clamp(40px, 6vw, 64px); }
.strip div span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .14em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-links { display: grid; gap: 12px; margin-top: 26px; }
.contact-links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.contact-links a:hover { color: var(--muted); }

/* Forms */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
input, select, textarea { width: 100%; background: var(--bg-2); color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font: 15px var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: #fff; }
/* Safari iOS: los campos de fecha/hora tienen ancho mínimo propio y texto centrado; se desbordan en rejillas */
input[type=datetime-local], input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 48px; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; margin: 0; }
input::-webkit-datetime-edit { padding: 0; }
.row > *, .grid-form > *, .field { min-width: 0; }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #fff; flex: none; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.alert.error { border-color: var(--bad); color: #ffb3b3; background: rgba(255,59,59,.08); }
.alert.ok { border-color: var(--ok); color: #b5ffd4; background: rgba(25,211,107,.08); }

/* Event page */
.event-hero { display: grid; grid-template-columns: 420px 1fr; gap: 50px; padding: 50px 0 80px; align-items: start; }
@media (max-width: 900px) { .event-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; } }
.event-side { position: sticky; top: 90px; display: grid; gap: 14px; }
@media (max-width: 900px) { .event-side { position: static; } }
.event-poster { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; background: var(--bg-3) center/cover; }
.poster-ph { height: 100%; display: grid; place-items: center; background-image: repeating-linear-gradient(-55deg, #0d0d0d 0 18px, #141414 18px 19px); }
.poster-ph img { width: 60%; }
.event-side .event-facts { grid-template-columns: 1fr 1fr; margin: 0; }
.event-facts small { display: block; margin-top: 3px; font-size: 12px; }
.event-title { font-size: clamp(40px, 6vw, 76px); margin: 10px 0 12px; }
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.event-facts div { background: var(--bg); padding: 16px 18px; }
.ttype-buy { display: flex; align-items: center; gap: 16px; }
@media (max-width: 480px) { .ttype { flex-wrap: wrap; } .ttype-buy { width: 100%; justify-content: space-between; } }
.att-title { font-size: 20px; margin: 10px 0 14px; }
.attendee { border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 4px; margin: 0 0 14px; }
.attendee legend { padding: 0 8px; font-weight: 800; font-size: 14px; }
.attendee legend span { color: var(--muted); font-weight: 600; }
.attendee legend em { font-style: normal; margin-left: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: #000; padding: 3px 8px; border-radius: 99px; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 14px; line-height: 1.5; }
.desc-block { margin-top: 40px; }
.minors-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; margin: 0 0 16px; border: 1px solid var(--warn); border-radius: 12px; background: rgba(255,176,32,.07); }
.minors-box b { display: block; margin-bottom: 4px; }
.minors-box span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.minors-box .btn { flex: none; }
@media (max-width: 600px) { .minors-box { flex-direction: column; align-items: stretch; } }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-links a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14px; color: var(--muted); }
.legal-links a:hover { color: #fff; border-color: #fff; }
.desc-block h2 { font-size: 24px; margin-bottom: 14px; }

/* Resumen / complementos */
.sum-ticket { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.sum-ticket header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.sum-ticket header b { font-size: 17px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.addon:first-of-type { margin-top: 12px; }
.addon .info small { display: block; color: var(--muted); font-size: 13px; }
.addon .right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: 99px; transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; background: var(--muted); border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: #fff; }
.switch input:checked + span::after { transform: translateX(20px); background: #000; }
.sum-lines { display: grid; gap: 8px; margin: 18px 0; font-size: 15px; }
.sum-lines div { display: flex; justify-content: space-between; color: var(--muted); }
.wallet-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wallet-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid #fff; }
.wallet-btn svg { width: 18px; height: 18px; }
.wallet-btn.dark { background: #000; color: #fff; border-color: #444; }
.tkt-addons { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chip { font-size: 12px; font-weight: 700; background: #fff; color: #000; padding: 3px 9px; border-radius: 99px; }
.event-facts span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 6px; }
.event-facts b { display: block; font-size: 15px; }
.event-facts b::first-letter { text-transform: uppercase; }
.desc { color: #cfcfcf; line-height: 1.7; white-space: pre-line; }
.buy-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 30px; }
.buy-box h2 { font-size: 28px; margin-bottom: 18px; }
.ttype { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ttype:first-of-type { border-top: 1px solid var(--line); }
.ttype .info b { display: block; font-size: 16px; }
.ttype .info small { color: var(--muted); }
.ttype .price { font-weight: 800; font-size: 18px; white-space: nowrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; color: #fff; font-size: 20px; cursor: pointer; }
.qty input { width: 38px; padding: 0; text-align: center; border: 0; background: none; font-weight: 700; }
.soldout { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--dim); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 18px; }
.total-bar b { font-family: var(--display); font-size: 30px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--dim); font-size: 12px; margin-top: 12px; }

/* Order page */
.ticket-list { display: grid; gap: 14px; margin: 26px 0; }
.tkt { display: flex; align-items: center; gap: 18px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.tkt .qr { width: 86px; height: 86px; background: #fff; border-radius: 8px; padding: 6px; flex: none; }
.tkt code { font-size: 15px; letter-spacing: .2em; font-weight: 700; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; }
.badge.paid, .badge.valid, .badge.published { color: var(--ok); }
.badge.pending, .badge.draft { color: var(--warn); }
.badge.soon { color: #6ab7ff; }
.badge.failed, .badge.cancelled, .badge.archived { color: var(--bad); }
.badge.used { color: var(--muted); }

/* Footer */
.site-footer { padding: 50px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer img { height: 32px; width: auto; opacity: .8; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.center-page h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 16px; }
.center-page p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; line-height: 1.6; }
.prose { max-width: 760px; color: #cfcfcf; line-height: 1.7; padding: 50px 0 80px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 30px; color: #fff; }
.prose h2 { font-size: 20px; color: #fff; margin: 32px 0 10px; }
