/* Módulos de venta (evento, compra, Mis tickets). Hereda el diseño del sitio Reino Chile:
   fondo obsidiana, dorado, Bodoni Moda para títulos e Inter para texto. Todo va bajo .tk para
   no chocar con Tailwind ni con el resto del sitio. */
.tk {
  --card: #12141a; --card-2: #161820; --bg: #0d0e11; --ink: #f7f8f9; --muted: #9da3ae; --faint: #686e7d;
  --line: rgba(255, 255, 255, .1); --accent: #f2ca50; --gold: #d4af37; --gold-light: #ffe088; --ink-on-gold: #060709;
  --ok: #5ccf94; --err: #ff8a80; --warn: #f0c36a;
  color: var(--ink);
}
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }
.tk-wrap { max-width: 56rem; margin: 0 auto; padding: 2.5rem 1rem 5rem; }
@media (min-width: 768px) { .tk-wrap { padding-left: 2rem; padding-right: 2rem; } }
.tk a { color: inherit; }
.tk .muted { color: var(--muted); }
.tk .tk-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* Tarjetas */
.tk .card { background: var(--card); border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; margin-bottom: 1.25rem; }
.tk .card h2 { font-family: 'Bodoni Moda', serif; font-size: 1.6rem; line-height: 1.15; margin: 0 0 .75rem; font-weight: 600; color: var(--ink); }
.tk .card h2.sm { font-size: 1.15rem; }
.tk .card.destacada { border-color: rgba(242, 202, 80, .35); box-shadow: 0 0 30px rgba(212, 175, 55, .08); }
.tk .grid.two { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tk .grid.two { grid-template-columns: 1fr 1fr; } }

/* Datos del evento */
.tk .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .95rem; }
.tk .meta .material-symbols-outlined { font-size: 1.1rem; color: var(--accent); vertical-align: -3px; margin-right: 4px; }

/* Selección de entradas */
.tk .tipo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 1rem 0; border-top: 1px solid var(--line); }
.tk .tipo:first-of-type { border-top: 0; }
.tk .tipo .nombre { font-weight: 600; letter-spacing: .01em; }
.tk .precio { font-variant-numeric: tabular-nums; font-family: 'Bodoni Moda', serif; font-size: 1.25rem; color: var(--accent); }
.tk .stepper { display: flex; align-items: center; gap: 6px; }
.tk .stepper button { width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(242, 202, 80, .4); background: transparent; color: var(--accent); font-size: 20px; cursor: pointer; transition: background .2s, color .2s; }
.tk .stepper button:hover:not(:disabled) { background: var(--accent); color: var(--ink-on-gold); }
.tk .stepper button:disabled { opacity: .3; cursor: not-allowed; }
.tk .stepper span { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.tk .total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; font-weight: 600; padding-top: 1rem; border-top: 1px solid rgba(242, 202, 80, .35); margin-top: .5rem; }
.tk .total span:last-child { font-family: 'Bodoni Moda', serif; font-size: 1.6rem; color: var(--accent); }

/* Formularios */
.tk label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin: 0 0 .45rem; }
.tk input[type=text], .tk input[type=email], .tk input[type=number] { width: 100%; padding: .8rem .95rem; font-size: 16px; border: 1px solid var(--line); border-radius: .375rem; background: var(--bg); color: var(--ink); }
.tk select { width: 100%; padding: .8rem .95rem; font-size: 16px; border: 1px solid var(--line); border-radius: .375rem; background: var(--bg); color: var(--ink); color-scheme: dark; }
.tk select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 202, 80, .15); }
.tk input::placeholder { color: var(--faint); }
.tk input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 202, 80, .15); }
.tk .codigo { letter-spacing: 10px; font-size: 26px !important; text-align: center; font-variant-numeric: tabular-nums; font-family: 'Bodoni Moda', serif; }
/* sitio.css define .field como un campo de formulario; aquí es solo el contenedor de etiqueta + campo */
.tk .field { margin-bottom: 1rem; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; color: inherit; font-size: inherit; }

