:root {
  --blue: #1667d9;
  --blue-d: #0e4eae;
  --blue-s: #e7f1ff;
  --ink: #16324f;
  --muted: #5d7390;
  --green: #14915d;
  --green-d: #0d7349;
  --mint: #e5f8ee;
  --pink: #ef5d8b;
  --pink-s: #ffe7f0;
  --gold: #f0b429;
  --gold-s: #fff5d9;
  --lilac: #7463e4;
  --lilac-s: #eeeaff;
  --orange: #f07a32;
  --orange-s: #fff0e6;
  --line: #e3eef8;
  --shadow: 0 10px 28px rgba(18, 62, 120, 0.08);
  --radius: 22px;
  font-family: "Nunito", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #7ec8f7; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sky {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  position: relative;
  overflow: hidden;
  background: linear-gradient(#8fd4fb 0%, #d7f3ff 42%, #c7ec9a 78%, #7fbe62 100%);
}

.sun {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: 8%;
  top: 36px;
  background: radial-gradient(circle at 40% 40%, #fff6c8, #ffd15c 60%, transparent 62%);
  pointer-events: none;
}

.hill {
  position: absolute;
  left: -10%;
  right: -10%;
  height: 180px;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
.hill-a { bottom: -40px; background: #6aaa55; }
.hill-b { bottom: -90px; background: #4e8d48; opacity: 0.85; }

.rail {
  position: relative;
  z-index: 2;
  margin: 18px;
  padding: 22px 18px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(16, 58, 110, 0.12);
  overflow: auto;
  max-height: calc(100dvh - 36px);
  backdrop-filter: blur(8px);
}

.brand-kicker {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rail h2 {
  margin: 4px 0 6px;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--blue-d);
}
.rail .intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.35;
}

.grade-switch, .grades {
  display: flex;
  gap: 6px;
  background: var(--blue-s);
  padding: 4px;
  border-radius: 999px;
}
.grade-switch button, .grades button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  color: var(--blue-d);
}
.grade-switch button[aria-pressed="true"],
.grades button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 4px 10px rgba(20, 70, 140, 0.12);
}

.meter { margin: 14px 0 8px; }
.meter span { display: block; font-size: 0.82rem; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.meter i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #e1ecf7;
  overflow: hidden;
  font-style: normal;
}
.meter b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #3dcc84);
  border-radius: inherit;
}

.rail ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail .nav {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 7px 8px;
  font-weight: 800;
  color: #1d446e;
}
.rail .nav small { margin-left: auto; color: var(--muted); font-weight: 800; }
.rail .nav[aria-current="page"] { background: white; box-shadow: var(--shadow); }
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #d7e4f2;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: transparent;
}
.dot.seen { background: #c9ddfb; }
.dot.ok { background: var(--green); color: white; }

.rail-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rail-actions button, .linkish {
  border: 0;
  background: var(--blue-s);
  color: var(--blue-d);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  text-align: left;
}
.rail-actions .danger { background: #ffe8ea; color: #b4233c; }

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone {
  width: min(420px, 100%);
  height: min(900px, calc(100dvh - 40px));
  background: #f6faff;
  border-radius: 36px;
  border: 8px solid #102844;
  box-shadow: 0 30px 70px rgba(16, 42, 82, 0.28);
  overflow: hidden;
  position: relative;
}

#app {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
#app:has(.cover) .screen.cover {
  flex: 1;
  min-height: 100%;
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 10px;
  background: linear-gradient(180deg, #1b74ea, #1667d9);
  color: white;
  min-height: 64px;
}
.bar h1 { margin: 0; font-size: 1.12rem; line-height: 1.15; flex: 1; }
.bar p { margin: 0; font-size: 0.72rem; font-weight: 700; opacity: 0.85; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.solid { background: var(--blue); color: white; flex: 0 0 auto; }
.logo-row { justify-content: flex-start; }
.logo-row .icon-btn { margin-left: auto; }

.screen {
  flex: 1;
  overflow: auto;
  padding: 16px 16px 18px;
  scroll-behavior: smooth;
}

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.learn-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: white;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.learn-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blue-s);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.learn-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.learn-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.learn-copy strong {
  color: var(--blue-d);
  font-size: 0.98rem;
  font-weight: 900;
}
.learn-copy small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
}
.learn-arrow {
  color: var(--blue);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-s);
}
.learn-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}
.screen.is-entering { animation: rise 0.35s ease; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid var(--line);
}
.dots button {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  position: relative;
}
.dots button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #d3e1ef;
  display: block;
  margin: 0 auto;
}
.dots button[aria-current="page"]::before {
  width: 18px;
  background: var(--blue);
}
.dots button.ok::before { background: var(--green); }
.dots button[aria-current="page"].ok::before { background: var(--blue-d); }

