/* Space Canvas — sitio web. Misma estética que la app: "galaxia de crayón", cartoon minimalista. */

:root {
  --ground: #2e2636;
  --ground-deep: #241d2b;
  --panel: #3a3145;
  --ink: #1a1520;
  --cyan: #4af2f2;
  --sun: #ffc94a;
  --coral: #ff7b6b;
  --text: #ffffff;
  --text-soft: #d9d1e3;
  --text-muted: #b9afc7;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius: 26px;
  --border: 3px solid var(--ink);
  --shadow: 0 6px 0 var(--ink);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); }
a:hover { color: #9df8f8; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--deep { background: var(--ground-deep); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 20px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.accent { color: var(--cyan); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 12px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* --- Botones cartoon ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 26px;
  border-radius: 22px;
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 24px; height: 24px; flex: none; }

.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--panel { background: var(--panel); color: var(--text); }
.btn--cyan:hover, .btn--sun:hover { color: var(--ink); }
.btn--panel:hover { color: var(--text); }

/* Botones de las tiendas: texto propio hasta tener las insignias oficiales. */
.store-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.store {
  min-height: 68px;
  padding: 0 22px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--text);
  border: 3px solid var(--text);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
  justify-content: flex-start;
  text-align: left;
}
.store:hover { color: var(--text); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.45); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--text-soft); }
.store strong { font-size: 22px; font-weight: 600; }
.store.is-soon { cursor: default; opacity: 0.85; }
.store.is-soon:hover, .store.is-soon:active { transform: none; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.45); }

/* --- Encabezado ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(46, 38, 54, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(26, 21, 32, 0.6);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text-soft); text-decoration: none; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--cyan); }
.nav .btn { min-height: 48px; font-size: 17px; padding: 0 18px; border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 14px; border: var(--border); background: var(--panel); color: var(--text);
  box-shadow: 0 4px 0 var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 84px;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--panel); border: var(--border); border-radius: 22px; box-shadow: var(--shadow);
    padding: 14px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 10px 12px; font-size: 18px; }
}

/* --- Hero ------------------------------------------------------------------ */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.hero h1 { font-size: clamp(46px, 7.4vw, 88px); }
.hero-lead { margin: 22px 0 32px; font-size: clamp(19px, 2.2vw, 23px); color: var(--text-soft); max-width: 540px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--text-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.orbit {
  position: absolute; width: min(520px, 92%); aspect-ratio: 1;
  border-radius: 50%;
  border: 4px dotted rgba(74, 242, 242, 0.35);
  animation: spin 40s linear infinite;
}
.orbit::after {
  content: ""; position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sun); border: var(--border);
}
.orbit--small { width: min(380px, 70%); border-color: rgba(255, 201, 74, 0.3); animation-duration: 28s; animation-direction: reverse; }
.orbit--small::after { background: var(--coral); top: auto; bottom: -10px; width: 16px; height: 16px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero .store-buttons { justify-content: center; }
  .hero-visual { min-height: 480px; }
}

