/* =====================================================================
   ConectaPro Educación — Experiencia móvil (estilo Duolingo)
   Colores de marca inyectados por institución vía variables CSS.
   ===================================================================== */
:root {
  --pri: #1a6ff2;          /* azul principal (botones)            */
  --pri-dark: #1152c4;     /* sombra "sticker" del botón          */
  --pri-soft: #eaf2ff;     /* fondos suaves / burbujas            */
  --sec: #22b14c;          /* verde éxito / WhatsApp              */
  --sec-dark: #178a37;
  --sec-soft: #e9f8ee;
  --ink: #0f2d6e;          /* títulos azul marino                 */
  --ink-2: #1d3f86;
  --text: #4a5876;         /* texto de apoyo                      */
  --muted: #7b879e;
  --line: #dde5f1;
  --bg: #ffffff;
  --page: #edf4fe;
  --radius: 16px;
  --font: 'Nunito', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
/* v49 · Sin zoom involuntario en el celular: sin zoom por doble toque (se puede seguir pellizcando para acercar),
   el texto no se agranda solo al girar el teléfono y nada se sale de los costados de la pantalla */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overflow-x: hidden; overscroll-behavior-y: none; }
/* v55.3 · Sin «jalar para recargar» por accidente y sin rebote que esconda la parte de arriba en el celular */
body { overscroll-behavior-y: none; }
@supports (overflow: clip) { html { overflow-x: clip; } }
/* Todo campo de escritura con 16px o más: en iPhone un campo más pequeño hace zoom al tocarlo */
@media (pointer: coarse) { :where(input:not([type=checkbox], [type=radio], [type=range]), select, textarea) { font-size: 16px; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }
a { color: var(--pri); }
.ico { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Contenedor tipo app ---------- */
.app {
  position: relative;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}
/* v55.3 · «clip» recorta igual pero sin volver a .app un contenedor de scroll: así las barras superiores sí quedan fijas al bajar */
@supports (overflow: clip) { .app { overflow-x: clip; } }
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border-radius: 32px; box-shadow: 0 20px 60px rgba(15, 45, 110, .14); }
}

/* ---------- Barra superior: progreso + volver ---------- */
.flow-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  padding: 16px 20px 10px;
  padding-top: max(16px, env(safe-area-inset-top));
}
.flow-top .row { display: flex; align-items: center; gap: 12px; }
.progress { display: flex; gap: 6px; flex: 1; }
.progress i {
  flex: 1; height: 7px; border-radius: 99px; background: #e2e9f3;
  position: relative; overflow: hidden;
}
.progress i::after {
  content: ''; position: absolute; inset: 0; width: 0; background: var(--pri);
  border-radius: inherit; transition: width .45s cubic-bezier(.4,1.4,.6,1);
}
.progress i.on::after { width: 100%; }
.progress i.half::after { width: 55%; }
.btn-back {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: -8px;
  border: 0; background: none; color: var(--pri); font-size: 24px; cursor: pointer; border-radius: 10px;
}
.btn-back:active { background: var(--pri-soft); }
.btn-back[hidden] { display: none; }
.top-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; min-height: 34px; }
.top-sub[hidden] { display: none; }
.mini-logo { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: block; }
.mini-logo svg, .mini-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Pasos (slides) ---------- */
.step { display: none; padding: 8px 20px 28px; }
.step.is-active { display: block; animation: slideIn .38s cubic-bezier(.2,.8,.2,1); }
.step.is-active.from-left { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.is-active { animation: none; } }