/* Botones */
.tk .btn { position: relative; overflow: hidden; display: inline-block; width: 100%; padding: .95rem 1.2rem; border: 0; border-radius: .25rem; background: linear-gradient(90deg, var(--gold-light), var(--accent), var(--gold)); color: var(--ink-on-gold); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; box-shadow: 0 8px 24px -8px rgba(212, 175, 55, .5); transition: filter .2s, transform .2s; }
.tk .btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.tk .btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.tk .btn.sec { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .18); box-shadow: none; font-weight: 600; }
.tk .btn.sec:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); filter: none; }
.tk .btn + .btn { margin-top: .6rem; }
.tk .link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px 0; }
.tk .link:hover { color: var(--accent); }

/* Avisos */
.tk .alert { padding: .8rem 1rem; border-radius: .5rem; margin-bottom: 1rem; font-size: .95rem; border: 1px solid; background: rgba(255, 255, 255, .03); }
.tk .alert.err { color: var(--err); border-color: rgba(255, 138, 128, .5); background: rgba(255, 138, 128, .07); }
.tk .alert.ok { color: var(--ok); border-color: rgba(92, 207, 148, .5); background: rgba(92, 207, 148, .07); }
.tk .alert.warn { color: var(--warn); border-color: rgba(240, 195, 106, .5); background: rgba(240, 195, 106, .07); }
.tk .alert a { text-decoration: underline; }
.tk .badge { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tk .badge.agotado { color: var(--err); border-color: rgba(255, 138, 128, .5); }

/* Avance de pasos */
.tk .pasos { display: flex; gap: 6px; margin-bottom: 1.25rem; }
.tk .pasos i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.tk .pasos i.on { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }

/* Resumen y Mis tickets */
.tk .resumen td { padding: .4rem 0; }
.tk .resumen td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tk .ticket { text-align: center; background: var(--card-2); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.tk .ticket .nombre { font-weight: 600; }
.tk .ticket .asiento { font-family: 'Bodoni Moda', serif; font-size: 1.35rem; color: var(--accent); margin-top: .25rem; }
.tk .ticket img { margin: .6rem auto; background: #fff; border-radius: .5rem; padding: 6px; }

/* Aviso grande de campo con error (reemplaza el globo pequeño del navegador) */
.tk .aviso-campo { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; padding: .9rem 1rem; border-radius: .6rem; border: 1px solid rgba(255, 138, 128, .7); background: rgba(255, 138, 128, .12); color: #ffd0cb; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.tk .aviso-campo-icono { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--err); color: #060709; font-weight: 800; font-size: 1.1rem; }
.tk input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 138, 128, .25); }

/* Votación del público en el celular */
.tk .vp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 88px; }
@media (min-width: 640px) { .tk .vp-grid { grid-template-columns: repeat(3, 1fr); } }
.tk .vp-card { position: relative; display: block; border: 2px solid var(--line); border-radius: .75rem; overflow: hidden; background: rgba(255, 255, 255, .03); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tk .vp-card input { position: absolute; opacity: 0; pointer-events: none; }
.tk .vp-card img, .tk .vp-sinfoto { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tk .vp-sinfoto { display: grid; place-items: center; font-size: 3rem; background: #161820; color: var(--accent); }
.tk .vp-datos { display: block; padding: 8px 10px 10px; }
.tk .vp-nombre { display: block; font-family: Georgia, serif; font-size: .95rem; line-height: 1.2; }
.tk .vp-comuna { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.tk .vp-marca { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; display: none; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink-on-gold); font-weight: 800; }
.tk .vp-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 202, 80, .3); }
.tk .vp-card:has(input:checked) .vp-marca { display: grid; }
.tk .vp-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(6, 7, 9, .94); border-top: 1px solid var(--line); }
.tk .vp-barra .btn { max-width: 36rem; margin: 0 auto; display: block; width: 100%; }
.tk .vp-fondo { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .75); }
.tk .vp-fondo[hidden], .tk .vp-barra[hidden] { display: none; }
.tk .vp-caja { width: 100%; max-width: 24rem; padding: 20px; border-radius: .9rem; background: #12141A; border: 1px solid var(--line); text-align: center; }
.tk .vp-gracias { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #060709; font-size: 2rem; font-weight: 800; }
