/* ============================================================
   TEST DE ROL DE PERCEPCIÓN ERRADA TP1 · marinaberenguer.es/test-rpe
   styles.css — el look & feel de la versión anterior de test-rpe
   (blanco, solo dos azules: turquesa #00AED1 y su claro #DFF2F8,
   tinta #15191C, Poppins para titular y Montserrat para leer).
   Sin cursivas en ningún sitio (norma de Marina).
   ============================================================ */

:root {
  --azul: #00AED1;
  --azul-claro: #DFF2F8;
  --grad: linear-gradient(120deg, #00AED1, rgba(0,174,209,.55));

  --fondo: #FFFFFF;
  --tarjeta: rgba(0,174,209,.05);
  --tarjeta-borde: rgba(0,174,209,.20);
  --linea: rgba(0,174,209,.20);
  --acento-borde: rgba(0,174,209,.30);
  --acento-suave: rgba(0,174,209,.10);

  --tinta: #15191C;
  --pizarra: #3D464D;
  --apagado: #697077;

  --rojo-texto: #B3261E;
}

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

html, body {
  background: var(--fondo);
  color: var(--pizarra);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden; }

/* resplandores de marca, fijos y serenos */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
body::before { width: 60vw; height: 60vw; top: -25vw; right: -20vw; background: radial-gradient(circle, rgba(0,174,209,.10), transparent 65%); }
body::after  { width: 55vw; height: 55vw; bottom: -22vw; left: -18vw; background: radial-gradient(circle, rgba(0,174,209,.22), transparent 65%); }

header, #app, .footer-spais { position: relative; z-index: 1; }

#app { width: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 64px; flex: 1; }

::selection { background: rgba(0,174,209,.45); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .titulo-app, .titulo-seccion, .texto-item, .btn-num { font-family: 'Poppins', system-ui, sans-serif; }
strong { color: var(--tinta); font-weight: 600; }

/* ---------- cabecera y pie ---------- */

.cabecera-spais { padding: 28px 20px 4px; text-align: center; }
.marca-mb { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; }
.marca-mb__nombre { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; color: var(--tinta); font-size: .95rem; letter-spacing: .22em; }
.marca-mb__libro { font-family: 'Montserrat', system-ui, sans-serif; font-weight: 400; color: var(--apagado); font-size: .66rem; letter-spacing: .18em; }
.marca-mb:hover .marca-mb__nombre { color: var(--azul); }

.footer-spais {
  text-align: center;
  padding: 1.6rem 1rem 2.2rem;
  font-size: .74rem;
  color: var(--apagado);
  border-top: 1px solid var(--linea);
  margin-top: 2rem;
  letter-spacing: .02em;
}
.footer-spais p { margin: 0 0 .5rem; }
.footer-spais a { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--azul); text-underline-offset: 3px; }

/* ---------- tarjetas ---------- */

.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 20px;
  padding: 26px 22px;
  margin-bottom: 16px;
  box-shadow: 0 24px 60px rgba(21,25,28,.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: aparecer .45s ease both;
}
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.marca { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--tinta); font-weight: 600; margin-bottom: 8px; }
.titulo-app { font-size: 27px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; margin-bottom: 18px; color: var(--tinta); }
.titulo-seccion { font-size: 21px; font-weight: 600; color: var(--tinta); margin-bottom: 12px; letter-spacing: -.01em; }
.parrafo { margin-bottom: 12px; color: var(--pizarra); font-weight: 400; }
.sobre-titulo { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--tinta); font-weight: 600; margin-bottom: 6px; }

.lista-ficha { margin: 0 0 14px 20px; color: var(--pizarra); }
.lista-ficha li { margin-bottom: 7px; }
.lista-ficha li::marker { color: var(--azul); }

.caja-destacada {
  position: relative;
  overflow: hidden;
  background: rgba(0,174,209,.06);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 14px;
  padding: 16px 18px 16px 22px;
  margin: 20px 0 22px;
  color: var(--tinta);
}
.caja-destacada p + p { margin-top: 6px; }
.caja-destacada::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }

.ficha-principal { position: relative; overflow: hidden; }
.ficha-principal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }

/* ---------- formulario de datos ---------- */

.form-datos { display: flex; flex-direction: column; margin: 8px 0 20px; }
.form-datos label { font-size: 14px; font-weight: 500; color: var(--tinta); margin: 12px 0 6px; }
.form-datos .opcional { font-weight: 400; color: var(--apagado); }
.campo {
  width: 100%; padding: 13px 16px; border-radius: 12px; font: inherit; font-size: .95rem;
  border: 1px solid var(--linea); background: #fff; color: var(--tinta);
}
.campo:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0,174,209,.20); }
.campo::placeholder { color: var(--apagado); }

