/* Estilos compartidos por los 5 formularios de esta carpeta (index.html,
   academia.html, abono.html, comprobante.html, confirmar.html). Un solo
   lugar para la identidad visual de TREINA PADEL — cambiar acá impacta
   a todos los formularios a la vez. */

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
  --ink: #06070A;
  --panel: #101319;
  --panel-2: #171B22;
  --line: #262B35;
  --blue: #1B4CE0;
  --blue-light: #3B6EF5;
  --blue-soft: rgba(27, 76, 224, 0.16);
  --white: #FFFFFF;
  --muted: #9AA1AE;
  --warn: #FF5C5C;
  --warn-soft: rgba(255, 92, 92, 0.14);
  --ok: #33D17A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--white);
  min-height: 100vh;
}

/* franja de rayas diagonales de la marca, arriba de todo */
.stripes {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, #000 10px 20px);
}

.header {
  background: #000;
  border-bottom: 3px solid var(--blue);
  padding: 30px 18px 22px;
  text-align: center;
}
.header .brand {
  font-family: 'Anton', system-ui, sans-serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
}
.header .brand-sub {
  font-family: 'Anton', system-ui, sans-serif;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--blue-light);
  margin-top: 3px;
}
.header p {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px; margin-top: 10px;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 60px; }

.card {
  background: var(--panel);
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 14px;
}

.intro { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.intro strong { color: var(--white); }

label.field-label {
  display: block;
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"], input[type="tel"], input[type="number"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 14px;
  background: var(--panel-2);
  color: var(--white);
}
input::placeholder { color: var(--muted); }
input:focus { outline: 2px solid var(--blue-light); border-color: transparent; }

.hint { font-size: 12px; color: var(--muted); margin: -8px 0 14px; }

.day-block { margin-bottom: 14px; }
.day-name {
  font-size: 13px; font-weight: 800; color: var(--blue-light);
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.day-count {
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 1px 8px;
  display: none;
}
.day-count.show { display: inline-block; }

.hours { display: flex; flex-wrap: wrap; gap: 7px; }
.hour-chip {
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.hour-chip.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.summary {
  font-size: 12.5px; color: var(--muted);
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.summary strong { color: var(--white); }

/* Opciones de respuesta única, una debajo de la otra (textos largos) */
.opts { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.opt-chip {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  color: var(--white);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.opt-chip.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 800;
}

.sub-input { display: none; margin: -6px 0 14px; }
.sub-input.show { display: block; }

.upload-box {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s;
  background: var(--panel-2);
}
.upload-box.has-file { border-color: var(--blue); border-style: solid; padding: 12px; }
.upload-box .icon { font-size: 30px; margin-bottom: 6px; }
.upload-box .label { font-size: 13.5px; font-weight: 700; color: var(--blue-light); }
.upload-box .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Miniaturas de las fotos ya elegidas, en comprobante.html */
.previews { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.preview-item { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--blue); }
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-item .pdf-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: var(--panel-2); color: var(--blue-light); font-weight: 700; font-size: 11px;
}
.preview-item .pdf-placeholder .icon { font-size: 22px; }
.preview-item .quitar {
  appearance: none; -webkit-appearance: none;
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.75); color: #fff; border: none; font-size: 11px; line-height: 18px;
  cursor: pointer; padding: 0; font-family: inherit;
}
#fileInput { display: none; }

.error {
  display: none;
  background: var(--warn-soft);
  color: #FF9494;
  font-size: 13px; font-weight: 700;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.error.show { display: block; }
.error a { color: inherit; }

.btn {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  padding: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:active { background: var(--blue-light); }
.btn-ghost {
  background: transparent;
  color: var(--blue-light);
  border: 1.5px dashed var(--blue);
  margin-top: 10px;
  font-size: 13.5px;
  padding: 11px;
}

.done {
  display: none;
  text-align: center;
  padding: 10px 0 4px;
}
.done.show { display: block; }
.done .big { font-size: 38px; }
.done p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.footer { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 18px; }

/* Torneo: texto del compromiso (caja con scroll) y casilla de conformidad */
.doc {
  max-height: 280px; overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.doc:focus { outline: 2px solid var(--blue-light); border-color: transparent; }
.doc h3 { font-size: 14px; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.doc h4 { font-size: 13px; color: var(--white); margin: 14px 0 4px; }
.doc h3 + h4 { margin-top: 0; color: var(--blue-light); }
.doc p { margin-bottom: 8px; }
.sub-title {
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 14px;
  font-size: 13px; color: var(--white); line-height: 1.45;
  cursor: pointer;
}
.check-row input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--blue-light); cursor: pointer; }