/* Estrellas de fondo */
.stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: var(--s, 18px); aspect-ratio: 1; color: var(--c, #fff); animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.star svg { width: 100%; height: 100%; display: block; }

/* --- Teléfonos con capturas ------------------------------------------------ */

.phone {
  position: relative;
  width: var(--w, 280px);
  aspect-ratio: 9 / 20;
  border-radius: 42px;
  background: var(--ink);
  padding: 12px;
  border: 3px solid #4a405a;
  box-shadow: 0 14px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.phone--float { animation: float 6s ease-in-out infinite; z-index: 2; }

/* --- Tarjetas -------------------------------------------------------------- */

.card {
  background: var(--panel);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
}
.card p { color: var(--text-soft); margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.icon-chip {
  width: 64px; height: 64px; border-radius: 20px; border: var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--chip, var(--cyan)); color: var(--ink);
}
.icon-chip svg { width: 32px; height: 32px; }
.card:hover .icon-chip { animation: wiggle 0.5s ease; }

/* --- Cómo funciona --------------------------------------------------------- */

.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border: var(--border); border-radius: 22px; box-shadow: var(--shadow);
  padding: 18px 22px;
}
.steps li::before {
  content: counter(step);
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--sun); color: var(--ink); border: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.steps strong { font-family: var(--font-display); font-weight: 600; font-size: 22px; display: block; }
.steps span { color: var(--text-soft); font-size: 17px; }

/* Cubo que se pliega desde su desarrollo (animación CSS 3D) */
.cube-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cube-scene { width: 320px; height: 320px; perspective: 900px; display: flex; align-items: center; justify-content: center; }
.cube-rig { transform-style: preserve-3d; animation: rig 12s ease-in-out infinite; }
.cube-net { --s: 86px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; }
.face {
  position: absolute; width: var(--s); height: var(--s);
  border: 3px solid var(--ink); border-radius: 10px;
  transform-style: preserve-3d;
  backface-visibility: visible;
}
.face--base { position: relative; background: var(--cyan); }
/* Las caras hijas se ubican desde el interior del borde (3px) de su cara madre. */
.face--n { left: -3px; bottom: calc(100% + 3px); transform-origin: 50% 100%; background: var(--sun); animation: fold-n 6s ease-in-out infinite; }
.face--s { left: -3px; top: calc(100% + 3px); transform-origin: 50% 0; background: var(--coral); animation: fold-s 6s ease-in-out infinite; }
.face--w { top: -3px; right: calc(100% + 3px); transform-origin: 100% 50%; background: #9b7bff; animation: fold-w 6s ease-in-out infinite; }
.face--e { top: -3px; left: calc(100% + 3px); transform-origin: 0 50%; background: #7ce38b; animation: fold-e 6s ease-in-out infinite; }
.face--lid { left: -3px; bottom: calc(100% + 3px); transform-origin: 50% 100%; background: #ff9ad5; animation: fold-n 6s ease-in-out infinite; }
.face::after {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.cube-caption { color: var(--text-soft); font-size: 16px; text-align: center; max-width: 320px; }

/* --- Galería de capturas --------------------------------------------------- */

.gallery {
  display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 40px;
  scrollbar-width: thin; scrollbar-color: var(--cyan) transparent;
}
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gallery figcaption { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-soft); text-align: center; }
.gallery .phone { --w: 240px; transition: transform 0.3s ease; }
.gallery figure:nth-child(odd) .phone { transform: rotate(-2deg); }
.gallery figure:nth-child(even) .phone { transform: rotate(2deg); }
.gallery figure:hover .phone { transform: rotate(0) translateY(-8px); }
@media (min-width: 1200px) { .gallery { justify-content: safe center; } }

/* --- Docentes y familias --------------------------------------------------- */

.teachers {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--panel); border: var(--border); border-radius: 36px; box-shadow: 0 10px 0 var(--ink);
  padding: clamp(28px, 5vw, 64px);
}
@media (max-width: 860px) { .teachers { grid-template-columns: 1fr; } }
.teachers p { color: var(--text-soft); margin: 16px 0 28px; }

.principle { display: flex; flex-direction: column; gap: 14px; }
.principle div {
  display: flex; align-items: center; gap: 16px;
  background: var(--ground); border: var(--border); border-radius: 20px; padding: 16px 20px;
}
.principle b { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.principle small { display: block; color: var(--text-soft); font-size: 15px; }
.principle i {
  flex: none; width: 46px; height: 46px; border-radius: 14px; border: var(--border);
  display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: var(--font-display); font-size: 22px; color: var(--ink);
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 9px;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1520' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: var(--border);
}

/* --- Llamado final y pie --------------------------------------------------- */

.cta { text-align: center; }
.cta img { width: 140px; margin: 0 auto 26px; animation: float 5s ease-in-out infinite; }
.cta p { color: var(--text-soft); margin: 18px auto 34px; max-width: 560px; font-size: 20px; }
.cta .store-buttons { justify-content: center; }

.site-footer { background: var(--ink); padding: 44px 0; color: var(--text-muted); font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }

[data-link][hidden] { display: none !important; }

/* --- Guía para el aula ----------------------------------------------------- */

.guide-hero { padding: clamp(48px, 8vw, 100px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.guide-hero h1 { font-size: clamp(40px, 6.5vw, 76px); max-width: 900px; }
.guide-hero p { margin-top: 20px; font-size: clamp(19px, 2.2vw, 23px); color: var(--text-soft); max-width: 760px; }
.guide-meta { margin-top: 22px; font-size: 15px; color: var(--text-muted); }

.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: 96px; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: 100px; background: var(--panel); border: var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; }
.toc summary { font-family: var(--font-display); font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--cyan); }
@media (max-width: 960px) { .toc { position: static; } }

.guide-body > section { scroll-margin-top: 100px; padding-bottom: clamp(40px, 5vw, 64px); }
.guide-body h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.guide-body h2 .num { color: var(--sun); margin-right: 10px; }
.guide-body h3 { margin: 26px 0 10px; }
.guide-body p + p { margin-top: 14px; }
.guide-body p, .guide-body li { color: #e6e0ee; }
.guide-body ul { padding-left: 24px; display: grid; gap: 8px; margin: 12px 0 0; }

.callout {
  margin-top: 22px; padding: 20px 24px; border-radius: 22px; border: var(--border);
  background: var(--ground-deep); box-shadow: var(--shadow);
}
.callout--sun { background: var(--sun); color: var(--ink); }
.callout--sun p { color: var(--ink); }
.callout strong { font-family: var(--font-display); font-weight: 600; }

.evidence .card ul { padding-left: 22px; }
.evidence .card--yes { border-top: 10px solid var(--cyan); }
.evidence .card--no { border-top: 10px solid var(--coral); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }
.trio .card { text-align: center; }
.trio .card h3 { margin: 0; }
.trio .icon-chip { margin: 0 auto 14px; }

.timeline { list-style: none; margin: 22px 0 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: rgba(74, 242, 242, 0.35); }
.timeline > li { position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: -30px; top: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sun); border: var(--border);
}
.timeline .card h3 { margin: 0 0 6px; }
.timeline .tag { font-family: var(--font-display); color: var(--cyan); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }

.table-wrap { overflow-x: auto; margin-top: 18px; border: var(--border); border-radius: 22px; box-shadow: var(--shadow); }
/* Las tablas se ajustan al ancho disponible: el texto pasa de línea en vez de generar scroll horizontal. */
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--ground); overflow-wrap: anywhere; }
th { font-family: var(--font-display); font-weight: 600; background: var(--ink); color: var(--sun); font-size: 18px; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-family: var(--font-display); font-weight: 600; }
/* Columnas cortas: sin cortes de línea y al ancho de su contenido. */
.table--levels td:first-child,
.table--compare td:last-child,
.table--compare th:last-child { white-space: nowrap; width: 1%; overflow-wrap: normal; }
@media (max-width: 640px) {
  th, td { padding: 12px 14px; font-size: 16px; }
  /* En celular, "Papel / recortar y armar" puede ocupar dos líneas. */
  .table--compare td:last-child { white-space: normal; width: 30%; }
}
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; border: 2px solid var(--ink); font-size: 14px; color: var(--ink); font-family: var(--font-display); }
.pill--paper { background: var(--sun); }
.pill--ar { background: var(--cyan); }

.quote {
  margin-top: 26px; padding: clamp(24px, 4vw, 40px); border-radius: 30px; border: var(--border); box-shadow: 0 10px 0 var(--ink);
  background: var(--cyan); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.25; text-align: center;
}
/* Más específico que ".guide-body p", que pinta los párrafos de claro. */
.guide-body .quote { color: var(--ink); }

.guide-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.print-only { display: none; }

/* --- Impresión y PDF de la guía: fondo blanco, ahorro de tinta, sin menú ni animaciones --- */

@page { size: A4; margin: 16mm 15mm; }

@media print {
  :root {
    --ground: #ffffff;
    --ground-deep: #f5f1f9;
    --panel: #ffffff;
    --text: #1a1520;
    --text-soft: #3d3448;
    --text-muted: #5c5168;
  }
  html, body { background: #fff !important; color: #1a1520; font-size: 11pt; line-height: 1.5; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }

  .site-header, .site-footer, .toc, .stars, .skip-link, .guide-actions, .no-print { display: none !important; }
  .print-only { display: block; }
  .reveal { opacity: 1 !important; transform: none !important; }

  .guide-hero { padding: 0 0 8mm; }
  .guide-hero h1 { font-size: 30pt; }
  .guide-hero p { font-size: 13pt; color: #3d3448; }
  .print-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14pt; margin-bottom: 8mm; }
  .print-brand img { width: 34px; height: 34px; }

  .container { max-width: none; padding: 0; }
  .guide-layout { display: block; padding: 0; }
  .guide-body > section { padding-bottom: 7mm; }
  .guide-body h2 { font-size: 18pt; margin-bottom: 3mm; break-after: avoid; }
  .guide-body h3 { font-size: 13pt; break-after: avoid; }
  .guide-body p, .guide-body li { color: #2a2233; }

  .accent { color: #0b9a9a; }
  .eyebrow { color: #a86f00; }
  .guide-body h2 .num { color: #a86f00; }

  .card, .callout, .table-wrap, .quote, .timeline > li { break-inside: avoid; }
  .card { border: 2px solid #1a1520; background: #fff; padding: 4mm 5mm; }
  .card p { color: #3d3448; }
  .callout { background: #f5f1f9; border: 2px solid #1a1520; }
  .callout--sun { background: #fff3cf; }
  .evidence .card--yes { border-top: 6px solid #0b9a9a; }
  .evidence .card--no { border-top: 6px solid #e0563f; }
  .icon-chip { width: 40px; height: 40px; border-radius: 12px; border-width: 2px; }
  .icon-chip svg { width: 22px; height: 22px; }
  .trio { gap: 4mm; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { gap: 4mm; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .timeline { gap: 4mm; }
  .timeline::before { background: #c9c1d4; }
  .timeline .tag { color: #0b9a9a; }

  .table-wrap { border: 2px solid #1a1520; overflow: visible; }
  table { min-width: 0; background: #fff; }
  th { background: #f0ebf6; color: #1a1520; }
  td { border-bottom: 1px solid #ddd5e6; }

  .quote { background: #fff; color: #1a1520; border: 3px solid #0b9a9a; font-size: 18pt; }
}

/* --- Animaciones ------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(36px) scale(0.98); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }

.word-pop { display: inline-block; animation: pop 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both; animation-delay: var(--delay, 0s); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(30px) scale(0.6); } 100% { opacity: 1; transform: none; } }

/* El desarrollo se pliega y forma el cubo, se queda un momento armado y se vuelve a abrir. */
@keyframes fold-n { 0%, 15% { transform: rotateX(0); } 45%, 75% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
@keyframes fold-s { 0%, 15% { transform: rotateX(0); } 45%, 75% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes fold-w { 0%, 15% { transform: rotateY(0); } 45%, 75% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes fold-e { 0%, 15% { transform: rotateY(0); } 45%, 75% { transform: rotateY(-90deg); } 100% { transform: rotateY(0); } }
@keyframes rig { 0%, 100% { transform: rotateX(58deg) rotateZ(-32deg); } 50% { transform: rotateX(58deg) rotateZ(148deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .face--n, .face--lid { transform: rotateX(-90deg); }
  .face--s { transform: rotateX(90deg); }
  .face--w { transform: rotateY(90deg); }
  .face--e { transform: rotateY(-90deg); }
  .cube-rig { transform: rotateX(58deg) rotateZ(-32deg); }
}
