:root {
  --ink: #071018;
  --wood: #14263a;
  --navy: #0e1a38;
  --gold: #f5b800;
  --red: #c81016;
  --paper: #f4efe6;
  --cream: #f7f3ea;
  --muted: #c9d3de;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(14, 26, 56, .25) 0%, rgba(14, 26, 56, .45) 70%, var(--navy) 100%) center top / 100% 56.25vw no-repeat,
    url("fondo-madera-ancho.jpg") center top / 100% auto no-repeat,
    var(--navy);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}
@media (max-width: 860px) {
  body {
    background:
      linear-gradient(180deg, rgba(14, 26, 56, .35) 0%, rgba(14, 26, 56, .55) 70%, var(--navy) 100%) center top / 100% 177.8vw no-repeat,
      url("fondo-madera-alto.jpg") center top / 100% auto no-repeat,
      var(--navy);
  }
}
.logo-evento {
  display: block; width: min(100%, 520px); height: auto; margin: 0 0 18px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}
a { color: var(--gold); }
h1, h2, .precio strong, .btn, .brand {
  font-family: Oswald, Impact, sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
}
.top, .hero, .bloque, footer, .franja { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.brand { margin: 0; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--gold); }
.top-cta { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--gold); }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 12px 0 36px; }
.kicker { letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-size: .78rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .95; margin: 0 0 12px; text-transform: uppercase; text-shadow: 0 4px 14px rgba(0,0,0,.6); }
.hero h1 { color: #fff; }
.lede { color: var(--muted); max-width: 38rem; }
.precio { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 18px 0; }
.hero-copy, .poster { min-width: 0; }
.precio span, .precio em { color: var(--muted); font-style: normal; }
.precio strong { font-size: 3.4rem; color: var(--gold); line-height: 1; text-shadow: 0 4px 12px rgba(0,0,0,.55); }
.hechos { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.hechos li { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; font-size: .92rem; }
.btn {
  display: inline-block; color: white; text-decoration: none;
  background: linear-gradient(180deg, #de282c 0%, var(--red) 45%, #a90c12 100%);
  border: 0; border-radius: 999px; padding: 14px 34px; font-size: 1.25rem; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.45); text-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.poster img { width: 100%; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.poster img.vertical { display: block; width: auto; max-width: 100%; max-height: 82vh; margin: 0 auto; }
.franja { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 8px 0 28px; }
.franja p { margin: 0; background: rgba(10, 18, 40, .72); border-top: 3px solid var(--gold); padding: 12px; box-shadow: 0 8px 18px rgba(0,0,0,.3); }
.franja strong { color: var(--gold); font-family: Oswald, Impact, sans-serif; font-size: 1.3rem; letter-spacing: .02em; }
.bloque { padding: 10px 0 36px; }
.bloque h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); text-transform: uppercase; margin-bottom: 6px; }
.sub { color: var(--muted); margin-top: 0; }
.cats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cats li { background: rgba(10, 18, 40, .72); padding: 14px; border-bottom: 3px solid var(--ember, #ff6a1a); }
.bloque h2 { color: #fff; text-shadow: 0 3px 10px rgba(0,0,0,.5); }
.cats strong { display: block; font-size: 1.05rem; }
.cats span, .nota, .fine { color: var(--muted); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pasos { padding-left: 1.1rem; }
.ficha {
  background: var(--paper); color: #1b1a17; padding: 22px; border-radius: 10px;
  display: grid; gap: 12px; max-width: 720px;
}
.ficha label { display: grid; gap: 4px; font-weight: 600; }
.ficha input[type="text"], .ficha input[type="email"], .ficha input[type="number"], .ficha input:not([type="checkbox"]) {
  font: inherit; padding: 10px 12px; border: 1px solid #cfc6b6; border-radius: 6px; background: white;
}
.par { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Sin esto el input conserva su ancho natural (~330px) y se sale de la tarjeta en celulares de 360-390px. */
.ficha label, .par > * { min-width: 0; }
.ficha input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.check { font-weight: 400; grid-template-columns: auto 1fr; align-items: start; }
.check small { display: block; color: #5a5448; font-size: .88rem; }
.ficha .error { color: #b00d12; font-weight: 600; font-size: .92rem; }
.ficha input[aria-invalid="true"] { border-color: #b00d12; box-shadow: 0 0 0 2px rgba(176, 13, 18, .18); }
.aviso-error { margin: 0; padding: 10px 12px; border-left: 4px solid #b00d12; background: #fbe9e7; color: #5c0a0d; font-weight: 600; }
.trampa, .trampa[hidden] { display: none !important; }
.hero { align-items: start; }
.hero-ficha { min-width: 0; }
.hero-ficha .ficha { max-width: none; box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.ficha-titulo { margin: 0; font-family: Oswald, Impact, sans-serif; font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; color: #1b1a17; }
.ficha label small { font-weight: 400; color: #6b6458; }
.ficha .btn { width: 100%; }
.prueba-social { margin: 0 0 12px; display: inline-block; background: rgba(245, 184, 0, .14); border: 1px solid rgba(245, 184, 0, .5); border-radius: 999px; padding: 4px 12px; }
.prueba-social strong { color: var(--gold); }
.alterno { margin: 12px 4px 0; color: var(--muted); font-size: .98rem; }
.poster { margin-top: 0; }
.poster img { display: block; max-width: 520px; margin: 0 auto; }
.fine { font-size: .9rem; }
footer { padding: 28px 0 80px; color: var(--muted); }
.gracias { min-height: 70vh; display: grid; align-content: center; width: min(680px, calc(100% - 32px)); margin: 0 auto; }
.burbuja { position: fixed; right: 16px; bottom: 16px; z-index: 20; }
.burbuja-btn, .chips button, .cerrar {
  font: inherit; cursor: pointer;
}
.burbuja-btn { background: var(--gold); color: #1b1a17; border: 0; border-radius: 999px; padding: 12px 16px; font-weight: 700; }
.panel { width: min(360px, calc(100vw - 24px)); background: white; color: #1b1a17; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.35); margin-bottom: 8px; }
.panel header { display: flex; justify-content: space-between; align-items: center; background: #122033; color: white; padding: 10px 12px; }
.cerrar { background: transparent; color: white; border: 0; font-size: 1.4rem; }
.hilo { max-height: 240px; overflow: auto; padding: 10px; display: grid; gap: 8px; }
.hilo .bot, .hilo .yo { margin: 0; padding: 8px 10px; border-radius: 10px; }
.hilo .bot { background: #f3f0e8; }
.hilo .yo { background: #122033; color: white; justify-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 12px; }
.chips button { border: 1px solid #d9d1c3; background: #fff; border-radius: 999px; padding: 6px 10px; }
.nydia { width: min(980px, calc(100% - 32px)); margin: 24px auto 60px; }
.nydia table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.04); }
.nydia th, .nydia td { text-align: left; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.nydia form.estado { display: flex; flex-wrap: wrap; gap: 6px; }
.nydia button { font: inherit; }
.login { max-width: 420px; }
@media (max-width: 860px) {
  .hero, .dos, .cats, .franja, .par { grid-template-columns: 1fr; }
  .par.corto { grid-template-columns: 1fr 7.5rem; }
  .top { padding: 10px 0; }
  .hero { gap: 14px; padding: 0 0 28px; }
  .logo-evento { width: 190px; margin: 0 auto 8px; }
  .kicker { text-align: center; margin-bottom: 4px; }
  .hero h1 { font-size: 2.15rem; text-align: center; margin-bottom: 6px; }
  .precio { justify-content: center; margin: 6px 0 8px; }
  .precio strong { font-size: 2.3rem; }
  .precio em { width: 100%; text-align: center; font-size: .95rem; }
  .hero-copy { text-align: center; }
  .lede, .hechos { display: none; }
  .ficha { padding: 16px; gap: 10px; }
  .ficha .btn { padding: 14px 12px; font-size: 1.1rem; }
  body.ficha-a-la-vista #fc_frame:not(.fc-open) { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