.linea-consentimiento {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  color: var(--tinta);
  background: rgba(0,174,209,.05);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 14px;
  padding: 16px 18px 16px 22px;
  margin-bottom: 14px;
  overflow: hidden;
}
.linea-consentimiento::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }

.fila-check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 22px; padding: 0 4px 0 22px; cursor: pointer; color: var(--pizarra); font-size: 14.5px; }

.linea-consentimiento input[type="checkbox"], .fila-check input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 1px; accent-color: var(--azul); flex-shrink: 0; cursor: pointer;
}

.enlace { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--azul); text-underline-offset: 3px; }
.enlace:hover { color: var(--azul); }

/* ---------- botones ---------- */

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  font-size: 16.5px;
  font-family: inherit;
  padding: 15px 22px;
  cursor: pointer;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:active { transform: scale(.985); }

.btn-primario { background: var(--grad); color: var(--tinta); font-weight: 600; letter-spacing: .01em; box-shadow: 0 10px 30px rgba(0,174,209,.35); margin-top: 6px; }
.btn-primario:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,174,209,.45); }
.btn-primario:disabled { background: rgba(0,174,209,.08); color: var(--apagado); box-shadow: none; cursor: not-allowed; }

.btn-secundario { background: rgba(0,174,209,.07); border: 1px solid var(--tarjeta-borde); color: var(--tinta); font-weight: 500; margin-top: 8px; }
.btn-secundario:hover { background: rgba(0,174,209,.12); }

.btn-texto { background: none; color: var(--apagado); width: auto; padding: 10px 6px; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.btn-texto:hover { color: var(--tinta); }

.btn-enlace { background: none; border: none; padding: 0; font: inherit; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pie-navegacion { display: flex; justify-content: flex-start; margin-top: 14px; }
.pie-doble { justify-content: space-between; }

/* ---------- pantalla de afirmación ---------- */

.cabecera-item { margin-bottom: 18px; }
.contador { font-size: 12.5px; color: var(--apagado); margin-bottom: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.progreso { height: 5px; background: rgba(0,174,209,.08); border-radius: 3px; overflow: hidden; }
.progreso-barra { height: 100%; background: var(--grad); border-radius: 3px; transition: width .3s ease; box-shadow: 0 0 12px rgba(0,174,209,.6); }

.texto-item { font-size: 21px; line-height: 1.45; color: var(--tinta); font-weight: 600; letter-spacing: -.005em; margin-bottom: 26px; min-height: 3.6em; }

.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.btn-num {
  aspect-ratio: 1 / 1;
  max-height: 72px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--linea);
  background: rgba(0,174,209,.04);
  color: var(--tinta);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn-num:hover { background: rgba(0,174,209,.10); border-color: var(--acento-borde); }
.btn-num:active { transform: scale(.96); }
.btn-num.elegida { background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px rgba(0,174,209,.40); }

.escala-anclas { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--apagado); }
.escala-anclas span:last-child { text-align: right; }

/* ---------- final ---------- */

.estado-envio {
  font-size: 14.5px;
  color: var(--pizarra);
  background: rgba(0,174,209,.06);
  border: 1px solid var(--tarjeta-borde);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
}
.estado-ok { color: var(--tinta); background: rgba(0,174,209,.12); }
.estado-error { color: var(--rojo-texto); background: rgba(179,38,30,.06); border-color: rgba(179,38,30,.25); }

/* ---------- modal de privacidad ---------- */

.modal-fondo {
  position: fixed; inset: 0; background: rgba(21,25,28,.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal {
  background: #fff; border: 1px solid var(--tarjeta-borde); border-radius: 20px; padding: 26px 22px;
  max-width: 560px; width: 100%; max-height: 82vh; overflow-y: auto; box-shadow: 0 40px 90px rgba(21,25,28,.15);
}
.modal h2 { font-size: 18px; font-weight: 600; color: var(--tinta); margin-bottom: 14px; }
.destacado-privacidad { background: var(--acento-suave); border: 1px solid var(--acento-borde); border-radius: 12px; padding: 13px 15px; color: var(--tinta); font-weight: 500; margin-bottom: 14px; font-size: 14.5px; }
.lista-privacidad { margin: 0 0 14px 18px; color: var(--apagado); font-size: 14px; }
.lista-privacidad li { margin-bottom: 8px; }
.nota-modal { font-size: 13.5px; color: var(--apagado); margin-bottom: 8px; }

/* ---------- escritorio ---------- */

@media (min-width: 720px) {
  #app { padding-top: 34px; }
  .tarjeta { padding: 34px 38px; }
  .texto-item { font-size: 23px; }
  .titulo-app { font-size: 32px; }
  .escala { gap: 14px; }
}

@media (max-width: 380px) {
  .escala { gap: 7px; }
  .btn-num { font-size: 18px; border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tarjeta { animation: none; }
  .btn, .btn-num, .progreso-barra { transition: none; }
}