.screen.cover {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  padding: 12px 0 14px;
  overflow: hidden;
}
.cover {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(#f4fbff 0%, #eef8ff 42%, #eaf8e4 78%, #d8f0b8 100%);
}
.cover-leaf {
  position: absolute;
  width: 78px;
  height: 78px;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 40%, #7ec85a 0 28%, transparent 29%),
    radial-gradient(circle at 62% 28%, #5fb344 0 24%, transparent 25%),
    radial-gradient(circle at 55% 62%, #8fd96a 0 30%, transparent 31%);
  opacity: 0.85;
}
.cover-leaf-l { left: -18px; top: 42%; transform: rotate(-18deg); }
.cover-leaf-r { right: -20px; top: 48%; transform: scaleX(-1) rotate(-8deg); }
.cover-cloud {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(166, 214, 255, 0.9) 0 38%, transparent 40%),
    radial-gradient(circle at 62% 38%, rgba(186, 224, 255, 0.85) 0 34%, transparent 36%),
    radial-gradient(circle at 48% 62%, rgba(150, 206, 255, 0.8) 0 36%, transparent 38%),
    radial-gradient(circle at 72% 58%, rgba(198, 232, 255, 0.75) 0 30%, transparent 32%);
  filter: blur(0.2px);
}
.cover-head,
.cover-scene,
.cover-foot {
  position: relative;
  z-index: 2;
}
.cover-cloud.c1 {
  width: 96px;
  height: 72px;
  left: -46px;
  top: 118px;
  opacity: 0.75;
}
.cover-cloud.c2 {
  width: 90px;
  height: 68px;
  right: -42px;
  top: 130px;
  opacity: 0.72;
  transform: scaleX(-1);
}
.cover-cloud.c3 {
  width: 110px;
  height: 78px;
  left: -50px;
  top: 38%;
  opacity: 0.68;
}
.cover-cloud.c4 {
  width: 112px;
  height: 80px;
  right: -52px;
  top: 44%;
  opacity: 0.68;
  transform: scaleX(-1) rotate(8deg);
}
.cover-head {
  position: relative;
  z-index: 1;
  padding: 4px 16px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.logo-cover {
  width: min(300px, 88%);
  height: auto;
  display: block;
  margin: 0 auto 6px;
  background: transparent;
}
.logo-row { display: flex; gap: 10px; align-items: center; }
.logo-row > div:nth-child(2) { flex: 1; min-width: 0; }
.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 16px rgba(22, 103, 217, 0.25);
}
.logo-row strong { display: block; color: var(--blue-d); font-size: 0.95rem; line-height: 1.15; }
.logo-row span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; line-height: 1.2; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  background: white;
  color: var(--green-d);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.chip.gold {
  background: #ffe28a;
  color: #1d5fc0;
  box-shadow: 0 6px 14px rgba(214, 168, 40, 0.22);
}
.chip .bulb { width: 14px; height: 14px; color: #1d5fc0; flex: 0 0 auto; }
.cover .hero-title {
  margin: 6px 0 0;
  font-size: clamp(1.55rem, 5.6vw, 1.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #1f76e8;
  text-align: center;
  font-weight: 900;
}
.cover .lead {
  margin: 4px 0 0;
  font-weight: 800;
  color: #2458a8;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.25;
  max-width: 17rem;
}
.hero-title {
  margin: 14px 0 0;
  font-size: clamp(2rem, 7vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #1f76e8;
  text-align: center;
  font-weight: 900;
}
.lead {
  margin: 10px 0 0;
  font-weight: 800;
  color: #2458a8;
  font-size: 1.02rem;
  text-align: center;
  line-height: 1.3;
  max-width: 18rem;
}
.fine { color: var(--muted); font-weight: 700; font-size: 0.85rem; line-height: 1.4; }

.cover-scene {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 140px;
}
.cover-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 88%, transparent 100%);
}
.cover-foot {
  position: relative;
  z-index: 1;
  padding: 0 14px 2px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #2b86ff, #1667d9);
  border-radius: 999px;
  padding: 12px 16px 12px 22px;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 20px rgba(22, 103, 217, 0.24);
}
.cover-cta .btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.cover-cta .btn-arrow svg,
.btn-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}
.btn .btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.cover-info {
  margin-top: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  padding: 6px;
}
.cover-info-title {
  margin: 0 0 6px;
  text-align: center;
  font-weight: 800;
  color: var(--blue-d);
  font-size: 0.9rem;
}
.cover-banner {
  margin: 0;
  text-align: center;
  background: linear-gradient(180deg, #2b86ff, #1667d9);
  color: white;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.25;
  box-shadow: 0 10px 20px rgba(22, 103, 217, 0.22);
}
.pad { padding: 0 18px 8px; }
.info-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.info-links button {
  border: 0;
  background: white;
  color: var(--blue-d);
  border-radius: 12px;
  padding: 8px 6px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}
.hero-art { margin-top: 4px; }

h2.screen-title { margin: 2px 0 8px; font-size: 1.45rem; line-height: 1.15; color: var(--blue-d); }
.sub { margin: 0 0 12px; color: var(--muted); font-weight: 700; line-height: 1.4; }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.card p { margin: 0; line-height: 1.45; font-weight: 650; }

/* Párrafos justificados en todo el prototipo */
.screen p,
.screen .sub,
.screen .card p,
.screen .feature span,
.screen .step p,
.screen .resource p,
.screen .book p,
.screen .story-body p,
.screen .fine,
.screen .copy p,
.modal p,
.panel p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Excepciones: chips, barras, citas y textos centrados */
.bar p,
.chip,
.quees-chip,
.cover p,
.banner,
.team-quote,
.quote,
.person .role,
.grades,
.done-pill,
.feedback {
  text-align: left;
}
.team-quote,
.quote,
.cover .tagline,
.cover-cta,
.banner {
  text-align: center;
}
.quees-chip {
  text-align: left !important;
}

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.feature, .person, .step, .resource { min-width: 0; }
.feature {
  border-radius: 18px;
  padding: 12px;
  min-height: 108px;
  font-weight: 800;
  line-height: 1.2;
}
.feature span { display: block; margin-top: 8px; }
.feature.g { background: var(--mint); color: var(--green-d); }
.feature.l { background: var(--lilac-s); color: #5146b8; }
.feature.p { background: var(--pink-s); color: #c43b68; }
.feature.o { background: var(--orange-s); color: #c45a16; }
.feature svg { width: 28px; height: 28px; }

.quees-screen {
  position: relative;
  padding: 6px 10px 8px;
  background:
    radial-gradient(circle at 12% 8%, rgba(170, 220, 255, 0.4), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(186, 228, 255, 0.35), transparent 24%),
    linear-gradient(180deg, #f7fcff 0%, #f3f9ff 100%);
}
.quees-screen .info-body {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 6px;
  padding-bottom: 0;
}
.quees-screen .team-leaf {
  width: 34px;
  height: 34px;
  opacity: 0.75;
}
.quees-screen .team-leaf.tl { top: 0; left: -4px; }
.quees-screen .team-leaf.tr { top: 4px; right: -6px; }
.quees-screen .team-leaf.bl { bottom: 6px; left: -4px; }
.quees-screen .team-leaf.br { bottom: 2px; right: -4px; }
.quees-hero {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #d5e7fb;
  padding: 12px 14px;
  margin-bottom: 0;
  border-radius: 18px;
}
.quees-chip {
  display: inline-block !important;
  width: fit-content;
  margin: 0 0 6px !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d8ebff;
  color: #1a4f8f;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: left !important;
}
.quees-hero h3 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  line-height: 1.15;
  color: var(--blue-d);
}
.quees-hero p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.quees-subtitle {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 0 2px;
  font-size: 1.02rem;
  color: var(--blue-d);
  font-weight: 800;
}
.quees-features {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin: 0;
  gap: 8px;
  grid-template-rows: 1fr 1fr;
}
.quees-features .feature {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
}
.quees-features .feature .person-leaf {
  width: 22px;
  height: 22px;
  opacity: 0.8;
}
.quees-features .feature .person-leaf.pl-r { right: -3px; top: -4px; }
.quees-features .feature .person-leaf.pl-l { left: -3px; bottom: -3px; width: 20px; height: 20px; }
.quees-features .feature strong {
  font-size: 0.95rem;
  line-height: 1.15;
}
.quees-features .feature span {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0.92;
  text-align: justify;
  text-justify: inter-word;
}
.quees-features .feature svg { width: 28px; height: 28px; flex: 0 0 auto; }
.quees-screen .btn-back-home {
  margin-top: 6px;
  font-size: 1rem;
}

.contexto-screen {
  position: relative;
  padding: 4px 8px 6px;
  background:
    radial-gradient(circle at 12% 8%, rgba(170, 220, 255, 0.4), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(186, 228, 255, 0.35), transparent 24%),
    linear-gradient(180deg, #f7fcff 0%, #f3f9ff 100%);
}
.contexto-screen .info-body {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 4px;
}
.contexto-screen .team-leaf {
  width: 30px;
  height: 30px;
  opacity: 0.7;
}
.contexto-screen .team-leaf.tl { top: 0; left: -4px; }
.contexto-screen .team-leaf.tr { top: 2px; right: -6px; }
.contexto-screen .team-leaf.bl { bottom: 4px; left: -4px; }
.contexto-screen .team-leaf.br { bottom: 0; right: -4px; }
.contexto-hero {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid #d5e7fb;
  padding: 7px 9px;
  margin-bottom: 0;
  border-radius: 14px;
}
.contexto-hero .quees-chip {
  margin-bottom: 2px !important;
  font-size: 0.68rem;
  padding: 2px 8px;
}
.contexto-hero h3 {
  margin: 0 0 2px;
  font-size: 1.18rem;
  line-height: 1.12;
  color: var(--blue-d);
}
.contexto-hero p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.22;
}
.contexto-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contexto-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0;
  min-height: 0;
  border-radius: 14px;
}
.contexto-card .person-leaf {
  width: 20px;
  height: 20px;
  opacity: 0.75;
}
.contexto-card .person-leaf.pl-r { right: -3px; top: -4px; }
.contexto-card .person-leaf.pl-l { left: -3px; bottom: -3px; width: 18px; height: 18px; }
.contexto-card.tone-bg-p { background: linear-gradient(180deg, #fff 0%, #ffeef4 100%); }
.contexto-card.tone-bg-o { background: linear-gradient(180deg, #fff 0%, #fff4ec 100%); }
.contexto-card.tone-bg-g { background: linear-gradient(180deg, #fff 0%, #eefaf3 100%); }
.contexto-card.tone-bg-l { background: linear-gradient(180deg, #fff 0%, #f2efff 100%); }
.contexto-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 1px;
}
.contexto-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  color: var(--blue-d);
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(20, 70, 140, 0.12);
}
.contexto-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.08;
}
.contexto-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
}
.contexto-screen .btn-back-home {
  margin-top: 4px;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 1rem;
}

.comp-screen {
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, #f3fbf6 0%, #eef8f2 45%, #f7fcff 100%);
}
.comp-screen .info-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 8px;
}
.comp-stats {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #14915d 0%, #0d7349 100%);
  color: white;
  box-shadow: 0 8px 18px rgba(13, 115, 73, 0.22);
}
.comp-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comp-stat strong {
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 900;
}
.comp-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.92;
  line-height: 1.15;
  text-align: center !important;
}
.comp-stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin: 4px 0;
}
.comp-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.comp-row {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: white;
  border: 1px solid #d7efe3;
  box-shadow: 0 2px 10px rgba(13, 115, 73, 0.06);
  border-left: 5px solid #14915d;
}
.comp-row:nth-child(2) { border-left-color: #1667d9; }
.comp-row:nth-child(3) { border-left-color: #7463e4; }
.comp-row:nth-child(4) { border-left-color: #f07a32; }
.comp-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e5f8ee;
  color: #0d7349;
}
.comp-row:nth-child(2) .comp-icon { background: #e7f1ff; color: #1667d9; }
.comp-row:nth-child(3) .comp-icon { background: #eeeaff; color: #5146b8; }
.comp-row:nth-child(4) .comp-icon { background: #fff0e6; color: #c45a16; }
.comp-icon svg { width: 24px; height: 24px; }
.comp-copy {
  min-width: 0;
}
.comp-copy h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  line-height: 1.15;
  color: #16324f;
}
.comp-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #3d5470;
  font-weight: 650;
}
.comp-screen .btn-back-home {
  margin-top: 6px;
  font-size: 1rem;
}

.team-screen {
  position: relative;
  padding: 12px 16px 12px;
  background:
    radial-gradient(circle at 12% 8%, rgba(170, 220, 255, 0.55), transparent 28%),
    radial-gradient(circle at 90% 6%, rgba(186, 228, 255, 0.5), transparent 26%),
    linear-gradient(180deg, #f7fcff 0%, #eef8ff 55%, #f5fbff 100%);
}
.team-screen .info-body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.team-screen .team {
  flex: 1;
}
.team-leaf {
  position: absolute;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}
.team-leaf svg { width: 100%; height: 100%; display: block; }
.team-leaf.tl { left: -6px; top: 8px; transform: rotate(-28deg); }
.team-leaf.tr { right: -8px; top: 18px; transform: scaleX(-1) rotate(-12deg); width: 50px; height: 50px; opacity: 0.75; }
.team-leaf.bl { left: -4px; bottom: 72px; transform: rotate(18deg) scaleX(-1); width: 52px; height: 52px; }
.team-leaf.br { right: -6px; bottom: 64px; transform: rotate(22deg); width: 56px; height: 56px; }
.team {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  gap: 10px;
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
}
.person {
  width: 100%;
  max-width: none;
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  background: #d4e9ff;
  border-radius: 20px;
  padding: 12px 16px 12px 14px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(74, 144, 210, 0.1);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  overflow: visible;
}
.person-leaf {
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.95;
}
.person-leaf svg { width: 100%; height: 100%; display: block; }
.person-leaf.pl-r {
  right: -6px;
  top: -10px;
  transform: rotate(28deg);
}
.person-leaf.pl-l {
  left: -8px;
  bottom: -8px;
  transform: scaleX(-1) rotate(-18deg);
  width: 30px;
  height: 30px;
}
.avatar {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  z-index: 1;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #9cc9f2;
  background: #e7f1ff;
  box-shadow: 0 2px 8px rgba(74, 144, 210, 0.14);
}
.avatar img, .avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.2);
  transform-origin: center 16%;
  display: block;
  background: #e7f1ff;
}
.avatar.zoom-full img {
  object-position: center 30%;
  transform: scale(1);
  transform-origin: center center;
}
.person-card {
  width: auto;
  flex: 1;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}
.person h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  color: #1a4f8f;
  font-weight: 800;
}
.person .role {
  display: block;
  margin: 0;
  padding: 0;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: #24384f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.info-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.info-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.btn-back-home,
.team-back {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 8px;
}
.team-quote {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin: 6px 8px 4px;
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #1a55a0;
  line-height: 1.3;
}
.team-quote em {
  color: #1a55a0;
  font-style: italic;
  font-weight: 900;
}
.team-heart {
  display: inline;
  margin-left: 4px;
  color: #e53935;
  font-size: 0.9rem;
  line-height: 1;
}
.logo-real { width: min(300px, 88%); height: auto; display: block; background: transparent; margin: 0 auto; }
.stickers { display: flex; justify-content: center; gap: 10px; margin: 8px 0 12px; }
.stickers img { width: 76px; height: 76px; object-fit: contain; }
.step h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.step-icon { width: 28px; height: 28px; object-fit: contain; }
.bubble-img { width: 46px; height: 46px; object-fit: contain; }
.portrait-top { width: 108px; height: 108px; object-fit: contain; display: block; margin: 0 auto 8px; }
.paisaje { width: 100%; height: 128px; object-fit: cover; object-position: center; border-radius: 18px; display: block; margin-top: 12px; }
.banner-img, .school-card > img, .hero-art {
  width: 100%;
  display: block;
}
.banner-img, .school-card > img {
  height: 148px;
  object-fit: cover;
  object-position: center 30%;
}
.banner-img { border-radius: 18px; margin-bottom: 10px; }
.hero-art { height: 210px; object-fit: cover; object-position: center 40%; }
.cover .hero-art { height: auto; max-height: none; }
.tone-p { color: #c43b68; }
.tone-o { color: #c45a16; }
.tone-g { color: var(--green-d); }
.tone-l { color: #5146b8; }

.quote {
  margin-top: 12px;
  text-align: center;
  font-weight: 800;
  color: var(--blue-d);
  line-height: 1.35;
}
.quote em { color: var(--pink); font-style: normal; }

.btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(22, 103, 217, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.25;
}
.btn + .btn, .btn + .stack, .stack + .btn { margin-top: 8px; }
.btn.green { background: var(--green); box-shadow: 0 8px 16px rgba(20, 145, 93, 0.22); }
.btn.gold { background: var(--gold); color: #5c4204; box-shadow: none; }
.btn.pink { background: var(--pink); }
.btn.lilac { background: var(--lilac); }
.btn.ghost { background: white; color: var(--blue-d); box-shadow: none; border: 2px solid var(--line); }
.btn.sm { width: auto; padding: 8px 14px; font-size: 0.92rem; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

.school-card { padding: 0; overflow: hidden; }
.school-card .copy { padding: 12px 14px 14px; }
.banner {
  margin-top: 8px;
  background: var(--pink);
  color: white;
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  font-weight: 800;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  background: white;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}
.num.n1 { background: var(--pink); }
.num.n2 { background: var(--green); }
.num.n3 { background: var(--orange); }
.step h3 { margin: 0; font-size: 1rem; }
.step p { margin: 2px 0 8px; color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.step .btn { width: auto; padding: 8px 14px; }
.done-pill {
  display: inline-flex;
  background: var(--mint);
  color: var(--green-d);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 6px;
}

.field { display: block; margin-bottom: 10px; }
.field > span { display: block; font-weight: 800; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-weight: 700; margin: -2px 0 6px; }
input, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 2px solid #d5e4f4;
  background: white;
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); }

.wallet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--gold-s);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-weight: 800;
}
.wallet b { color: #8a6208; font-size: 1.2rem; }

.prices { background: white; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; }
.pr, .pr-h {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
  font-weight: 800;
}
.pr-h { color: var(--muted); font-size: 0.8rem; background: #f4f8fc; }
.pr + .pr { border-top: 1px solid var(--line); }
.pr span { display: flex; align-items: center; gap: 8px; }
.pico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-s);
  font-style: normal;
}
.pico svg { width: 22px; height: 22px; }

.feedback {
  border-radius: 16px;
  padding: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0;
}
.feedback.ok { background: var(--mint); color: var(--green-d); }
.feedback.bad { background: #ffe8ea; color: #a61e36; }
.feedback.tip { background: var(--gold-s); color: #7a5608; }

.choices { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.choice {
  border: 2px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  text-align: left;
}
.choice.on { border-color: var(--blue); background: var(--blue-s); color: var(--blue-d); }
.choice.good { border-color: var(--green); background: var(--mint); }
.choice.bad { border-color: #e35d6a; background: #fff1f3; }

.note {
  background: #f3f7fb;
  border-radius: 16px;
  padding: 10px 12px;
  color: #35516f;
  font-weight: 750;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 8px 0 12px;
}

.resource {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  background: white;
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.resource h3 { margin: 0; font-size: 0.95rem; }
.resource p { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.bubble {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.bubble svg { width: 26px; height: 26px; }
.bubble.g { background: var(--mint); color: var(--green-d); }
.bubble.b { background: var(--blue-s); color: var(--blue-d); }
.bubble.o { background: var(--orange-s); color: #c45a16; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.role {
  background: var(--lilac-s);
  border-radius: 16px;
  padding: 8px;
  min-width: 0;
}
.role span { display: block; font-size: 0.78rem; font-weight: 800; color: #5146b8; margin-bottom: 4px; }
.role input { padding: 8px; border-radius: 10px; background: white; }

.proc { list-style: none; margin: 0; padding: 0; }
.proc li { margin-bottom: 6px; }
.proc button {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 0;
  background: #f5f8fc;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
}
.tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #b7c9dc;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: transparent;
  flex: 0 0 auto;
}
.proc button.on .tick { background: var(--green); border-color: var(--green); color: white; }

.book {
  background: #fffdf6;
  border: 2px solid #f0e2bf;
  border-radius: 18px;
  padding: 14px;
}
.book h3 { margin: 12px 0 4px; color: var(--blue-d); font-size: 0.92rem; }
.book p { margin: 0; font-weight: 700; line-height: 1.45; }

.checks h3 {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(18, 62, 120, 0.04);
}
.box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #c5d5e6;
  display: grid;
  place-items: center;
  color: transparent;
  flex: 0 0 auto;
}
.check.ok .box { background: var(--green); border-color: var(--green); color: white; }

.canvas-wrap {
  background: white;
  border-radius: 16px;
  border: 2px dashed #b7d0ea;
  overflow: hidden;
  touch-action: none;
}
canvas#draw { width: 100%; height: 180px; display: block; background: #fff; touch-action: none; cursor: crosshair; }
.swatches { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #d5e2f0;
  padding: 0;
}
.swatch.on { box-shadow: 0 0 0 2px var(--blue-d); }

.sheet {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 58, 0.46);
  z-index: 6;
  display: flex;
  align-items: flex-end;
}
.panel {
  background: white;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  border-radius: 26px 26px 0 0;
  padding: 12px 16px 22px;
  animation: rise 0.25s ease;
}
.grab {
  width: 46px;
  height: 5px;
  border-radius: 99px;
  background: #d5e2ef;
  margin: 2px auto 10px;
}
.panel h2 { margin: 0 0 8px; color: var(--blue-d); }
.story-body p { font-weight: 700; line-height: 1.5; margin: 0 0 10px; }
.player {
  background: var(--blue-s);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.barline { height: 8px; background: #d3e4f8; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.barline b { display: block; height: 100%; width: 0; background: var(--blue); }
.eval-row { margin-bottom: 12px; }
.eval-row strong { display: block; margin-bottom: 6px; }
.levels { display: flex; gap: 6px; }
.levels button { flex: 1; border-radius: 12px; border: 2px solid var(--line); background: white; padding: 8px 4px; font-size: 0.78rem; font-weight: 800; }
.levels button.on { border-color: var(--lilac); background: var(--lilac-s); color: #4336a8; }

.audio-el { width: 100%; margin: 8px 0; }

.backdrop { display: none; }
.close-x { margin-left: auto; }

.shake { animation: shake 0.35s linear; }
@keyframes shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 900px) {
  .sky { grid-template-columns: 1fr; }
  .stage { padding: 0; }
  .phone {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .rail {
    display: none;
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: min(340px, 90vw);
    margin: 0;
    max-height: 100dvh;
    border-radius: 0 24px 24px 0;
  }
  body.menu-open .rail { display: block; }
  body.menu-open .backdrop { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(8, 22, 44, 0.35); }
  .sun, .hill { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .sky { display: block; background: white; }
  .rail, .dots, .bar, .backdrop, .sun, .hill { display: none !important; }
  .phone { border: 0; box-shadow: none; height: auto; }
}
