@font-face { font-family: Figtree; src: url(../fonts/Figtree-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url(../fonts/Figtree-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(../fonts/Figtree-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --fondo-1: #0b1020;
  --fondo-2: #24324a;
  --titulo: #1b1630;
  --magenta: #880b5f;
  --amarillo: #ffe14d;
  --verde: #7de6aa;
  --rojo: #ff5a5a;
  --azul: #8fd0ff;
  --texto: #3a3550;
  --radio: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Figtree, system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  background-color: var(--fondo-1);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(143,208,255,.10), transparent 45%),
    linear-gradient(180deg, var(--fondo-1) 0%, var(--fondo-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
/* grano suave, como el fondo de los reels */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.huesos {
  position: fixed; z-index: 0; pointer-events: none;
  right: -60px; top: 40px; width: 300px; height: 680px; opacity: .22;
  transform: rotate(14deg);
}
@media (min-width: 900px) { .huesos { right: 4vw; width: 380px; height: 860px; opacity: .3; } }

header, main, footer { position: relative; z-index: 1; }
main, .cabecera, .pie { max-width: 640px; margin: 0 auto; padding: 0 16px; }

a { color: var(--azul); }

.cabecera { padding-top: 18px; display: flex; justify-content: center; }
.logo-caja {
  display: inline-block; background: #fff; border-radius: 18px; padding: 10px 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.logo-caja img { display: block; height: 52px; width: auto; }

.portada { text-align: center; padding: 34px 0 10px; }
.portada.final { padding: 10px 0 40px; }
h1 {
  font-weight: 800; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; letter-spacing: -.01em;
  margin: 16px 0 14px;
}
.entradilla { font-size: 18px; color: #dfe8f5; margin: 0 0 24px; }
.entradilla strong { color: var(--amarillo); }
.precio { font-size: 15px; color: #b9c6da; margin: 12px 0 0; }

.pastilla {
  display: inline-block; border-radius: 999px; padding: 5px 14px;
  font-weight: 700; font-size: 14px; color: var(--titulo);
}
.pastilla.amarilla { background: var(--amarillo); }
.pastilla.verde { background: var(--verde); }
.pastilla.rojo { background: var(--rojo); color: #fff; }
.pastilla.azul { background: var(--azul); }

.boton {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; text-decoration: none; color: var(--titulo);
  padding: 14px 28px; transition: transform .12s ease, box-shadow .12s ease;
}
.boton:active { transform: scale(.97); }
.boton.verde { background: var(--verde); box-shadow: 0 6px 0 #3fae73, 0 10px 30px rgba(125,230,170,.25); }
.boton.amarillo { background: var(--amarillo); box-shadow: 0 6px 0 #c9a800; }
.boton.grande { font-size: 20px; padding: 18px 34px; width: 100%; max-width: 380px; }

.bloque { padding: 26px 0 6px; }
.titulo-seccion { font-weight: 800; font-size: 24px; margin: 0 0 14px; }

.tarjeta {
  background: #fff; color: var(--texto); border-radius: var(--radio);
  padding: 20px 20px 16px; margin: 0 0 14px; box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.tarjeta h3 { color: var(--titulo); font-weight: 800; font-size: 21px; margin: 0; line-height: 1.2; }
.tarjeta .sub { color: var(--magenta); font-weight: 700; margin: 2px 0 10px; }
.tarjeta p { margin: 0 0 10px; }
.tarjeta a { color: var(--magenta); font-weight: 700; }

.pasos { list-style: none; padding: 0; margin: 0; }
.pasos .tarjeta { position: relative; padding-left: 70px; }
.numero {
  position: absolute; left: 18px; top: 20px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--amarillo); color: var(--titulo); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}

.lista-pastillas { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.pregunta { padding: 0; }
.pregunta summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative;
  color: var(--titulo); font-weight: 800; font-size: 18px;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--amarillo);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pregunta[open] summary::after { content: "–"; }
.pregunta p { padding: 0 20px 16px; margin: 0; }

.pie { text-align: center; padding-top: 20px; padding-bottom: 36px; color: #b9c6da; font-size: 15px; }
.pie .aviso { color: #dfe8f5; font-weight: 700; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 12px; }

/* ---------- formulario ---------- */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.progreso { margin: 26px 0 6px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.progreso-barra { height: 100%; width: 0; background: var(--verde); border-radius: 999px; transition: width .3s ease; }
.paso-de { margin: 0 0 12px; color: #b9c6da; font-weight: 700; font-size: 15px; }

fieldset.tarjeta { border: 0; min-width: 0; }
.paso legend {
  float: left; width: 100%; padding: 0;
  color: var(--titulo); font-weight: 800; font-size: 24px; line-height: 1.2;
}
.paso legend + * { clear: both; }
.paso .sub { margin-bottom: 18px; }

.campo { display: block; margin: 0 0 16px; color: var(--titulo); font-weight: 700; font-size: 16px; }
.campo small { color: #777; font-weight: 500; }
.etiqueta { display: block; margin-bottom: 8px; }
.campo input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]),
.campo select, .campo textarea {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-weight: 500; font-size: 17px; color: var(--titulo);
  background: #f3f5fa; border: 2px solid #dde3ee; border-radius: 14px; padding: 12px 14px;
  appearance: none; -webkit-appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231b1630' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--magenta); background-color: #fff; }
.campo ::placeholder { color: #9aa3b5; }
.campo.mal input, .campo.mal select, .campo.mal textarea { border-color: var(--rojo); background-color: #fff3f3; }
.campo.mal > .etiqueta, .campo.mal { color: #c62828; }

.fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fila:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }

.opciones { display: flex; flex-direction: column; gap: 8px; }
.opcion, .chip {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: #f3f5fa; border: 2px solid #dde3ee; border-radius: 14px; padding: 11px 14px;
  font-weight: 700; color: var(--titulo);
}
.opcion input, .chip input { accent-color: var(--magenta); width: 20px; height: 20px; margin: 0; flex: none; }
.opcion:has(input:checked), .chip:has(input:checked) { border-color: var(--magenta); background: #fbeef6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.chip input { width: 16px; height: 16px; }
.campo.mal .chips .chip, .campo.mal .opciones .opcion { border-color: var(--rojo); }
.chips + input { margin-top: 10px !important; }

.caja-tutor { background: #fff8d6; border-radius: 16px; padding: 14px 14px 2px; margin: 0 0 16px; }
.nota { color: var(--texto); font-size: 15px; font-weight: 500; }
.caja-tutor .nota { margin: 0 0 10px; font-weight: 700; }

.deslizador { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin: 0 0 12px; font-weight: 700; }
.deslizador input { grid-column: 1 / -1; width: 100%; accent-color: var(--magenta); height: 28px; }
.deslizador output {
  min-width: 36px; text-align: center; border-radius: 999px; padding: 2px 10px; font-weight: 800;
  background: var(--verde); color: var(--titulo);
}
.deslizador output[data-nivel=medio] { background: var(--amarillo); }
.deslizador output[data-nivel=alto] { background: var(--rojo); color: #fff; }

.guia-videos { background: #eef7ff; border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; color: var(--titulo); }
.guia-videos p { margin: 0 0 8px; }
.guia-videos ul { list-style: none; padding: 0; margin: 0 0 10px; }
.guia-videos li { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.guia-videos .pastilla { padding: 2px 10px; }

.subida .boton { font-size: 16px; padding: 11px 22px; }
.lista-archivos { list-style: none; padding: 0; margin: 8px 0 0; font-weight: 500; font-size: 14px; color: var(--texto); }
.lista-archivos li { padding: 6px 10px; background: #f3f5fa; border-radius: 10px; margin-bottom: 4px; word-break: break-all; }
.lista-archivos li::before { content: "✓ "; color: #2a9d5c; font-weight: 800; }
.lista-archivos li.grande { background: #fff3f3; color: #c62828; }
.lista-archivos li.grande::before { content: "✕ "; color: #c62828; }
.aviso-subida { background: #fff3f3; color: #c62828; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 15px; }

.resumen { background: #f3f5fa; border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; font-size: 15px; color: var(--texto); }
.resumen p { margin: 0 0 4px; word-break: break-word; }
.resumen strong { color: var(--titulo); }

.casilla { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-size: 15px; color: var(--texto); cursor: pointer; }
.casilla input { accent-color: var(--magenta); width: 24px; height: 24px; flex: none; margin: 1px 0 0; }
.casilla.mal { background: #fff3f3; border-radius: 12px; outline: 2px solid var(--rojo); outline-offset: 4px; }

.error-paso { background: var(--rojo); color: #fff; font-weight: 800; border-radius: 14px; padding: 10px 14px; text-align: center; }

.navegacion { display: flex; gap: 12px; margin: 6px 0 30px; }
.navegacion .boton { flex: 1; font-size: 19px; padding: 16px 20px; }
.navegacion .atras { flex: 0 0 auto; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }

.enviado { margin-top: 30px; }

/* ---------- envío y pago ---------- */
.opcion small { color: #777; font-weight: 500; }
.progreso.claro { background: #e6eaf2; margin: 14px 0; }
.bizum-numero { font-size: 34px; font-weight: 800; color: var(--titulo); letter-spacing: .02em; margin: 4px 0 12px; }
.bizum-concepto { font-size: 20px; font-weight: 800; color: var(--magenta); background: #fbeef6; border-radius: 12px; padding: 8px 12px; display: inline-block; }
.enviado .navegacion { margin: 10px 0 0; }

/* ---------- páginas legales ---------- */
.legal-texto { margin-top: 24px; padding: 24px 22px 14px; }
.legal-texto h1 { color: var(--titulo); font-size: 28px; margin: 0 0 4px; }
.legal-texto .actualizado { color: var(--magenta); font-weight: 700; margin: 0 0 18px; }
.legal-texto h2 { color: var(--titulo); font-size: 20px; font-weight: 800; margin: 26px 0 8px; }
.legal-texto p, .legal-texto li { font-size: 16px; }
.legal-texto ul { padding-left: 20px; margin: 0 0 12px; }
.legal-texto li { margin-bottom: 6px; }
.legal-texto table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 12px; }
.legal-texto th, .legal-texto td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid #e6eaf2; }
.legal-texto th { color: var(--titulo); }
.tabla-scroll { overflow-x: auto; }
mark.pendiente { background: var(--amarillo); color: var(--titulo); font-weight: 800; border-radius: 6px; padding: 0 5px; }
.volver-inicio { display: inline-block; margin: 18px 0 0; color: var(--azul); font-weight: 700; }
@media (max-width: 600px) {
  .legal-texto table, .legal-texto tbody, .legal-texto tr, .legal-texto td { display: block; width: 100%; }
  .legal-texto tr:first-child { display: none; }
  .legal-texto tr { border-bottom: 1px solid #e6eaf2; padding: 10px 0; }
  .legal-texto td { border: 0; padding: 2px 0; }
  .legal-texto td:first-child { font-weight: 800; color: var(--titulo); }
}

/* ---------- Instagram en el pie ---------- */
.instagram { margin: 14px 0 4px; }
.instagram a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25);
}
.instagram a:hover { border-color: var(--azul); color: var(--azul); }
.instagram svg { flex: none; }

/* ---------- selector de idioma ---------- */
.cabecera { position: relative; flex-wrap: wrap; }
.idiomas {
  width: 100%; display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 10px;
}
.idiomas a {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; font-size: 13px; color: #dfe8f5; text-decoration: none;
  padding: 4px 9px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(11,16,32,.35);
}
.idiomas a span { font-size: 16px; line-height: 1; }
.idiomas a:hover { border-color: var(--azul); }
.idiomas a.activo { background: #fff; color: var(--titulo); border-color: #fff; }
@media (min-width: 700px) {
  .idiomas { position: absolute; right: 16px; top: 22px; width: auto; margin: 0; }
}