/* ---------- Tipografía ---------- */
.h1 { font-size: 30px; line-height: 1.08; font-weight: 900; letter-spacing: -.02em; color: var(--ink); margin: 6px 0 10px; }
.h1.xl { font-size: 35px; line-height: 1.02; }
.lead { font-size: 16px; line-height: 1.35; color: var(--text); margin: 0 0 18px; font-weight: 600; }
.lead.blue { color: #2757b3; font-size: 17px; }
.h3 { font-size: 19px; font-weight: 900; color: var(--ink); margin: 22px 0 12px; }
.center { text-align: center; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; }
.brand.centered { justify-content: center; }
.brand-logo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: block; flex: none; object-fit: contain; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-name { line-height: 1.05; color: var(--ink); }
.brand-name b { display: block; font-size: 23px; font-weight: 900; letter-spacing: -.01em; }
.brand-name span { display: block; font-size: 21px; font-weight: 600; }

/* ---------- Botones sticker ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 58px; padding: 0 20px;
  border: 0; border-radius: var(--radius);
  font: 800 18px/1 var(--font); color: #fff; text-decoration: none;
  background: var(--pri);
  box-shadow: 0 4px 0 var(--pri-dark);
  cursor: pointer; transition: transform .08s, box-shadow .08s, filter .15s;
  margin-bottom: 4px;
}
.btn .ico { font-size: 22px; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pri-dark); }
.btn.green { background: var(--sec); box-shadow: 0 4px 0 var(--sec-dark); }
.btn.green:active { box-shadow: 0 1px 0 var(--sec-dark); }
.btn.outline { background: #fff; color: var(--pri); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn[disabled], .btn.is-disabled { background: #e5e9f0; color: #a9b2c3; box-shadow: 0 4px 0 #cfd6e2; cursor: not-allowed; filter: none; transform: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.wa .ico:first-child { font-size: 30px; }
.btn.wa { min-height: 64px; font-size: 19px; }
.btn.wa .two { text-align: left; line-height: 1.1; }
.cta { margin-top: 22px; }

/* ---------- Decoración confeti ---------- */
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; width: 7px; height: 20px; border-radius: 6px; background: #ffc62e; transform: rotate(var(--r, 30deg)); }
.confetti i.b { background: #3a97ff; } .confetti i.g { background: #2fc05a; } .confetti i.p { background: #ff5d8f; } .confetti i.v { background: #8b5cf6; }
.confetti i.pop { animation: pop 1.2s ease-out both; }
@keyframes pop { 0% { opacity: 0; transform: translateY(12px) rotate(var(--r)) scale(.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(var(--r)) scale(1); } }

/* ---------- Mascota ---------- */
.mascot-hero { position: relative; margin: 0 auto; }
.mascot-hero img { margin: 0 auto; width: auto; max-width: 78%; max-height: min(40vh, 330px); filter: drop-shadow(0 12px 18px rgba(15,45,110,.12)); }
.float { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Guía: mascota + burbuja */
.guide { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 8px; margin: 2px -4px 16px; }
.guide-mascot { height: 124px; overflow: hidden; position: relative; }
.guide-mascot img { width: 124px; height: auto; object-fit: cover; object-position: top; }
.guide.flip { grid-template-columns: 1fr 124px; }
.guide.flip .guide-mascot { order: 2; }
.guide.flip .bubble { order: 1; }
.guide.flip .bubble::before { left: auto; right: -9px; border-width: 9px 0 9px 11px; border-color: transparent transparent transparent var(--pri-soft); }
.bubble {
  position: relative; background: var(--pri-soft); color: var(--ink-2);
  border-radius: 18px; padding: 13px 15px; font-size: 15px; line-height: 1.3; font-weight: 700;
}
.bubble::before {
  content: ''; position: absolute; left: -10px; top: 50%; margin-top: -9px;
  border-style: solid; border-width: 9px 11px 9px 0; border-color: transparent var(--pri-soft) transparent transparent;
}
.bubble.pop { animation: bubbleIn .45s .15s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- Tarjetas ---------- */
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.card.shadow { border-color: transparent; box-shadow: 0 8px 28px rgba(15,45,110,.10); }
.card.soft { background: #f6f9fe; border-color: #e7eef8; }

.value-card { display: flex; align-items: center; gap: 14px; margin: -34px 4px 18px; position: relative; z-index: 2; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.value-card .ico { font-size: 40px; color: var(--ink); }

/* ---------- Campos ---------- */
.field-card { display: flex; gap: 14px; align-items: flex-start; }
.field-card > .ico { font-size: 30px; color: var(--pri); margin-top: 2px; }
.field-card .f { flex: 1; min-width: 0; }
.field-card label, .lbl { display: block; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.lbl .opt { color: var(--muted); font-weight: 600; }
.bare-input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: .04em; padding: 2px 0; }
.bare-input::placeholder { color: #b8c2d4; }
.phone-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-top: 6px; }
.phone-input:focus-within, .input-wrap:focus-within, .card.field-card:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(26,111,242,.12); }
.flag-pe { width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px #eee; }
.phone-input .bare-input { font-size: 19px; }

.input-wrap { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.input-wrap > .ico { font-size: 24px; color: var(--muted); }
.input-wrap > .ico.wa { color: var(--sec); font-size: 26px; }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 19px; font-weight: 800; color: var(--ink); background: transparent; }
.input-wrap input::placeholder { color: #b8c2d4; font-weight: 600; }
.input-wrap .clear { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; padding: 0; display: grid; }
.input-wrap.is-error, .card.is-error { border-color: #ff4b4b; }

.text-input, .select-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 16px; font-weight: 700; color: var(--ink); background: #fff; outline: 0; /* 16px: el celular no hace zoom al escribir */
}
.select-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2d6e' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.text-input:focus, .select-input:focus { border-color: var(--pri); }

.secure-note { display: flex; gap: 12px; align-items: center; color: var(--text); font-size: 14px; line-height: 1.3; margin: 16px 4px 0; }
.secure-note .ico { font-size: 22px; color: var(--ink); }

.note-ok { display: flex; gap: 10px; align-items: center; background: var(--sec-soft); color: var(--ink-2); border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-top: 10px; }
.note-ok .ico { color: var(--sec); font-size: 20px; }

.check-legal { display: flex; gap: 12px; align-items: flex-start; margin: 18px 2px 0; font-size: 14px; color: var(--text); line-height: 1.35; cursor: pointer; }
.check-legal input { appearance: none; width: 24px; height: 24px; flex: none; border: 2px solid #c6d0e0; border-radius: 7px; margin: 0; display: grid; place-items: center; cursor: pointer; background: #fff; }
.check-legal input:checked { background: var(--sec); border-color: var(--sec); }
.check-legal input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px,-1px); }
.check-legal a { font-weight: 800; }
.check-legal.is-error input { border-color: #ff4b4b; animation: shake .35s; }

/* ---------- Paso: conoce el colegio ---------- */
.video-card { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/11; background: #0f2d6e; cursor: pointer; }
.video-card > img { width: 100%; height: 100%; object-fit: cover; }
.video-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(5,20,50,.75)); pointer-events: none; }
.video-card .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); z-index: 2; width: 74px; height: 74px; border-radius: 50%; background: rgba(15,25,45,.72); border: 3px solid #fff; color: #fff; display: grid; place-items: center; font-size: 32px; }
.video-card .play .ico { margin-left: 5px; }
.video-card .cap { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2; color: #fff; font-size: 18px; font-weight: 800; line-height: 1.15; }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-sonido { position: absolute; z-index: 5; right: 10px; bottom: 54px; border: 0; border-radius: 99px; padding: 9px 14px; background: rgba(255,255,255,.95); color: #0f2d6e; font: 900 14px var(--font); box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; animation: bubbleIn .4s .6s cubic-bezier(.3,1.6,.5,1) both; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 14px; }
.dots i { width: 7px; height: 7px; border-radius: 9px; background: #cfdcf0; }
.dots i.on { width: 22px; background: var(--pri); }
.thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { border: 0; padding: 0; background: #eef3fa; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1.05; scroll-snap-align: start; cursor: zoom-in; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.propuesta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.propuesta .c { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; font-size: 32px; }
.propuesta .c.b { background: #e4efff; color: #1a6ff2; }
.propuesta .c.v { background: #f1e8ff; color: #8b3fe0; }
.propuesta .c.g { background: #e2f6e8; color: #1fa149; }
.propuesta span { font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.2; display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 99; background: rgba(5,15,40,.9); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 14px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; display: grid; place-items: center; cursor: pointer; }

/* ---------- Paso: descubre más ---------- */
.feature { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; background: #f6f9fe; border-radius: var(--radius); padding: 8px; }
.feature + .feature { margin-top: 12px; }
.feature .ph { border-radius: 12px; overflow: hidden; height: 112px; background: #eaf0f8; }
.feature .ph img { width: 100%; height: 100%; object-fit: cover; }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; background: #8b5cf6; color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 8px; }
.feature b { display: block; font-size: 16px; font-weight: 900; color: var(--ink); }
.feature p { margin: 2px 0 0; font-size: 14px; color: var(--text); line-height: 1.25; }
.feature.star { grid-template-columns: 72px 1fr; padding: 14px 12px; }
.feature.star .ph { height: 64px; width: 64px; border-radius: 50%; background: #ffc62e; display: grid; place-items: center; color: #fff; font-size: 34px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); }

/* ---------- Paso: costos ---------- */
.cost { display: flex; align-items: center; gap: 16px; }
.cost .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; flex: none; }
.cost .ic.gold { background: #fff4d3; color: #eaa300; }
.cost .ic.blue { background: #e4efff; color: var(--pri); }
.cost b { display: block; font-size: 15px; font-weight: 900; color: var(--ink); }
.cost .amt { display: block; font-size: 27px; font-weight: 900; color: var(--pri); line-height: 1.1; letter-spacing: -.01em; }
.cost small { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.includes h4, .dates h4 { margin: 0 0 12px; font-size: 18px; font-weight: 900; color: var(--ink); }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.includes li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); font-weight: 700; }
.includes li .ico { color: var(--sec); font-size: 22px; }
.dates { display: flex; gap: 14px; }
.dates > .ico { font-size: 40px; color: var(--pri); flex: none; }
.dates h4 { margin-bottom: 6px; }
.dates dl { margin: 0; }
.dates dt { font-size: 15px; font-weight: 900; color: var(--ink); margin-top: 6px; }
.dates dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.quote-card { text-align: center; padding: 22px 16px; }
.quote-card .ico { font-size: 40px; color: var(--pri); margin: 0 auto 8px; display: block; }
.quote-card b { font-size: 18px; font-weight: 900; display: block; }
.quote-card p { margin: 6px 0 0; color: var(--text); font-size: 15px; }

/* ---------- Paso: familia ---------- */
.lbl-green { font-size: 16px; font-weight: 900; color: #1f9d3f; margin: 6px 0 12px; }
.lbl-ink { font-size: 17px; font-weight: 900; color: var(--ink); margin: 22px 0 12px; }
.level-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 6px 8px; text-align: center; cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: .15s; }
.tile img { width: 58px; height: 58px; margin: 0 auto 4px; }
.tile span { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.tile.sel { border-color: var(--sec); background: var(--sec-soft); box-shadow: 0 3px 0 #9fdcb1; }
.counts { display: flex; gap: 10px; }
.count { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 19px; font-weight: 900; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.count.sel { background: var(--sec); border-color: var(--sec); color: #fff; box-shadow: 0 3px 0 var(--sec-dark); }
.child { margin-top: 18px; }
.child h4 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.child .grid { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.child .avatar { width: 64px; height: 64px; border-radius: 50%; background: #eef4ff; }
.child .fld { margin-bottom: 10px; }
.child .fld:last-child { margin-bottom: 0; }
.child .fld small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.child .rm { float: right; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.add-child { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #f6f9fe; color: var(--pri); font-size: 15px; font-weight: 800; cursor: pointer; }
.add-child .ico { font-size: 22px; }

/* ---------- Paso: éxito ---------- */
.success { text-align: center; padding-top: 4px; }
.success .mascot-hero img { max-height: min(44vh, 360px); }
.big-check { width: 96px; height: 96px; margin: -52px auto 8px; position: relative; z-index: 3; border-radius: 50%; background: var(--sec); border: 6px solid #fff; box-shadow: 0 8px 22px rgba(34,177,76,.35); display: grid; place-items: center; color: #fff; font-size: 52px; animation: checkIn .6s .2s cubic-bezier(.3,1.6,.5,1) both; }
.big-check .ico { stroke-width: 3.2; }
@keyframes checkIn { from { transform: scale(0); } to { transform: scale(1); } }
.success h2 { font-size: 36px; font-weight: 900; color: #1f9d3f; margin: 6px 0 4px; letter-spacing: -.02em; }
.success .ok-sub { font-size: 19px; font-weight: 900; color: #1f9d3f; line-height: 1.2; margin: 0 0 14px; }
.success .ok-text { font-size: 16px; color: var(--ink-2); line-height: 1.35; margin: 0 8px 22px; }
.thanks { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.thanks .ico { color: #ff2d4f; font-size: 22px; }

/* ---------- Separar vacante ---------- */
.v-welcome { text-align: center; }
.v-welcome .h1 { font-size: 31px; }
.blob-stage { position: relative; margin: 8px -20px -8px; padding: 0 20px 26px; }
.blob-stage::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64%; background: #e6f0ff; border-radius: 50% 50% 0 0 / 38% 38% 0 0; }
.blob-stage img { position: relative; width: auto; max-width: 72%; max-height: min(44vh, 360px); margin: 0 auto; }
.blob-stage .btn { position: relative; margin-top: -8px; }

.level-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 98px; border: 0; border-radius: 18px; padding: 0 18px 0 8px; cursor: pointer; text-align: left; overflow: hidden; box-shadow: 0 3px 0 rgba(15,45,110,.06); transition: transform .1s; }
.level-row + .level-row { margin-top: 14px; }
.level-row img { width: 92px; height: 92px; align-self: flex-end; margin-bottom: -6px; }
.level-row span { flex: 1; font-size: 22px; font-weight: 900; color: var(--ink); }
.level-row .ico { font-size: 26px; color: var(--ink); }
.level-row:active { transform: scale(.98); }
.level-row.inicial { background: #fde8f0; }
.level-row.primaria { background: #e4f6e6; }
.level-row.secundaria { background: #efe9fc; }
.level-row.sel { outline: 3px solid var(--sec); }

.level-pill { display: flex; align-items: center; justify-content: space-between; border-radius: 16px; padding: 0 12px 0 18px; height: 76px; margin-bottom: 22px; overflow: hidden; }
.level-pill span { font-size: 21px; font-weight: 900; color: #1c8a3a; }
.level-pill img { width: 74px; height: 74px; align-self: flex-end; margin-bottom: -6px; }
.level-pill.inicial { background: #fde8f0; } .level-pill.inicial span { color: #c2185b; }
.level-pill.primaria { background: #e4f6e6; }
.level-pill.secundaria { background: #efe9fc; } .level-pill.secundaria span { color: #6b3fd0; }

.grades { display: grid; grid-template-columns: repeat(3, 80px); justify-content: center; gap: 18px 26px; }
.grade { position: relative; width: 80px; height: 80px; border-radius: 50%; border: 2px solid #d5deea; background: #fff; font-size: 25px; font-weight: 900; color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 #d5deea; line-height: 1; transition: .15s; }
.grade small { display: block; font-size: 12px; font-weight: 800; }
.grade.sel { background: var(--sec); border-color: var(--sec); color: #fff; box-shadow: 0 3px 0 var(--sec-dark); animation: bounce .35s; }
.grade.sel::after { content: ''; position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2322b14c'/%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.grade[disabled] { background: #f1f4f8; border-color: #e3e8ef; color: #b3bccb; cursor: not-allowed; box-shadow: none; font-size: 26px; }
.grade[disabled] .ico { font-size: 28px; }
.grades-legend { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; display: flex; gap: 6px; justify-content: center; align-items: center; }
@keyframes bounce { 40% { transform: scale(1.12); } }

.validating { display: flex; gap: 14px; align-items: center; background: #f4f7fc; border-radius: 14px; padding: 14px 16px; margin-top: 14px; font-size: 15px; font-weight: 800; color: var(--ink); }
.validating small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid #e2e6fb; border-top-color: #6f5cf1; border-right-color: #3a8bff; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.found { text-align: center; margin-top: 8px; }
.found .arrow { color: var(--sec); font-size: 24px; margin: 6px auto; display: block; transform: rotate(90deg); }
.found .ok { position: relative; width: 44px; height: 44px; margin: 0 auto 4px; color: var(--sec); font-size: 44px; animation: checkIn .5s cubic-bezier(.3,1.6,.5,1) both; }
.found .ok .confetti { inset: -10px -64px 0; }
.found b { display: block; position: relative; z-index: 1; margin-top: 8px; }
.validating.done .spinner { animation: none; border-color: var(--sec); }
.validating.done .spinner::after { content: ''; display: block; width: 8px; height: 14px; margin: 5px auto 0; border: solid var(--sec); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.found b { font-size: 16px; font-weight: 900; color: var(--ink); }
.result-card { background: var(--sec-soft); border-radius: 14px; padding: 12px 16px; margin-top: 10px; text-align: left; }
.result-card small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.result-card strong { font-size: 17px; font-weight: 900; color: var(--ink); }
.manual { background: #fff7e8; border: 1.5px solid #ffe0a6; border-radius: 14px; padding: 14px; margin-top: 14px; }
.manual p { margin: 0 0 10px; font-size: 14px; color: #8a5a00; font-weight: 700; }
.manual .text-input + .text-input { margin-top: 8px; }

.summary h4 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.sum-row { display: flex; gap: 12px; align-items: center; padding: 7px 0; }
.sum-row > .ico { font-size: 22px; color: var(--pri); }
.sum-row small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.sum-row strong { font-size: 15px; font-weight: 900; color: var(--ink); }
.sum-row.state { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.sum-row.state .ico { color: var(--sec); }
.pill { display: inline-block; background: var(--sec-soft); color: #1c8a3a; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 800; margin-left: auto; }
.ready { display: flex; gap: 14px; align-items: center; background: #eef9f1; border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.ready .rk { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg,#3a8bff,#1a6ff2); color: #fff; display: grid; place-items: center; font-size: 30px; flex: none; transform: rotate(-8deg); }
.ready b { font-size: 16px; font-weight: 900; display: block; }
.ready p { margin: 2px 0 0; font-size: 14px; color: var(--text); line-height: 1.3; }

/* ---------- Landing (elige opción) ---------- */
.landing { text-align: center; padding-top: 10px; }
.landing .mascot-hero img { max-height: min(36vh, 300px); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.choice .btn { min-height: 78px; font-size: 16px; line-height: 1.15; flex-direction: column; gap: 4px; padding: 10px 8px; text-align: center; }
.choice .btn .ico { font-size: 24px; }
.choice .btn .ico:last-child { display: none; }
.proof { display: flex; align-items: center; gap: 12px; text-align: left; margin: -26px 4px 18px; position: relative; z-index: 2; }
.proof .ico { font-size: 38px; color: var(--ink); }
.footer-links { text-align: center; font-size: 13px; color: var(--muted); padding: 10px 20px 26px; }
.footer-links a { color: var(--muted); }

/* ---------- Toast de error ---------- */
.toast { visibility: hidden; position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 100; width: min(400px, calc(100% - 32px)); background: #ffdfe0; color: #c62828; border: 2px solid #ffc1c1; border-radius: 16px; padding: 14px 16px; font-weight: 800; font-size: 15px; display: flex; gap: 10px; align-items: center; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.toast.show { visibility: visible; transform: translate(-50%, 0); }
.toast .ico { font-size: 22px; }
@keyframes shake { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
.shake { animation: shake .35s; }

/* ---------- Páginas simples (privacidad / mantenimiento) ---------- */
.page { padding: 24px 22px 40px; }
.page h2 { font-size: 24px; font-weight: 900; }
.page h3 { font-size: 17px; font-weight: 900; margin-top: 22px; }
.page p, .page li { color: var(--text); line-height: 1.5; font-size: 15px; }

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
  .h1 { font-size: 26px; } .h1.xl { font-size: 30px; }
  .grades { grid-template-columns: repeat(3, 70px); gap: 16px 18px; }
  .grade { width: 70px; height: 70px; }
  .guide { grid-template-columns: 104px 1fr; } .guide-mascot, .guide-mascot img { width: 104px; height: 108px; }
  .feature { grid-template-columns: 90px 1fr; }
}

/* Saludo personalizado (nombre validado en RENIEC) */
.hello-chip { display: inline-block; background: var(--sec-soft); color: #1c8a3a; border-radius: 99px; padding: 6px 14px; font-size: 15px; font-weight: 800; margin: 4px 0 0; animation: bubbleIn .45s .1s cubic-bezier(.3,1.6,.5,1) both; }
.hello-chip b { font-weight: 900; }
.manual { margin-top: 14px; }

/* =====================================================================
   v9 — Video propio o de YouTube · «Descubre» con descripción animada · Jesús en costos
   ===================================================================== */
/* Video: al reproducir desaparecen la portada, el botón de play, el título y el degradado */
.video-card.has-video .play { transition: transform .2s, opacity .2s; }
.video-card.has-video .play::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); animation: pulsoPlay 1.8s ease-out infinite; }
.video-card.has-video:hover .play { transform: translate(-50%,-50%) scale(1.07); }
@keyframes pulsoPlay { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.video-card.is-playing { cursor: default; background: #000; }
.video-card.is-playing > img, .video-card.is-playing .play, .video-card.is-playing .cap { opacity: 0; visibility: hidden; pointer-events: none; }
.video-card.is-playing::after { opacity: 0; }
.video-card::after { transition: opacity .25s; }
.video-card > img, .video-card .cap { transition: opacity .25s, visibility .25s; }
.video-card iframe, .video-card video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; object-fit: contain; animation: videoIn .35s ease; }
@keyframes videoIn { from { opacity: 0; } to { opacity: 1; } }
.video-x { position: absolute; top: 10px; right: 10px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: none; place-items: center; font-size: 18px; cursor: pointer; }
.video-card.is-playing .video-x { display: grid; }

/* «Descubre»: tarjetas tocables */
.feature[data-oferta] { position: relative; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.feature[data-oferta]:hover { background: #eef4ff; box-shadow: 0 6px 18px rgba(15,45,110,.08); }
.feature[data-oferta]:active { transform: scale(.97); }
.feature[data-oferta]:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.feature-mas { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--pri); display: grid; place-items: center; font-size: 16px; box-shadow: 0 2px 0 #dce6f5; animation: latido 2.4s ease-in-out infinite; }
.feature:nth-of-type(2) .feature-mas { animation-delay: .3s; } .feature:nth-of-type(3) .feature-mas { animation-delay: .6s; } .feature:nth-of-type(4) .feature-mas { animation-delay: .9s; }
@keyframes latido { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } 90% { transform: scale(.95); } }
.oferta-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13.5px; font-weight: 800; color: var(--text); }
.oferta-hint .ico { color: #ffc62e; animation: girito 3s linear infinite; }
@keyframes girito { to { transform: rotate(360deg); } }

/* Ventana animada de la oferta */
body.no-scroll { overflow: hidden; }
.oferta-sheet { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-end; justify-content: center; }
.oferta-sheet.open { display: flex; }
.os-fondo { position: absolute; inset: 0; background: rgba(8,20,50,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeOs .25s ease; }
@keyframes fadeOs { from { opacity: 0; } }
.os-card { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow: hidden auto; background: #fff; border-radius: 28px 28px 0 0; padding: 0 0 calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); --tono: #1a6ff2; --tono-suave: #eaf2ff; animation: subeOs .5s cubic-bezier(.2,1.35,.4,1); }
@keyframes subeOs { from { transform: translateY(100%); } }
.oferta-sheet.saliendo .os-card { animation: bajaOs .26s ease-in forwards; }
.oferta-sheet.saliendo .os-fondo { animation: fadeOs .26s reverse forwards; }
@keyframes bajaOs { to { transform: translateY(100%); } }
@media (min-width: 600px) { .oferta-sheet { align-items: center; } .os-card { border-radius: 28px; } }
.os-card.t-azul { --tono: #1a6ff2; --tono-suave: #eaf2ff; } .os-card.t-morado { --tono: #8b5cf6; --tono-suave: #f1e8ff; }
.os-card.t-rosa { --tono: #ff5d8f; --tono-suave: #ffe9f0; } .os-card.t-dorado { --tono: #f5a300; --tono-suave: #fff4d3; }
.os-card.t-verde { --tono: #22b14c; --tono-suave: #e2f6e8; } .os-card.t-celeste { --tono: #1cb0f6; --tono-suave: #ddf4ff; }
.os-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.os-media { position: relative; height: 230px; overflow: hidden; background: var(--tono-suave); display: grid; place-items: center; }
.os-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.os-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.18) translateY(6px); } to { transform: scale(1.02); } }
.os-grande { width: 130px; height: 130px; border-radius: 50%; background: var(--tono); color: #fff; display: grid; place-items: center; font-size: 66px; box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), 0 0 0 16px color-mix(in srgb, var(--tono) 16%, transparent); animation: rebote .8s cubic-bezier(.3,1.7,.5,1); }
.os-body { position: relative; padding: 0 24px; margin-top: -34px; text-align: center; }
.os-ic { position: relative; z-index: 2; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 20px; background: var(--tono); color: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: 0 6px 0 color-mix(in srgb, var(--tono) 70%, #000 30%), 0 10px 24px rgba(0,0,0,.15); }
.os-body h3 { font-size: 26px; font-weight: 900; color: var(--ink); margin: 0 0 4px; line-height: 1.1; }
.os-sub { margin: 0 0 12px; font-weight: 800; color: var(--tono); font-size: 15px; }
.os-desc { margin: 0 auto; font-size: 16px; line-height: 1.5; color: var(--text); font-weight: 600; max-width: 380px; }
.os-burst { position: absolute; left: 50%; top: 226px; width: 0; height: 0; z-index: 3; pointer-events: none; }
.os-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 14px; border-radius: 3px; opacity: 0; }
.os-card.anim .os-burst i { animation: chispa .9s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes chispa { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
.os-card.anim .os-ic { animation: rebote .7s cubic-bezier(.3,1.8,.5,1) .15s both, meneo 2.8s ease-in-out 1s infinite; }
.os-card.anim .os-body h3 { animation: subeTxt .45s ease .25s both; }
.os-card.anim .os-sub { animation: subeTxt .45s ease .33s both; }
.os-card.anim .os-desc { animation: subeTxt .5s ease .42s both; }
.os-card.anim .os-ok { animation: subeTxt .5s ease .55s both; }
@keyframes rebote { from { transform: scale(0) rotate(-25deg); } to { transform: scale(1) rotate(0); } }
@keyframes meneo { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes subeTxt { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.os-card.desde-der .os-body { animation: deDerecha .4s ease; } .os-card.desde-izq .os-body { animation: deIzquierda .4s ease; }
@keyframes deDerecha { from { opacity: 0; transform: translateX(40px); } } @keyframes deIzquierda { from { opacity: 0; transform: translateX(-40px); } }
.os-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 12px; }
.os-flecha { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #e3eaf5; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.os-flecha:active { transform: scale(.92); }
.os-dots { display: flex; gap: 6px; }
.os-dots i { width: 8px; height: 8px; border-radius: 8px; background: #d4def0; transition: width .25s, background .25s; }
.os-dots i.on { width: 22px; background: var(--tono); }
.os-ok { display: flex; width: calc(100% - 48px); margin: 0 auto; background: var(--tono); box-shadow: 0 5px 0 color-mix(in srgb, var(--tono) 70%, #000 30%); }
.os-ok .ico { animation: latido 1.6s ease-in-out infinite; }

/* Costos: Jesús en la esquina */
.step-costos { position: relative; }
.step-costos .h1, .step-costos > .lead { padding-right: 92px; }
.costos-mascota { position: absolute; top: -6px; right: 6px; width: 96px; height: auto; pointer-events: none; transform-origin: bottom center; filter: drop-shadow(0 6px 10px rgba(15,45,110,.15)); }
.step-costos.is-active .costos-mascota { animation: asomaJesus .7s cubic-bezier(.3,1.5,.5,1) .15s both, flotaJesus 3.2s ease-in-out 1s infinite; }
@keyframes asomaJesus { from { opacity: 0; transform: translate(40px, 10px) rotate(12deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes flotaJesus { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }
@media (max-width: 360px) { .costos-mascota { width: 78px; } .step-costos .h1, .step-costos > .lead { padding-right: 74px; } }
@media (prefers-reduced-motion: reduce) {
  .os-card, .os-card.anim *, .costos-mascota, .feature-mas, .oferta-hint .ico, .video-card .play::before, .os-media img { animation: none !important; }
}

/* ---------------- v17 · Solicitar información por la red: cifras, país, ciudad, colegios, niveles ---------------- */
.red-banda { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.red-cifra { border-radius: 18px; padding: 14px 12px 12px; color: #fff; display: grid; gap: 2px; align-content: start; box-shadow: 0 4px 0 rgba(0,0,0,.12); animation: bubbleIn .5s var(--d, 0s) cubic-bezier(.3,1.5,.5,1) both; }
.red-cifra .rc-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.22); display: grid; place-items: center; margin-bottom: 6px; }
.red-cifra .rc-ic .ico { font-size: 28px; }
.red-cifra b { font-size: 21px; font-weight: 900; line-height: 1.05; letter-spacing: -.01em; }
.red-cifra small { font-size: 13px; font-weight: 700; line-height: 1.25; opacity: .95; }
.red-cifra.t-azul { background: linear-gradient(145deg, #0b3f9e, #1a6ff2); }
.red-cifra.t-verde { background: linear-gradient(145deg, #117a3a, #22b14c); }
.red-cifra.t-dorado { background: linear-gradient(145deg, #b77900, #f0a500); }
.red-cifra.t-celeste { background: linear-gradient(145deg, #0a7ea4, #1cb0f6); }
.pais-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pais { border: 2px solid var(--line); border-radius: 18px; background: #fff; padding: 16px 10px; display: grid; justify-items: center; gap: 8px; cursor: pointer; box-shadow: 0 4px 0 var(--line); font-size: 17px; color: var(--ink); transition: .15s; }
.pais:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.pais.sel { border-color: var(--pri); background: var(--pri-soft); box-shadow: 0 4px 0 #9cc1ff; }
.pais b { font-weight: 900; }
.pais-flag, .ciudad-flag.pe { display: inline-flex; width: 58px; height: 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); }
.pais-flag.pe i, .ciudad-flag.pe i { flex: 1; background: #d91023; }
.pais-flag.pe i:nth-child(2), .ciudad-flag.pe i:nth-child(2) { background: #fff; }
.pais-flag.mundo { background: var(--pri-soft); color: var(--pri); display: grid; place-items: center; }
.pais-flag.mundo .ico { font-size: 24px; }
.aviso-pais { position: fixed; inset: 0; background: rgba(15,45,110,.45); display: grid; place-items: center; z-index: 90; padding: 24px; }
.aviso-pais .ap-card { background: #fff; border-radius: 22px; padding: 22px 20px 26px; text-align: center; max-width: 330px; position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; }
.aviso-pais.entra .ap-card { animation: bubbleIn .4s cubic-bezier(.3,1.5,.5,1) both; }
.aviso-pais.sale { opacity: 0; transition: opacity .25s; }
.aviso-pais b { font-size: 20px; font-weight: 900; color: var(--ink); }
.aviso-pais p { margin: 0; color: var(--text); }
.aviso-pais .ap-barra { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--pri); width: 100%; animation: apBarra 3s linear both; }
@keyframes apBarra { from { width: 100%; } to { width: 0; } }
.ciudad-buscar { margin-bottom: 12px; }
.ciudades { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ciudad { border: 2px solid var(--line); border-radius: 16px; background: #fff; padding: 12px 8px 10px; display: grid; justify-items: center; gap: 4px; cursor: pointer; box-shadow: 0 3px 0 var(--line); color: var(--ink); text-align: center; }
.ciudad:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.ciudad img.ciudad-flag { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1.5px var(--line); }
.ciudad .ciudad-flag.pe { width: 64px; height: 44px; }
.ciudad b { font-size: 16px; font-weight: 900; }
.ciudad small { font-size: 12px; color: var(--muted); font-weight: 700; }
.colegios-top { display: flex; gap: 12px; align-items: center; }
.colegios-top img { flex: none; }
.aqui-futuro { background: linear-gradient(90deg, #fff6d6, #eaf9ef); border-radius: 16px; padding: 12px 14px; font-weight: 800; color: #7a5a00; margin: 12px 0 14px; animation: bubbleIn .5s .15s cubic-bezier(.3,1.5,.5,1) both; }
.colegio { width: 100%; border: 2px solid var(--line); border-radius: 18px; background: #fff; padding: 12px; display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--line); text-align: left; color: var(--ink); margin-bottom: 12px; animation: slideIn .4s var(--d, 0s) both; }
.colegio:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.colegio img, .colegio-ini { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: var(--pri-soft); display: grid; place-items: center; font-weight: 900; font-size: 24px; color: var(--pri); }
.colegio b { display: block; font-size: 16px; font-weight: 900; line-height: 1.2; }
.colegio small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.colegio-niv { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.colegio-niv i { font-style: normal; font-size: 11px; font-weight: 800; background: var(--sec-soft); color: #1c8a3a; border-radius: 99px; padding: 2px 8px; }
.colegio-go { font-weight: 900; color: var(--pri); font-size: 14px; white-space: nowrap; }
.colegio.is-loading { opacity: .6; pointer-events: none; }
.nivel-tabs { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; }
.nivel-tabs button { flex: 1; min-width: 96px; border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 6px 8px; display: flex; align-items: center; gap: 6px; justify-content: center; font-weight: 900; color: var(--ink-2); cursor: pointer; font-size: 14px; box-shadow: 0 3px 0 var(--line); }
.nivel-tabs button img { width: 28px; height: 28px; }
.nivel-tabs button.on { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); box-shadow: 0 3px 0 #9cc1ff; }
.nivel-panel { animation: slideIn .35s both; }
.nivel-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; margin-bottom: 12px; border-radius: 14px; }
.nivel-mini.is-error { box-shadow: 0 0 0 2px #ff4b4b; }
.nivel-mini button { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 6px 4px; display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.nivel-mini button img { width: 40px; height: 40px; }
.nivel-mini button.sel { border-color: var(--sec); background: var(--sec-soft); color: #1c8a3a; box-shadow: 0 2px 0 #9fdcb1; }
.child .avatar-mini { width: 34px; height: 34px; border-radius: 50%; background: #eef4ff; display: inline-block; vertical-align: middle; margin-right: 8px; }
.child .fld { margin-bottom: 10px; }
.text-input.is-error, .select-input.is-error { border-color: #ff4b4b; }
@media (max-width: 360px) { .red-cifra b { font-size: 18px; } .choice .btn { font-size: 15px; } }

.secciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.seccion { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 6px; display: grid; gap: 2px; justify-items: center; cursor: pointer; box-shadow: 0 3px 0 var(--line); color: var(--ink); }
.seccion b { font-size: 18px; font-weight: 900; } .seccion small { font-size: 12px; color: var(--muted); font-weight: 700; }
.seccion.sel { border-color: var(--sec); background: var(--sec-soft); box-shadow: 0 3px 0 #9fdcb1; }


/* ===== v19 — Tarjetas de colegios (paso 3): coloridas, animadas y fáciles de tocar ===== */
.col2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .col2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 330px) { .col2-grid { grid-template-columns: 1fr; } }
.col2 { --c1: #1a4c9c; --c2: #3f7fe0; --tx: #fff;
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid #e3eaf5; border-radius: 22px; background: #fff; color: var(--ink); font: inherit;
  box-shadow: 0 5px 0 #dfe7f3, 0 10px 24px rgba(20, 60, 130, .08);
  animation: col2In .55s var(--d, 0s) cubic-bezier(.2, 1.4, .4, 1) both; transition: transform .18s, box-shadow .18s, border-color .18s; }
.col2.t-verde { --c1: #1f8a45; --c2: #4cc36f; }
.col2.t-dorado { --c1: #d18b00; --c2: #ffc933; }
.col2.t-celeste { --c1: #137fb8; --c2: #3fc0ef; }
.col2[hidden] { display: none; }
.col2:hover { transform: translateY(-4px); border-color: var(--c2); box-shadow: 0 9px 0 #dfe7f3, 0 18px 34px rgba(20, 60, 130, .14); }
.col2:active { transform: translateY(3px) scale(.99); box-shadow: 0 2px 0 #dfe7f3; }
.col2::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-120%); pointer-events: none; }
.col2:hover::after, .col2.is-picked::after { animation: col2Brillo .9s ease; }
.col2-top { position: relative; height: 62px; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.col2-top::before, .col2-top::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.16); }
.col2-top::before { width: 90px; height: 90px; right: -22px; top: -38px; }
.col2-top::after { width: 44px; height: 44px; left: 42%; bottom: -26px; background: rgba(255,255,255,.12); }
.col2-logo { position: absolute; left: 12px; bottom: -22px; width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.14); z-index: 1; animation: col2Flota 4s ease-in-out infinite; animation-delay: calc(var(--d, 0s) * 2); }
.col2-top { overflow: visible; }
.col2-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.col2-logo b { font-size: 26px; font-weight: 900; background: linear-gradient(135deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.col2-badge { position: absolute; right: 10px; top: 10px; background: #fff; color: var(--c1); font-size: 11px; font-weight: 900; border-radius: 999px; padding: 3px 9px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.col2-body { display: flex; flex-direction: column; gap: 6px; padding: 30px 12px 10px; flex: 1; }
.col2-name { font-size: 15px; font-weight: 900; line-height: 1.2; color: #14224a; }
.col2-addr { display: flex; gap: 4px; align-items: flex-start; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.col2-addr svg { width: 13px; height: 13px; flex: none; margin-top: 1px; color: var(--c1); }
.col2-addr span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col2-niv { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.col2-niv i { font-style: normal; font-size: 10.5px; font-weight: 800; background: #eef4ff; color: var(--c1); border-radius: 99px; padding: 2px 7px; }
.col2-cta { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 10px 12px; padding: 9px 10px; border-radius: 14px; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.col2-cta i { font-style: normal; display: inline-block; animation: col2Flecha 1.4s ease-in-out infinite; }
.col2.is-actual { border-color: var(--c2); box-shadow: 0 5px 0 var(--c2), 0 12px 28px rgba(20,60,130,.16); }
.col2.is-picked { animation: col2Pick .35s ease both; }
.col2.is-loading .col2-cta span::after { content: '…'; }
.col2.is-loading { pointer-events: none; }
.col2-buscar { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 16px; padding: 4px 12px; margin: 0 0 12px; background: #fff; }
.col2-buscar[hidden] { display: none; }
.col2-buscar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.col2-buscar input { border: 0; outline: 0; flex: 1; font: inherit; font-weight: 700; padding: 8px 0; background: transparent; min-width: 0; }
.col2-vacio { text-align: center; color: var(--muted); font-weight: 700; margin: 14px 0; }
@keyframes col2In { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes col2Brillo { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes col2Flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes col2Flecha { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes col2Pick { 0% { transform: scale(1); } 45% { transform: scale(.96); } 100% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .col2, .col2-logo, .col2-cta i, .col2::after { animation: none !important; } }

/* ===== v22 — Globo 3D «Nuestra presencia en el mundo» (paso 1) ===== */
.presencia-mundial { margin: 18px 0 4px; }
.globo { position: relative; height: clamp(320px, 92vw, 420px); border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 45%, #123a86 0%, #0a2356 55%, #071a40 100%); box-shadow: 0 6px 0 #0a2a66, 0 14px 30px rgba(10, 40, 100, .22); }
.globo-lienzo { position: absolute; inset: 0; touch-action: pan-y; }
.globo.explorando .globo-lienzo { touch-action: none; }
.globo-lienzo canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; opacity: 0; transition: opacity .8s ease; }
.globo.listo .globo-lienzo canvas { opacity: 1; }
.globo-lienzo canvas:active { cursor: grabbing; }
.globo-cab { position: absolute; left: 14px; top: 12px; z-index: 2; color: #fff; pointer-events: none; max-width: 60%; text-shadow: 0 2px 6px rgba(4, 20, 60, .7); }
.globo-cab b { display: block; font-size: 15px; font-weight: 900; line-height: 1.2; }
.globo-cab span { font-size: 12px; font-weight: 700; opacity: .85; }
.globo-btn { position: absolute; top: 12px; z-index: 3; border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer;
  background: #fff; color: #0b3f9e; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .15s; }
.globo-btn:active { transform: translateY(2px); }
.globo-peru { right: 12px; }
.globo-mundo { right: 12px; background: #ffd43b; color: #5a4100; }
.globo-btn[hidden] { display: none; }
.globo-ayuda { text-shadow: 0 1px 4px rgba(4, 20, 60, .8); position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; margin: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 800; pointer-events: none; }
.globo.explorando .globo-ayuda { color: #ffd43b; }
.globo-rueda { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 3; margin: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .25s; white-space: nowrap; }
.globo.pista-rueda .globo-rueda { opacity: 1; }
.globo-carga { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: #cfe0ff; font-weight: 800; font-size: 13px; z-index: 1; }
.globo-carga p { margin: 0; }
.globo-carga[hidden] { display: none; }
.globo-spin { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3f7fe0, #0d3b8e 70%); box-shadow: 0 0 24px rgba(120, 180, 255, .45); position: relative; overflow: hidden; }
.globo-spin::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255, 255, 255, .18) 10px 12px); animation: globoGira 2.4s linear infinite; }
@keyframes globoGira { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
.globo-card { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; max-height: 62%; overflow: auto; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: globoSube .28s cubic-bezier(.2, 1.2, .4, 1) both; }
.globo-card[hidden] { display: none; }
@keyframes globoSube { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.globo-card > b { display: block; font-size: 16px; font-weight: 900; color: #0b3f9e; line-height: 1.25; padding-right: 26px; }
.globo-card p { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-2, #3c4b64); }
.gc-x { position: absolute; right: 8px; top: 6px; border: 0; background: #eef3fb; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; font-weight: 900; color: #5a6b85; cursor: pointer; line-height: 1; }
.gc-kick { display: block; font-size: 11px; font-weight: 900; color: #b47b00; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; padding-right: 30px; }
.gc-flag { font-size: 28px; line-height: 1; display: block; margin-bottom: 2px; }
.gc-num { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-num span { background: #eef4ff; border-radius: 10px; padding: 4px 9px; font-size: 12.5px; } .gc-num b { color: #0b3f9e; }
.gc-fuente { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.gc-btn { display: inline-block; margin-top: 10px; border: 0; border-radius: 12px; padding: 9px 14px; background: #1a73e8; color: #fff; font: inherit; font-weight: 900; font-size: 13px; cursor: pointer; box-shadow: 0 3px 0 #0f52b8; text-decoration: none; }
.gc-btn.sm { margin-top: 6px; padding: 6px 11px; font-size: 12px; }
.gc-lista { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.gc-lista li { border: 2px solid #e6edf8; border-radius: 12px; padding: 8px 10px; }
.gc-lista li > b { display: block; font-size: 14px; color: var(--ink); }
.gc-niv { display: block; font-size: 11.5px; font-weight: 800; color: #1c8a3a; }
@media (prefers-reduced-motion: reduce) { .globo-spin::after, .globo-card { animation: none; } .globo-lienzo canvas { transition: none; } }

/* ---- v24: estudiante actual (rectificación de matrícula) en «Separar vacante» ---- */
.ya-estudia { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 14px 16px; border: 2px dashed #9cc0fb; border-radius: 18px; background: var(--pri-soft); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.ya-estudia > .ico:first-child { font-size: 30px; color: var(--pri); flex: none; }
.ya-estudia span { flex: 1; }
.ya-estudia b { display: block; font-size: 17px; font-weight: 900; }
.ya-estudia small { display: block; color: var(--text); font-weight: 700; font-size: 13px; line-height: 1.3; margin-top: 2px; }
.ya-estudia.sm { margin-top: 12px; padding: 10px 14px; }
.ya-estudia.sm b { font-size: 15px; }
.ya-estudia:active { transform: scale(.98); }
.mis-hijos { margin: 0 0 16px; }
.mis-hijos > div { display: flex; flex-wrap: wrap; gap: 8px; }
.hijo-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--line); cursor: pointer; font: inherit; text-align: left; }
.hijo-chip b { font-size: 16px; color: var(--ink); }
.hijo-chip small { font-size: 12.5px; font-weight: 700; color: var(--text); }
.hijo-chip.sel { border-color: var(--pri); box-shadow: 0 3px 0 var(--pri-dark); background: var(--pri-soft); }
.rec-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--sec-soft); border: 2px solid #9fdfb3; animation: recIn .35s ease-out; }
.rec-card.egresa { display: block; background: #fff7df; border-color: #f3d27a; }
.rec-card b { color: var(--ink); font-size: 16px; font-weight: 900; }
.rec-card p { margin: 6px 0 0; font-size: 14px; color: var(--text); line-height: 1.35; }
.rec-ok { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sec); color: #fff; font-weight: 900; font-size: 18px; }
.rec-grados { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rec-grados span { display: inline-flex; flex-direction: column; background: #fff; border-radius: 12px; padding: 6px 10px; font-weight: 900; color: var(--ink); font-size: 14px; }
.rec-grados span small { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.rec-grados span.pasa { background: var(--sec); color: #fff; }
.rec-grados span.pasa small { color: rgba(255,255,255,.85); }
.rec-grados i { font-style: normal; font-weight: 900; color: var(--sec-dark); font-size: 18px; }
@keyframes recIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rec-card { animation: none; } }

/* ---- v28: turno mañana / tarde ---- */
.turno-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 14px; }
.turno-mini.is-error { box-shadow: 0 0 0 2px #ff4b4b; }
.turno-mini button { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 6px; display: grid; justify-items: center; gap: 2px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.turno-mini button small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.turno-mini button.sel { border-color: var(--sec); background: var(--sec-soft); color: #1c8a3a; box-shadow: 0 2px 0 #9fdcb1; }
.seccion small.tu { display: block; font-size: 11px; font-weight: 800; color: var(--muted); }
.ya-estudia.info { cursor: default; border-style: solid; border-color: #e3e8f2; background: #f7f9fc; } .ya-estudia.info > .ico:first-child { color: #8a96ad; }

/* ============ v45 · «Ver salón»: la familia ve el salón y separa su lugar ============ */
html.sd-abierto { overflow: hidden; }
.salon-dlg { border: 0; padding: 0; width: min(520px, calc(100% - 20px)); max-height: min(92vh, 860px); border-radius: 28px; background: transparent; overflow: visible; color: var(--ink); }
.salon-dlg::backdrop { background: rgba(10, 30, 80, .5); backdrop-filter: blur(3px); }
.salon-dlg[open] { animation: sd-entra .26s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes sd-entra { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.sd-in { position: relative; display: flex; flex-direction: column; max-height: inherit; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(10, 30, 80, .35); }
.sd-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.sd-x .ico { font-size: 18px; }
.sd-hola { display: grid; grid-template-columns: 104px 1fr; align-items: end; gap: 8px; padding: 16px 16px 0 10px; background: radial-gradient(circle at 15% 0%, #e3eeff 0, transparent 60%), linear-gradient(180deg, var(--pri-soft), #fff); }
.sd-masc { width: 108px; height: auto; margin-bottom: -6px; filter: drop-shadow(0 8px 12px rgba(15, 45, 110, .18)); animation: sd-flota 4s ease-in-out infinite; }
@keyframes sd-flota { 50% { transform: translateY(-5px); } }
.sd-burbuja { position: relative; align-self: center; margin: 0 34px 10px 0; padding: 12px 14px; background: #fff; border: 2px solid #d9e6fb; border-radius: 18px; box-shadow: 0 6px 16px rgba(15, 45, 110, .08); }
.sd-burbuja::before { content: ''; position: absolute; left: -10px; bottom: 16px; width: 16px; height: 16px; background: #fff; border-left: 2px solid #d9e6fb; border-bottom: 2px solid #d9e6fb; transform: rotate(45deg); border-radius: 0 0 0 4px; }
.sd-burbuja b { display: block; font-size: 19px; font-weight: 900; line-height: 1.2; }
.sd-burbuja p { margin: 4px 0 0; font-size: 14.5px; color: var(--text); font-weight: 700; line-height: 1.35; }
.sd-hijos { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 16px 0; }
.sd-hijos span { padding: 5px 10px; border-radius: 999px; background: #f1f5fb; color: var(--muted); font-size: 13px; font-weight: 800; }
.sd-hijos span.on { background: var(--pri); color: #fff; }
.sd-hijos span.ok { background: var(--sec-soft); color: var(--sec-dark); }
.sd-cuerpo { padding: 12px 16px 4px; overflow-y: auto; overscroll-behavior: contain; }
.sd-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.sd-tabs button { flex: none; display: grid; justify-items: start; gap: 1px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: 900 16px var(--font); cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.sd-tabs button small { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.sd-tabs button.on { border-color: var(--pri); background: var(--pri-soft); box-shadow: 0 3px 0 var(--pri); }
.sd-tabs button.lleno small { color: #c2410c; }
.sd-salon { margin-top: 8px; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #f7fbff, #eef5ff); border: 2px solid #dfeafb; }
.sd-pizarra { height: 30px; margin: 0 16% 14px; border-radius: 8px; background: linear-gradient(180deg, #2f7d5b, #24664a); border: 4px solid #c98d4b; display: grid; place-items: center; }
.sd-pizarra span { color: rgba(255,255,255,.85); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sd-lugares { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px 8px; }
.sd-lugar { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: center; align-content: center; gap: 0; border-radius: 14px 14px 10px 10px; border: 2px solid; font: 900 13px var(--font); cursor: default; padding: 0; transition: transform .12s, box-shadow .12s; }
.sd-lugar .ico-l { font-size: 22px; line-height: 1; }
.sd-lugar small { font-size: 10.5px; font-weight: 900; opacity: .8; }
.sd-lugar.o { background: #e7f6ec; border-color: #b9e3c7; color: #2f7a46; }
.sd-lugar.l { background: #fff; border-color: #9cc0fb; border-style: dashed; color: var(--pri); cursor: pointer; box-shadow: 0 3px 0 #cfe0fb; animation: sd-libre 2.6s ease-in-out infinite; }
.sd-lugar.l:hover, .sd-lugar.l:focus-visible { transform: translateY(-3px); background: var(--pri-soft); outline: none; }
@keyframes sd-libre { 50% { box-shadow: 0 3px 0 #cfe0fb, 0 0 0 4px rgba(26, 111, 242, .12); } }
.sd-lugar.sel { background: var(--pri); border: 2px solid var(--pri-dark); color: #fff; animation: none; transform: translateY(-3px) scale(1.04); box-shadow: 0 6px 14px rgba(26, 111, 242, .35); }
.sd-lugar.m { background: linear-gradient(180deg, #ffe680, #ffd23f); border-color: #e6b800; color: #6b4e00; animation: none; }
.sd-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 12px 0 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.sd-leyenda i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 2px solid; }
.sd-leyenda i.o { background: #e7f6ec; border-color: #b9e3c7; }
.sd-leyenda i.l { background: #fff; border-color: #9cc0fb; border-style: dashed; }
.sd-leyenda i.m { background: #ffd23f; border-color: #e6b800; }
.sd-msg { margin: 8px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--pri-soft); color: var(--ink-2); font-weight: 800; line-height: 1.4; text-align: center; }
.sd-msg.ok { background: var(--sec-soft); color: var(--sec-dark); }
.sd-msg.aviso { background: #fff7e6; color: #8a5a00; }
.sd-pie { padding: 12px 16px 16px; display: grid; gap: 6px; background: linear-gradient(0deg, #fff 70%, rgba(255,255,255,0)); }
.sd-link { border: 0; background: none; color: var(--muted); font: 800 14px var(--font); text-decoration: underline; cursor: pointer; padding: 6px; }
.salon-dlg.listo .sd-cuerpo { display: none; }
.salon-dlg.cargando .sd-lugares { opacity: .4; pointer-events: none; }
@media (max-width: 520px) {
  .salon-dlg { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 94vh; border-radius: 26px 26px 0 0; }
  .sd-in { border-radius: 26px 26px 0 0; }
  .salon-dlg[open] { animation: sd-sube .28s cubic-bezier(.2, .9, .3, 1); }
  .sd-hola { grid-template-columns: 88px 1fr; }
  .sd-masc { width: 92px; }
  .sd-lugares { grid-template-columns: repeat(5, 1fr); }
}
@keyframes sd-sube { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .sd-masc, .sd-lugar.l { animation: none; } .salon-dlg[open] { animation: none; } }

/* Resumen: fila «Salón» con su botón */
.sum-row.salon-row { align-items: center; }
.sum-row.salon-row .btn-salon { margin-left: auto; flex: none; border: 2px solid var(--pri); background: var(--pri-soft); color: var(--pri); font: 900 13.5px var(--font); border-radius: 12px; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sum-row.salon-row.falta .btn-salon { animation: sd-latido 1.6s ease-in-out infinite; }
@keyframes sd-latido { 50% { box-shadow: 0 0 0 5px rgba(26, 111, 242, .18); } }
/* Éxito de «Solicitar información»: dos botones */
.success .ok-btns { display: grid; gap: 10px; width: 100%; }
.success .btn.sep-ahora { background: var(--pri); box-shadow: 0 4px 0 var(--pri-dark); }
.success .sep-hechas { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: #fffbea; border: 2px solid #ffe7a0; color: #6b4e00; font-weight: 800; font-size: 14px; text-align: left; }
.success .sep-hechas li { margin: 2px 0; }
.sd-burbuja p b { display: inline; font-size: inherit; font-weight: 900; color: var(--ink); }
.sd-burbuja { margin-right: 44px; }
.sd-tabs { position: sticky; top: -12px; z-index: 2; background: #fff; padding-top: 6px; margin-top: -6px; }
.success .sep-hechas { list-style: none; }
.success .sep-hechas li { display: block; }

/* v58.1 · Llegada a «Una red que educa para la vida» desde la página: Jesús confirma el regalo y vuelta a las pruebas */
.red-pop { border: 0; padding: 0; background: transparent; max-width: min(380px, calc(100vw - 32px)); width: 100%; overflow: visible; }
.red-pop::backdrop { background: rgba(10,28,64,.55); backdrop-filter: blur(4px); animation: rpFondo .3s ease both; }
.red-pop-card { position: relative; text-align: center; background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%); border-radius: 26px; padding: 18px 20px 22px; box-shadow: 0 24px 60px rgba(10,28,64,.35), inset 0 0 0 1.5px rgba(26,111,242,.12); animation: rpEntra .5s cubic-bezier(.3,1.5,.5,1) both; overflow: hidden; }
.red-pop-card img { display: block; width: 130px; height: auto; margin: -2px auto 4px; filter: drop-shadow(0 10px 16px rgba(10,28,64,.18)); }
.red-pop-card h2 { margin: 0 0 8px; font: 900 22px/1.15 var(--font); color: var(--ink); }
.red-pop-card .bubble { margin: 0 auto 10px; text-align: left; }
.red-pop-sub { margin: 0 0 16px; color: #4a5a78; font-size: 14.5px; line-height: 1.45; }
.red-pop-card .btn { width: 100%; }
.red-pop.sale .red-pop-card { animation: rpSale .22s ease both; }
@keyframes rpEntra { from { opacity: 0; transform: translateY(26px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes rpSale { to { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes rpFondo { from { opacity: 0; } }
.red-seguir { display: block; width: fit-content; margin: 18px auto 0; padding: 10px 18px; border-radius: 999px; color: var(--pri); font: 800 15px var(--font); text-decoration: none; background: rgba(26,111,242,.07); border: 1.5px dashed rgba(26,111,242,.3); transition: background .18s, transform .18s; }
.red-seguir:hover { background: rgba(26,111,242,.12); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .red-pop-card, .red-pop::backdrop { animation: none; } }
