/* =============================================================
   ESTILOS DEL EMBUDO — medidos en el original a 390 px (iPhone)
   =============================================================
   1. Base y colores          5. Pantallas informativas
   2. Botones                 6. Tarjeta de temas
   3. Portada                 7. Nombre, selfie y análisis
   4. Cabecera y opciones     8. Correo
   La oferta y el pago están en css/oferta.css. */

/* ---------- 1. Base ---------- */
:root {
  --verde: #0F766E;          /* botones y marca */
  --verde-claro: #CCFBF1;    /* seleccionado, «Sube una foto» */
  --barra: #00BB77;          /* barra de progreso, sellos verdes */
  --tinta: #181822;
  --gris: #71717A;
  --gris-claro: #ADADB3;
  --borde: #D1D1D6;
  --fondo: #F9F9FA;
  --morado: rgb(122, 0, 218);
}
* { box-sizing: border-box; }
html { font-size: 10px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, sans-serif; font-size: 15px; line-height: 1.15; color: #000; background: var(--fondo);
  -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 0; height: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
.logo { font-weight: 700; font-size: 29px; line-height: 24px; height: 24px; letter-spacing: -0.6px; color: #2E6F66;
  text-decoration: none; display: inline-block; font-family: Inter, sans-serif; }
.logo .i-punto { position: relative; }

/* ---------- 2. Botones ---------- */
/* Los botones del original piden Roboto pero no la cargan: en el iPhone salen en Helvetica. Igual aquí. */
.boton { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; border: 0; border-radius: 8px;
  background: var(--verde); color: #fff; font: 600 16px/16px Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0.45712px; padding: 20px 24px;
  text-decoration: none; cursor: pointer; transition: background-color 250ms cubic-bezier(.4,0,.2,1), color 250ms cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent; }
.boton:disabled { background: var(--borde); color: var(--gris); cursor: default; }
.boton.secundario { background: var(--verde-claro); color: var(--verde); }
.boton.texto { background: transparent; color: var(--gris-claro); }
.boton.chico { font-size: 14px; line-height: 14px; letter-spacing: 0.39998px; padding: 16px; }

/* ---------- 3. Portada ---------- */
.portada { min-height: 100svh; display: flex; flex-direction: column; background: var(--fondo); }
.portada-cab { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; }
.portada-cab .logo { margin-top: 2px; }
.btn-sesion { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 10px; border-radius: 8px;
  background: #EFEFF1; color: #45454D; font: 600 12px/12px Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0.34284px; text-decoration: none; min-width: 64px; width: 102px; }
.portada-cuerpo { flex: 1; display: flex; flex-direction: column; padding: 16px 16px 160px; max-width: 600px; width: 100%; margin: 0 auto; }
.radar { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: flex-start;
  background-image: repeating-radial-gradient(circle at 42% 50%, rgba(0,0,0,0) 0, rgba(0,0,0,0) 56px, rgba(0,0,0,.05) 57px, rgba(0,0,0,0) 58px); }
.radar .mujer { width: 153px; height: 197px; object-fit: contain; margin-left: -16px;
  -webkit-mask-image: linear-gradient(#000 80%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(#000 80%, rgba(0,0,0,0) 100%); }
.chips { position: absolute; right: 0; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.chip { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 16px; box-shadow: rgba(0,0,0,.08) 0 2px 8px; padding: 4px 8px;
  height: 28px; }
.chip .bandera { font-size: 14px; line-height: 20px; }
.chip p { margin: 0; font-weight: 600; font-size: 12px; line-height: 1; }
.portada h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; text-align: center; font-weight: 700; }
.portada-pie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; box-shadow: rgba(0,0,0,.06) 0 -2px 12px; background: var(--fondo);
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); }
.portada-pie .dentro { max-width: 600px; margin: 0 auto; }
.portada-pie p { margin: 8px 0 0; font-size: 12px; line-height: 1.34; color: var(--gris); text-align: center; }
.portada-pie p a { color: var(--gris); text-decoration: underline; font-weight: 700; }
.portada-pie p a.fino { font-weight: 400; }

/* ---------- 4. Cabecera del quiz y opciones ---------- */
.quiz { min-height: 100svh; display: flex; flex-direction: column; background: var(--fondo); }
.progreso { padding: 8px 16px 0; }
.pista { position: relative; height: 4px; border-radius: 8px; background: rgba(0,0,0,.1); overflow: hidden; }
.relleno { position: absolute; inset: 0; border-radius: 8px; background: var(--barra); transform: translateX(-100%); transition: transform .4s linear; }
.cabecera { position: relative; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 16px; margin-top: 9px; }
.cabecera .logo { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); }
.volver { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 10px; border: 0; border-radius: 8px; background: #EFEFF1;
  color: var(--tinta); font: 600 12px/12px Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0.34284px; cursor: pointer; visibility: hidden; width: 82px; justify-content: center; }
.volver.ver { visibility: visible; }
.volver svg { width: 18px; height: 18px; }
.contador { margin: 0; font-size: 16px; line-height: 24px; color: var(--gris); }
.escena { flex: 1; display: flex; flex-direction: column; padding: 25px 16px 16px; position: relative; opacity: 1; transition: opacity 225ms cubic-bezier(.4,0,.2,1); }
.escena.oculta { opacity: 0; }
.emoji { font-size: 24px; line-height: 27.6px; display: block; }
.titulo { margin: 8px 0 24px; font-size: 24px; line-height: 32.16px; font-weight: 700; color: var(--tinta); }
.opciones { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.opcion { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--borde); border-radius: 8px; padding: 16px 16px 16px 16px;
  cursor: pointer; transition: border-color .25s cubic-bezier(.4,0,.2,1), background-color .25s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.opcion.con-emoji { padding-left: 16px; }
.opcion .oe { font-size: 24px; line-height: 27.6px; color: var(--tinta); flex-shrink: 0; }
.opcion p { margin: 0; font-size: 16px; line-height: 24px; color: var(--tinta); flex: 1; }
.opcion.elegida { border-color: var(--verde); background: var(--verde-claro); }
.opcion .casilla { width: 24px; height: 24px; flex-shrink: 0; color: var(--gris); }
.opcion.elegida .casilla { color: var(--verde); }
.escena.multiple .opciones { margin-top: 0; padding-top: 8px; padding-bottom: 88px; }
.fijo-abajo { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 16px 16px; z-index: 5; pointer-events: none; }
.fijo-abajo > * { pointer-events: auto; max-width: 600px; margin: 0 auto; }

/* ---------- 5. Pantallas informativas ---------- */
.info-img { width: 343px; max-width: calc(100% - 16px); margin: 0 auto 16px; object-fit: contain; }
.info-titulo { margin: 0 0 24px; font-size: 24px; line-height: 32.16px; font-weight: 700; color: #000; }
.info-titulo b { font-weight: 900; }
.info-texto { margin: 0; font-size: 16px; line-height: 24px; color: var(--tinta); padding-bottom: 96px; }
.escena.info { padding-top: 25px; }

/* ---------- 6. Tarjeta de temas ---------- */
.escena.tema { padding-top: 9px; }
.escena.tema .titulo { margin-bottom: 19px; }
.mazo { position: relative; padding-top: 21px; }
.carta-fondo { position: absolute; left: 0; right: 0; border-radius: 16px; border: 1px solid rgba(0,0,0,.1); }
.carta-fondo.f1 { top: 0; height: 303px; transform: scale(.9409); transform-origin: top center; background: rgba(205,224,255,.3); }
.carta-fondo.f2 { top: 11px; height: 312px; transform: scale(.97); transform-origin: top center; background: rgba(205,224,255,.5); }
.carta { position: relative; z-index: 3; background: rgb(205,224,255); border: 1px solid rgba(0,0,0,.1); border-radius: 16px; padding: 24px; }
.carta .foto { height: 160px; border-radius: 8px; overflow: hidden; }
.carta .foto img { width: 100%; height: 100%; object-fit: cover; }
.carta h3 { margin: 16px 0 0; font-size: 20px; line-height: 27.6px; font-weight: 700; text-align: center; color: var(--tinta); }
.carta p { margin: 0; font-size: 14px; line-height: 20.44px; text-align: center; color: var(--tinta); }
.sino { margin-top: auto; display: flex; gap: 8px; padding-bottom: 12px; }
.sino .opcion { flex: 1; justify-content: center; border-radius: 12px; padding: 16px 8px; }
.sino .opcion .oe { color: rgba(0,0,0,.847); }
.sino .opcion p { flex: 0 0 auto; }

/* ---------- 7. Nombre, selfie y análisis ---------- */
.campo { width: 100%; height: 56px; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; background: #fff; padding: 16.5px 14px;
  font: 400 16px/23px Inter, sans-serif; color: var(--tinta); outline: none; -webkit-appearance: none; appearance: none; }
.campo:focus { border: 2px solid var(--verde); padding: 15.5px 13px; }
.campo::placeholder { color: #A2A2A8; opacity: 1; }
.escaneo-img { width: 347px; max-width: 100%; height: 343px; object-fit: contain; margin: 0 auto 24px; }
.escena.selfie { padding-top: 9px; }
.escena.selfie .info-titulo { margin-bottom: 8px; }
.escena.selfie .info-texto { padding-bottom: 24px; }
.mano { width: 216px; height: 194px; object-fit: contain; margin: 0 auto 16px; }
.centro { text-align: center; }
.sub-gris { margin: 8px 0 24px; font-size: 16px; line-height: 24px; color: #6A6A6A; text-align: center; }
.consentimiento { margin: 0 0 8px; font-size: 12px; line-height: 16.08px; color: rgba(0,0,0,.4); text-align: center; }
.consentimiento a { color: inherit; }
.confianza { background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 96px; }
.confianza img { width: 28px; height: 28px; }
.confianza strong { font-size: 16px; line-height: 16px; font-weight: 600; color: #000; }
.confianza p { margin: 0; font-size: 14px; line-height: 20.44px; color: var(--gris-claro); text-align: center; }
.camara-titulo { margin: 0; font-size: 24px; line-height: 32.16px; font-weight: 700; color: #000; }
.camara-texto { margin: 8px 0 16px; font-size: 14px; line-height: 20.44px; color: var(--gris-claro); }
.visor { position: relative; height: 410px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.visor video, .visor img { width: 100%; height: 100%; object-fit: cover; }
.visor video { transform: scaleX(-1); }
.visor.previa { background: #000; }
.visor.previa img { object-fit: contain; }
.visor .aviso { padding: 0 24px; font-size: 14px; line-height: 20.44px; color: rgba(0,0,0,.6); text-align: center; }
.botones-col { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 16px; }
.botones-fila { display: flex; gap: 12px; }
.botones-fila .boton:first-child { flex: 0 0 168px; }
.cargando { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 220px; }
.rueda { width: 53px; height: 53px; color: var(--verde); animation: girar 1.4s linear infinite; }
.rueda circle { stroke: currentColor; stroke-dasharray: 80px, 200px; stroke-dashoffset: 0; animation: trazo 1.4s ease-in-out infinite; }
@keyframes girar { 100% { transform: rotate(360deg); } }
@keyframes trazo { 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } }
.escribe { margin: 17px 0 0; min-height: 48px; font-size: 18px; line-height: 24px; font-weight: 700; text-align: center; color: #000; padding: 0 40px; }
.escribe::after { content: ''; display: inline-block; width: 2px; height: 22px; background: #000; vertical-align: -4px; margin-left: 2px; animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.error-texto { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--gris-claro); }

/* ---------- 8. Correo ---------- */
.titulo.morado { color: var(--morado); margin: 0; }
.correo-texto { margin: 0 0 24px; font-size: 14px; line-height: 20.44px; color: var(--tinta); }
.privacidad { margin-top: 8px; background: var(--verde-claro); border-radius: 8px; padding: 8px 12px; }
.privacidad p { margin: 0; font-size: 14px; line-height: 20.44px; color: var(--tinta); }
.legal-correo { margin: 16px 0 0; font-size: 12px; line-height: 16.08px; color: var(--tinta); text-align: center; opacity: .4; }
.legal-correo a { color: inherit; }
.pie-correo { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 16px 16px; background: var(--fondo); z-index: 5; }
.pie-correo > div { max-width: 600px; margin: 0 auto; }
.error-campo { margin: 6px 2px 0; font-size: 12px; line-height: 16px; color: #D32F2F; }

/* Escritorio (≥ 600 px, como MUI «sm»): barra y cabecera a todo el ancho; preguntas en dos columnas
   (pregunta a la izquierda, opciones a la derecha, 410 px cada una) y pantallas informativas con la
   imagen a la izquierda — medido en el original a 1280 px. El resto, en una columna de 600 px. */
@media (min-width: 600px) {
  .progreso, .cabecera { padding-left: 24px; padding-right: 24px; }
  .escena { max-width: 600px; width: 100%; margin-left: auto; margin-right: auto; }
  .escena.unica, .escena.multiple, .escena.info { max-width: 900px; padding: 49px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
  .escena.unica .emoji, .escena.multiple .emoji { grid-column: 1; grid-row: 1; }
  .escena.unica .titulo, .escena.multiple .titulo { grid-column: 1; grid-row: 2; margin-top: 8px; }
  .escena.unica .opciones, .escena.multiple .opciones { grid-column: 2; grid-row: 2 / span 2; margin-top: 8px; padding: 0; }
  .escena.multiple .fijo-abajo { grid-column: 2; grid-row: 4; position: static; padding: 16px 0 0; }
  .escena.info { grid-template-columns: 343px 1fr; }
  .escena.info .info-img { grid-column: 1; grid-row: 1 / span 4; margin: 10px 0 0; max-width: 343px; }
  .escena.info .info-titulo, .escena.info .info-texto, .escena.info .fijo-abajo { grid-column: 2; }
  .escena.info .info-titulo { margin-top: 10px; }
  .escena.info .info-texto { padding-bottom: 24px; }
  .escena.info .fijo-abajo { position: static; padding: 0; }
  .portada-cab { padding: 16px 24px; }
  .portada-cuerpo { padding-left: 24px; padding-right: 24px; }
  .radar .mujer { width: 258px; height: 332px; margin-left: -24px; }
  .portada-pie { padding-left: 24px; padding-right: 24px; }
  .portada-pie .dentro { max-width: 552px; }
}
