/* =====================================================================
   Inscripción del torneo con «pase de pareja» (21-oct-2026)
   Formulario propio por pasos; envía al Google Form (misma hoja de respuestas).
   ===================================================================== */
.ins2 {
  --i-bg: #0b1120;
  --i-line: rgba(255, 255, 255, 0.10);
  --i-line-2: rgba(255, 255, 255, 0.18);
  --i-txt: #e9eef8;
  --i-mute: #9fb0cc;
  --i-blue: #2b86ff;
  --i-blue-2: #0057ff;
  --i-fire: #ff8c38;
  --i-ball: #d9e021;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  max-width: 1060px;
  margin: 2.4rem auto 0;
  color: var(--i-txt);
  font-family: 'Barlow', system-ui, sans-serif;
}

/* ---------- pasos ---------- */
.ins2-steps { display: flex; gap: 6px; margin: 0 0 1.4rem; padding: 0; list-style: none; counter-reset: paso; }
.ins2-steps li {
  flex: 1 1 0; min-width: 0;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--i-mute);
  padding-top: 10px; border-top: 3px solid var(--i-line);
  transition: color .3s, border-color .3s;
}
.ins2-steps li::before { counter-increment: paso; content: counter(paso) ' '; color: inherit; opacity: .7; }
.ins2-steps li.is-done { border-color: rgba(43, 134, 255, 0.55); color: #c9dcff; }
.ins2-steps li.is-on { border-color: var(--i-blue); color: #fff; }

.ins2-form { position: relative; background: var(--i-bg); border: 1px solid var(--i-line); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2.2rem); }
.ins2-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ins2-step[hidden] { display: none; }
.ins2-step legend {
  display: block; padding: 0; margin: 0 0 0.35rem;
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2rem, 4.4vw, 2.7rem); line-height: 0.95; letter-spacing: 0.01em; color: #fff;
}
.ins2-help { margin: 0 0 1.4rem; color: var(--i-mute); font-size: 0.98rem; line-height: 1.5; max-width: 52ch; }
.js-ins2 .ins2-step:not([hidden]) { animation: ins2In .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes ins2In { from { opacity: 0; transform: translateX(14px); } }

/* ---------- categoría: modalidad + nivel ---------- */
.ins2-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ins2-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ins2-opt { position: relative; display: block; cursor: pointer; }
.ins2-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ins2-opt > span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--i-line-2);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s, background .2s, transform .15s;
}
.ins2-opt b { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: #fff; }
.ins2-opt small { color: var(--i-mute); font-size: 0.82rem; }
.ins2-opt:hover > span { border-color: rgba(43, 134, 255, 0.6); }
.ins2-opt input:focus-visible + span { outline: 3px solid var(--i-blue); outline-offset: 2px; }
.ins2-opt input:checked + span { border-color: var(--i-blue); background: linear-gradient(160deg, rgba(43, 134, 255, 0.22), rgba(0, 87, 255, 0.08)); }
.ins2-opt input:checked + span b { color: #fff; }
/* 5-nov · franja llena: se puede elegir, como reserva */
.ins2-opt.is-reserva small { color: #ffb15c; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* opción que no se puede elegir */
.ins2-opt.is-full { cursor: not-allowed; }
.ins2-opt.is-full input { cursor: not-allowed; }
.ins2-opt.is-full > span { opacity: .45; filter: grayscale(.6); }
.ins2-opt.is-full:hover > span { border-color: rgba(255, 255, 255, 0.12); }
.ins2-opt.is-full small { color: #ffb15c; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ins2-levels .ins2-opt b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.1rem; line-height: 0.9; }
.ins2-levels .ins2-opt > span { align-items: center; text-align: center; min-height: 86px; }

/* ---------- campos ---------- */
.ins2-player { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--i-line); }
.ins2-player:first-of-type { border-top: 0; padding-top: 0; }
/* 4-nov · «Tengo pareja / Voy solo/a» */
.ins2-modo { grid-template-columns: repeat(2, 1fr); margin-bottom: 1.3rem; }
.ins2-modo + .ins2-player { border-top: 0; padding-top: 0; }
.ins2-solo #ins2-p2 { display: none; }
.ins2-player h3 { margin: 0 0 0.7rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em; color: #c9dcff; }
.ins2-field { display: block; margin-bottom: 0.9rem; }
.ins2-field > span { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--i-mute); }
.ins2-field input {
  width: 100%; box-sizing: border-box; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--i-line-2); background: #070c18; color: #fff;
  font: 500 1.05rem 'Barlow', system-ui, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.ins2-field input::placeholder { color: #5f6f8c; }
.ins2-field input:focus { outline: none; border-color: var(--i-blue); box-shadow: 0 0 0 3px rgba(43, 134, 255, 0.28); }
.ins2-field input[aria-invalid="true"] { border-color: #ff6b6b; }
.ins2-sizes { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.ins2-sizes legend { margin-bottom: 6px; font-size: 0.9rem; color: var(--i-mute); }
.ins2-sizes .ins2-opt > span { min-height: 46px; min-width: 56px; padding: 8px 12px; align-items: center; }
.ins2-sizes .ins2-opt b { font-size: 1.05rem; }

/* ---------- horario ---------- */
.ins2-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ins2-slots .ins2-opt > span { min-height: 130px; justify-content: flex-start; padding: 16px; gap: 6px; }
.ins2-slots .ins2-ico { width: 30px; height: 30px; color: var(--i-fire); }
.ins2-slots .ins2-opt:nth-child(1) .ins2-ico { color: #8fb8ff; }
.ins2-slots .ins2-opt:nth-child(2) .ins2-ico { color: var(--i-fire); }
.ins2-slots .ins2-opt:nth-child(3) .ins2-ico { color: var(--i-mute); }
.ins2-note { margin: 1rem 0 0; color: var(--i-mute); font-size: 0.9rem; line-height: 1.5; }

/* ---------- revisar ---------- */
.ins2-review { margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 0; border-top: 1px solid var(--i-line); }
.ins2-review dt, .ins2-review dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--i-line); }
.ins2-review dt { color: var(--i-mute); font-size: 0.9rem; padding-right: 18px; }
.ins2-review dd { color: #fff; font-weight: 600; }
.ins2-review button { margin-left: 12px; padding: 0 2px; border: 0; background: none; color: var(--i-blue); font: 600 0.88rem 'Barlow', sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.ins2-total { display: flex; align-items: baseline; justify-content: space-between; margin: 1.3rem 0 0.4rem; }
.ins2-total span { color: var(--i-mute); }
.ins2-total b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.6rem; line-height: 1; color: #fff; }
.ins2-legal { margin: 0.8rem 0 0; color: #7d8ba6; font-size: 0.82rem; line-height: 1.5; }
.ins2-legal a { color: #8fb8ff; }

/* ---------- navegación ---------- */
.ins2-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 1.6rem; }
.ins2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer;
  font: 700 1.05rem 'Barlow Condensed', sans-serif; letter-spacing: 0.06em;
  transition: transform .15s, background .2s, border-color .2s;
}
.ins2-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ins2-btn--go { margin-left: auto; color: #fff; background: linear-gradient(120deg, var(--i-blue-2), var(--i-blue)); box-shadow: 0 14px 30px -14px rgba(0, 87, 255, 0.8); }
.ins2-btn--go:hover { transform: translateY(-1px); }
.ins2-btn--back { color: var(--i-mute); background: transparent; border-color: var(--i-line-2); }
.ins2-btn--send { background: linear-gradient(120deg, #ff6a00, var(--i-fire)); box-shadow: 0 14px 30px -14px rgba(255, 106, 0, 0.8); }
.ins2-btn[disabled] { opacity: .6; cursor: wait; }
.ins2-err { min-height: 1.4em; margin: 0.8rem 0 0; color: #ff8f8f; font-size: 0.92rem; }

/* ---------- el pase ---------- */
.ins2-pass-wrap { position: sticky; top: 92px; }
.ins2-pass {
  position: relative; overflow: hidden; border-radius: 22px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(217, 224, 33, 0.16), transparent 55%),
    linear-gradient(165deg, #10204a 0%, #0a1430 48%, #070c18 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.ins2-pass-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 0; }
.ins2-pass-top img { height: 20px; width: auto; }
.ins2-pass-top img + img { height: 26px; }
.ins2-pass-body { padding: 18px 20px 20px; }
.ins2-pass-ev { margin: 0; font-family: 'Bebas Neue', sans-serif; font-size: 2.3rem; line-height: 0.9; color: #fff; }
.ins2-pass-date { margin: 6px 0 18px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; color: var(--i-ball); }
.ins2-pass dl { margin: 0; display: grid; gap: 12px; }
.ins2-pass dt { font-size: 0.78rem; color: #8b9dbf; }
.ins2-pass dd { margin: 2px 0 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.15; color: #fff; min-height: 1.15em; overflow-wrap: anywhere; }
.ins2-pass dd.is-empty { color: rgba(255, 255, 255, 0.28); font-weight: 600; }
.ins2-pass dd.is-new { animation: ins2Fill .5s ease-out; }
@keyframes ins2Fill { from { color: var(--i-ball); } }
.ins2-pass-pair { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.ins2-pass-pair em { font-style: normal; font-size: 0.85rem; color: #8b9dbf; }
/* troquel del ticket */
.ins2-pass-cut { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, 0.18); margin: 0 18px; }
.ins2-pass-cut::before, .ins2-pass-cut::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: #050810; }
.ins2-pass-cut::before { left: -30px; } .ins2-pass-cut::after { right: -30px; }
.ins2-pass-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 18px; }
.ins2-pass-price { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; line-height: 1; color: #fff; }
.ins2-pass-price small { font-family: 'Barlow', sans-serif; font-size: 0.8rem; color: #8b9dbf; margin-left: 6px; }
.ins2-pass-stamp {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.55);
  transform: rotate(-4deg);
}
.ins2-pass.is-issued .ins2-pass-stamp { border-color: var(--i-ball); color: var(--i-ball); animation: ins2Stamp .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ins2Stamp { from { transform: rotate(-4deg) scale(2.2); opacity: 0; } }

/* ---------- enviado ---------- */
.ins2-done[hidden] { display: none; }
.ins2-done h3 { margin: 0 0 0.4rem; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 0.95; color: #fff; }
.ins2-done p { color: var(--i-mute); line-height: 1.55; }
.ins2-pay { margin: 1.2rem 0; padding: 1.1rem 1.2rem; border-radius: 16px; border: 1px solid rgba(255, 140, 56, 0.45); background: rgba(255, 140, 56, 0.08); }
.ins2-pay dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.ins2-pay dt { color: var(--i-mute); }
.ins2-pay dd { margin: 0; color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.ins2-copy { margin-left: 8px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--i-line-2); background: none; color: #c9dcff; font: 600 0.8rem 'Barlow', sans-serif; cursor: pointer; min-height: 30px; }

.ins2-fallback { margin: 1.4rem 0 0; text-align: center; color: #7d8ba6; font-size: 0.88rem; }
.ins2-fallback a { color: #8fb8ff; }

/* ---------- móvil ---------- */
@media (max-width: 860px) {
  .ins2 { grid-template-columns: 1fr; }
  .ins2-pass-wrap { position: static; order: -1; }
  /* el pase en móvil: una tira compacta arriba; se despliega entero al final */
  .ins2:not(.is-review) .ins2-pass dl, .ins2:not(.is-review) .ins2-pass-cut, .ins2:not(.is-review) .ins2-pass-foot { display: none; }
  .ins2:not(.is-review) .ins2-pass-body { padding: 10px 18px 14px; }
  .ins2:not(.is-review) .ins2-pass-ev { font-size: 1.6rem; }
  .ins2:not(.is-review) .ins2-pass-date { margin-bottom: 0; }
  .ins2-pass-mini { display: block; margin-top: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1rem; color: #fff; }
  .ins2.is-review .ins2-pass-mini { display: none; }
}
@media (min-width: 861px) { .ins2-pass-mini { display: none; } }
@media (max-width: 520px) {
  .ins2-levels { grid-template-columns: repeat(2, 1fr); }
  .ins2-slots { grid-template-columns: 1fr; }
  .ins2-slots .ins2-opt > span { min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
  .ins2-steps li:not(.is-on) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ins2-steps li.is-on { flex: 3 1 0; }
  .ins2-review { grid-template-columns: 1fr auto; }
  .ins2-review dt { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; }
  .ins2-btn { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-ins2 .ins2-step:not([hidden]), .ins2-pass dd.is-new, .ins2-pass.is-issued .ins2-pass-stamp { animation: none; }
}
.ins2-pass [data-pass].is-empty { color: rgba(255, 255, 255, 0.28); font-weight: 600; }

/* --- ajustes tras revisarlo en pantalla --- */
.ins2-btn[hidden] { display: none; }
.ins2-opt input:checked + span {
  border-color: var(--i-blue);
  background: linear-gradient(150deg, var(--i-blue-2), var(--i-blue));
  box-shadow: 0 10px 26px -12px rgba(43, 134, 255, 0.9);
}
.ins2-opt input:checked + span small { color: rgba(255, 255, 255, 0.85); }
.ins2-slots .ins2-opt input:checked + span .ins2-ico { color: #fff; }

/* el pase: líneas de pista de pádel y la pelota asomando */
.ins2-pass::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.4'%3E%3Crect x='16' y='16' width='168' height='368' rx='2'/%3E%3Cpath d='M16 200h168M16 110h168M16 290h168M100 110v180'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.ins2-pass::after {
  content: ''; position: absolute; width: 120px; height: 120px; right: -42px; top: -42px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #f2f75a, var(--i-ball) 55%, #a9b012 100%);
  box-shadow: 0 0 60px rgba(217, 224, 33, 0.35);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 58px, transparent 59px);
          mask: radial-gradient(circle at 50% 50%, #000 58px, transparent 59px);
  opacity: .9;
}
.ins2-pass > * { position: relative; z-index: 1; }
.ins2-pass-top { padding-right: 70px; }
.ins2-pass-top img + img { display: none; }
.ins2-pass.is-issued { border-color: rgba(217, 224, 33, 0.55); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(217, 224, 33, 0.25), 0 0 60px -10px rgba(217, 224, 33, 0.35); }
.ins2 a.ins2-btn { text-decoration: none; }
