/* ==========================================================================
   Condor — sitio de presentación (AR)
   Tema: software de gestión escolar armado a medida de cada franquicia,
   en español rioplatense, para el mercado argentino.
   Paleta: celeste argentino + arena cálida + un rojo de margen de cuaderno,
   tipografía Piazzolla (creada en Argentina) + Inter + IBM Plex Mono.
   Elemento propio: la ficha de cuaderno — renglones, margen roja, espiral —
   que enmarca tanto el hero como el configurador de funciones.
   ========================================================================== */

:root {
  --paper:    #f6f1e6;
  --paper-2:  #ece2cc;
  --surface:  #ffffff;
  --surface-2:#f8f3e6;
  --line:     #e0d4b8;
  --line-soft:#ece1c8;

  --ink:      #12142a;
  --ink-dim:  #6a6250;
  --ink-faint:#9a9078;

  --celeste:     #1989E7;
  --celeste-dim: #1273af;
  --celeste-soft:rgba(25, 137, 231, 0.12);

  --gold:      #FEB838;
  --gold-soft: rgba(254, 184, 56, 0.15);

  --margen:   #c14f3f;
  --margen-soft: rgba(193, 79, 63, 0.1);

  --on:      #4c8b5b;
  --on-soft: rgba(76, 139, 91, 0.15);
  --off:     #d7cba9;

  --wa: #3fa96a;

  --frame-blue:  var(--celeste);
  --frame-width: 3px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --display: 'Piazzolla', Georgia, serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #1a1712;
    --paper-2:  #211c15;
    --surface:  #262019;
    --surface-2:#2e2720;
    --line:     #40382a;
    --line-soft:#352e22;
    --ink:      #eeecf5;
    --ink-dim:  #b9ac91;
    --ink-faint:#7d735d;
    --celeste:     #51acf6;
    --celeste-dim: #7ac1fa;
    --celeste-soft:rgba(81, 172, 246, 0.16);
    --gold:      #fec762;
    --gold-soft: rgba(254, 199, 98, 0.18);
    --margen:   #e07a68;
    --on:      #6bb579;
    --on-soft: rgba(107, 181, 121, 0.18);
    --off:     #4a4128;
  }
}
:root[data-theme="dark"] {
  --paper:    #1a1712;
  --paper-2:  #211c15;
  --surface:  #262019;
  --surface-2:#2e2720;
  --line:     #40382a;
  --line-soft:#352e22;
  --ink:      #eeecf5;
  --ink-dim:  #b9ac91;
  --ink-faint:#7d735d;
  --celeste:     #51acf6;
  --celeste-dim: #7ac1fa;
  --celeste-soft:rgba(81, 172, 246, 0.16);
  --gold:      #fec762;
  --gold-soft: rgba(254, 199, 98, 0.18);
  --margen:   #e07a68;
  --on:      #6bb579;
  --on-soft: rgba(107, 181, 121, 0.18);
  --off:     #4a4128;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }

/* ---- Blue frame motif ---- */
.frame-blue,
.plan,
.appframe {
  border: var(--frame-width) solid var(--frame-blue);
  border-radius: var(--r-lg);
}
body::after {
  content: '';
  position: fixed;
  inset: 10px;
  border-top: var(--frame-width) solid var(--frame-blue);
  border-left: var(--frame-width) solid var(--frame-blue);
  border-right: var(--frame-width) solid var(--frame-blue);
  border-bottom: var(--frame-width) solid transparent;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  pointer-events: none;
  z-index: 999;
  transition: border-bottom-color .25s ease, border-bottom-left-radius .25s ease, border-bottom-right-radius .25s ease;
}
body.at-page-bottom::after {
  border-bottom-color: var(--frame-blue);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}
@media (max-width: 560px) {
  body::after { inset: 6px; border-top-left-radius: 14px; border-top-right-radius: 14px; }
  body.at-page-bottom::after { border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
}
@media (min-width: 561px) {
  body.is-home::after { display: none; }
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 21px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta { font-family: var(--body); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 100px; background: var(--celeste); color: #fbfdff; text-decoration: none; transition: all .15s; white-space: nowrap; }
.nav-cta:hover { background: var(--celeste-dim); }

.ham-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 100px; padding: 9px 9px 9px 18px;
  cursor: pointer; transition: transform .15s;
}
.ham-btn:hover { transform: translateY(-1px); }
.ham-btn .lbl { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.ham-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ham-icon span { display: block; width: 15px; height: 1.6px; background: var(--paper); position: relative; transition: transform .25s, opacity .2s; }
.ham-icon span::before, .ham-icon span::after { content:''; position: absolute; left: 0; width: 15px; height: 1.6px; background: var(--paper); transition: transform .25s, top .25s; }
.ham-icon span::before { top: -5px; }
.ham-icon span::after { top: 5px; }
.drawer-open .ham-icon span { background: transparent; }
.drawer-open .ham-icon span::before { top: 0; transform: rotate(45deg); }
.drawer-open .ham-icon span::after { top: 0; transform: rotate(-45deg); }

/* ---- Toggle switch (componente propio) ---- */
.toggle {
  --w: 40px; --h: 22px;
  width: var(--w); height: var(--h); border-radius: 100px; background: var(--off);
  position: relative; flex-shrink: 0; cursor: pointer; border: none; padding: 0;
  transition: background .2s;
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.28);
  transition: transform .2s;
}
.toggle.on { background: var(--on); }
.toggle.on::after { transform: translateX(18px); }
.toggle.locked { cursor: default; opacity: 0.55; }
.toggle:focus-visible { outline: 2px solid var(--celeste); outline-offset: 3px; }

/* ---- Drawer (menú + configurador de funciones) ---- */
.scrim {
  position: fixed; inset: 0; background: rgba(20, 16, 8, 0.42); z-index: 49;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-open .scrim { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(460px, 100%);
  background: var(--surface); border-left: 4px solid var(--margen);
  z-index: 50; transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer-open .drawer { transform: translateX(0); }

.drawer-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; position: relative; }
.drawer-head .eyebrow { margin-bottom: 8px; }
.drawer-head h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 6px; }
.drawer-head p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.drawer-close {
  position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--ink);
  font-size: 16px; line-height: 1;
}

.drawer-nav { display: flex; gap: 4px; padding: 14px 26px; border-bottom: 1px solid var(--line-soft); flex-shrink: 0; overflow-x: auto; }
.drawer-nav a { font-size: 13px; font-weight: 600; color: var(--ink-dim); text-decoration: none; padding: 7px 12px; border-radius: 100px; white-space: nowrap; }
.drawer-nav a:hover { background: var(--surface-2); color: var(--ink); }

.drawer-body { overflow-y: auto; padding: 8px 26px 30px; flex: 1; }
.d-group { padding-top: 20px; }
.d-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.d-group-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--celeste-dim); }
.d-group-note { font-size: 12px; color: var(--ink-faint); }
.d-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.d-row:last-child { border-bottom: none; }
.d-row-text { flex: 1; min-width: 0; }
.d-row-name { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.d-row-desc { font-size: 12.5px; color: var(--ink-dim); line-height: 1.4; }
.d-badge { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; flex-shrink: 0; margin-top: 1px; }

.drawer-foot { padding: 18px 26px 24px; border-top: 1px solid var(--line-soft); flex-shrink: 0; }
.drawer-foot .btn { width: 100%; justify-content: center; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--celeste-dim); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--margen); }

/* ---- Hero: hoja de cuaderno ---- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.08; margin: 0 0 22px; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--celeste-dim); }
.hero p.lede { font-size: 18px; color: var(--ink-dim); max-width: 48ch; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }

.btn {
  font-family: var(--body); font-size: 15px; font-weight: 600; padding: 13px 24px; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .18s; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--celeste); color: #fbfdff; }
.btn-primary:hover { background: var(--celeste-dim); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-faint); }

.trust-note { font-size: 13.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }

/* ficha de cuaderno */
.notebook {
  position: relative;
  background:
    repeating-linear-gradient(to bottom, transparent, transparent 27px, var(--line-soft) 27px, var(--line-soft) 28px),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px 20px 40px;
  box-shadow: 0 24px 60px -30px rgba(34, 31, 26, 0.35);
}
.notebook::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 26px; width: 1.5px; background: var(--margen-soft); border-left: 1.5px dashed var(--margen);
}
.notebook::after {
  content: ''; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 26px 26px 0; border-color: transparent var(--paper-2) transparent transparent;
}
.switchboard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.switchboard-head span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.sb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.sb-row:last-of-type { border-bottom: none; }
.sb-row .sb-name { font-size: 14px; font-weight: 600; }
.sb-hint { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.sb-hint svg { flex-shrink: 0; }

/* ---- Section shell ---- */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 50px; }
.section-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(29px, 3.1vw, 39px); margin: 0 0 16px; line-height: 1.15; }
.section-head p { color: var(--ink-dim); font-size: 16.5px; margin: 0; }
.divider { border: none; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---- Funciones: carrusel ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.carousel { position: relative; }
.carousel-track { display: grid; grid-template-columns: 100%; }
.feature-slide {
  grid-area: 1 / 1;
  display: flex; align-items: center; gap: 50px; padding: 46px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s ease;
}
.feature-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.feature-text, .feature-media { flex: 1 1 0; min-width: 0; }
.feature-text h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 14px; line-height: 1.2; }
.feature-text p { color: var(--ink-dim); font-size: 15.5px; margin: 0; max-width: 46ch; }
.feature-media .appframe { max-width: 460px; margin: 0 auto; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 10px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--celeste-dim);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s;
}
.carousel-arrow:hover { border-color: var(--celeste); color: var(--celeste); transform: translateY(-1px); }
.carousel-arrow:focus-visible { outline: 2px solid var(--celeste); outline-offset: 2px; }
.carousel-dots { display: flex; align-items: center; gap: 9px; }
.carousel-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 100px; background: var(--ink-faint); opacity: .4; cursor: pointer; transition: all .2s; }
.carousel-dot:hover { opacity: .7; }
.carousel-dot.active { width: 22px; background: var(--celeste); opacity: 1; }
.carousel-dot:focus-visible { outline: 2px solid var(--celeste); outline-offset: 2px; }

@media (max-width: 920px) {
  .feature-slide { flex-direction: column; gap: 26px; padding: 34px 0; }
}

/* ---- Recorrido del producto: ventanas de app ilustradas ---- */
.tour-note { font-size: 12.5px; color: var(--ink-faint); margin: -34px 0 34px; }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.appframe { overflow: hidden; background: var(--surface); box-shadow: 0 20px 46px -30px rgba(34,31,26,.32); }
.appframe-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.appframe-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.appframe-dot:nth-child(1) { background: var(--margen); opacity: .5; }
.appframe-dot:nth-child(2) { background: #d9ac3f; opacity: .5; }
.appframe-dot:nth-child(3) { background: var(--on); opacity: .5; }
.appframe-url { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); margin-left: 6px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 100px; padding: 3px 10px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appframe-cap { padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-dim); }
.appframe-cap strong { color: var(--ink); }
.appframe-body { padding: 18px; }

.mock-att-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.mock-att-row:last-child { border-bottom: none; }
.mock-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--celeste-soft); flex-shrink: 0; }
.mock-att-name { font-size: 12.5px; font-weight: 600; flex: 1; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; }
.mock-dot.p { background: var(--on); animation: dotLight 2.4s ease-in-out infinite; }
.mock-att-row:nth-child(1) .mock-dot.p { animation-delay: 0s; }
.mock-att-row:nth-child(2) .mock-dot.p { animation-delay: .3s; }
.mock-att-row:nth-child(3) .mock-dot.p { animation-delay: .6s; }
.mock-att-row:nth-child(4) .mock-dot.p { animation-delay: .9s; }
@keyframes dotLight { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.mock-dot.p2 { background: var(--on); opacity: .35; }
.mock-dot.a { background: var(--margen); opacity: .55; }
.mock-bar-track { width: 46px; height: 6px; background: var(--line-soft); border-radius: 100px; overflow: hidden; }
.mock-bar-fill { height: 100%; background: var(--celeste); border-radius: 100px; }

.mock-pay-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: 12px; }
.mock-pay-label { font-size: 13px; font-weight: 600; }
.mock-pay-amount { font-family: var(--mono); font-size: 13px; }
.mock-pill { font-family: var(--mono); font-size: 10px; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; background: var(--on-soft); color: var(--on); font-weight: 600; }
.mock-pill.flip { position: relative; background: var(--gold-soft); color: var(--gold); }
.mock-pill.flip .s1 { display: block; animation: pillOut 4s ease-in-out infinite; }
.mock-pill.flip .s2 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--on-soft); color: var(--on); border-radius: 100px; opacity: 0; animation: pillIn 4s ease-in-out infinite; }
@keyframes pillOut { 0%, 45% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pillIn { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }
.mock-store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-store-item { border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 10px 8px; text-align: center; }
.mock-store-item .em { font-size: 18px; display: block; margin-bottom: 4px; }
.mock-store-item .st { font-family: var(--mono); font-size: 10.5px; color: var(--ink-dim); }

.mock-word-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.mock-letter { width: 30px; height: 34px; border-radius: 7px; background: var(--celeste); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.mock-letter.dim { background: var(--surface-2); color: var(--ink-faint); border: 1px solid var(--line-soft); }
.mock-score-row { display: flex; justify-content: space-between; align-items: center; }
.mock-score { font-family: var(--mono); font-size: 12.5px; color: var(--ink-dim); }
.mock-stars { font-family: var(--mono); font-size: 12.5px; color: var(--on); font-weight: 600; }

.mock-chat-bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; margin-bottom: 10px; line-height: 1.4; opacity: 0; animation: bubbleIn .5s ease forwards; }
.mock-chat-bubble.out { background: var(--wa); color: #fff; border-bottom-right-radius: 3px; margin-left: auto; }
.mock-chat-bubble.in { background: var(--surface-2); border: 1px solid var(--line-soft); border-bottom-left-radius: 3px; }
.mock-chat-bubble:nth-child(1) { animation-delay: .1s; }
.mock-chat-bubble:nth-child(2) { animation-delay: .8s; }
.mock-chat-bubble:nth-child(3) { animation-delay: 1.5s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Nuevos mocks: alumnos, archivos, sueldos, portal de padres, sitio ---- */
.mock-student-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; opacity: 0; animation: rowIn .5s ease forwards; }
.mock-student-row:last-child { border-bottom: none; }
.mock-student-row:nth-child(1) { animation-delay: .05s; }
.mock-student-row:nth-child(2) { animation-delay: .2s; }
.mock-student-row:nth-child(3) { animation-delay: .35s; }
.mock-student-row:nth-child(4) { animation-delay: .5s; }
.mock-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--celeste-dim); background: var(--celeste-soft); border-radius: 100px; padding: 3px 10px; animation: tagCycle 6s ease-in-out infinite; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tagCycle { 0%, 100% { color: var(--celeste-dim); background: var(--celeste-soft); } 50% { color: var(--gold); background: var(--gold-soft); } }

.mock-file-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.mock-file-row:last-child { border-bottom: none; }
.mock-file-icon { width: 22px; height: 22px; border-radius: 6px; background: var(--celeste-soft); flex-shrink: 0; }
.mock-file-name { flex: 1; font-weight: 600; }
.mock-file-badge { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--celeste-dim); background: var(--celeste-soft); border-radius: 100px; padding: 3px 9px; animation: filePulse 1.6s ease-in-out infinite; }
@keyframes filePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.mock-salary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.mock-salary-row:last-child { border-bottom: none; }
.mock-salary-name { font-weight: 600; flex: 1; }
.mock-salary-amount { font-family: var(--mono); color: var(--ink-dim); }
.mock-check { width: 18px; height: 18px; border-radius: 50%; background: var(--on-soft); color: var(--on); font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mock-salary-row:last-child .mock-check { animation: checkDraw 2.4s ease-in-out infinite; }
@keyframes checkDraw { 0% { transform: scale(0); opacity: 0; } 20% { transform: scale(1.15); opacity: 1; } 30% { transform: scale(1); } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

.mock-parent-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-parent-tile { position: relative; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 16px 8px; text-align: center; font-size: 12px; font-weight: 600; background: var(--surface-2); }
.mock-badge-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--margen); animation: badgePulse 1.6s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

.mock-site-preview { display: flex; flex-direction: column; gap: 10px; }
.mock-site-hero { height: 70px; border-radius: var(--r-sm); background: var(--celeste); animation: siteAccent 6s ease-in-out infinite; }
.mock-site-line { height: 8px; border-radius: 100px; background: var(--line-soft); width: 100%; }
.mock-site-line.short { width: 55%; }
.mock-site-btn { align-self: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; background: var(--celeste); color: #fff; }
@keyframes siteAccent { 0%, 100% { background: var(--celeste); } 50% { background: var(--gold); } }

/* ---- Nuevos mocks: docentes, calendario, matrícula, estadísticas, mensajería, evaluaciones ---- */
.mock-teacher-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; opacity: 0; animation: rowIn .5s ease forwards; }
.mock-teacher-row:last-child { border-bottom: none; }
.mock-teacher-row:nth-child(1) { animation-delay: .05s; }
.mock-teacher-row:nth-child(2) { animation-delay: .2s; }
.mock-teacher-row:nth-child(3) { animation-delay: .35s; }

.mock-cal-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; opacity: 0; animation: rowIn .5s ease forwards; }
.mock-cal-row:last-child { border-bottom: none; }
.mock-cal-row:nth-child(1) { animation-delay: .05s; }
.mock-cal-row:nth-child(2) { animation-delay: .2s; }
.mock-cal-row:nth-child(3) { animation-delay: .35s; }
.mock-cal-row:nth-child(4) { animation-delay: .5s; }
.mock-cal-time { font-family: var(--mono); font-size: 11px; color: var(--celeste-dim); background: var(--celeste-soft); border-radius: 100px; padding: 3px 9px; flex-shrink: 0; }
.mock-cal-label { flex: 1; font-weight: 600; }

.mock-enroll-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; opacity: 0; animation: rowIn .5s ease forwards; }
.mock-enroll-row:last-child { border-bottom: none; }
.mock-enroll-row:nth-child(1) { animation-delay: .05s; }
.mock-enroll-row:nth-child(2) { animation-delay: .2s; }
.mock-enroll-row:nth-child(3) { animation-delay: .35s; }
.mock-pill.new { background: var(--gold-soft); color: var(--gold); }

.mock-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stat { text-align: center; }
.mock-stat-num { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--celeste-dim); }
.mock-stat-label { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; }
.mock-stat-bar { display: flex; justify-content: center; }
.mock-stat-bar .mock-bar-track { width: 100%; }

.mock-mail-row { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 9px 20px 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.mock-mail-row:last-child { border-bottom: none; }
.mock-mail-from { font-weight: 700; color: var(--ink); }
.mock-mail-subj { color: var(--ink-dim); }
.mock-mail-row.unread .mock-mail-from { color: var(--celeste-dim); }

.mock-eval-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; opacity: 0; animation: rowIn .5s ease forwards; }
.mock-eval-row:last-child { border-bottom: none; }
.mock-eval-row:nth-child(1) { animation-delay: .05s; }
.mock-eval-row:nth-child(2) { animation-delay: .2s; }
.mock-eval-row:nth-child(3) { animation-delay: .35s; }
.mock-eval-row:nth-child(4) { animation-delay: .5s; }
.mock-eval-score { font-family: var(--mono); font-size: 12.5px; color: var(--celeste-dim); background: var(--celeste-soft); border-radius: 100px; padding: 3px 10px; }

/* ---- Reduced motion: freeze the 14 feature mockups to an end state ---- */
@media (prefers-reduced-motion: reduce) {
  .mock-student-row,
  .mock-teacher-row,
  .mock-cal-row,
  .mock-enroll-row,
  .mock-eval-row,
  .mock-chat-bubble,
  .mock-tag,
  .mock-dot.p,
  .mock-file-badge,
  .mock-badge-dot,
  .mock-site-hero,
  .mock-pill.flip .s1,
  .mock-pill.flip .s2,
  .mock-salary-row:last-child .mock-check {
    animation: none !important;
  }
  .mock-student-row, .mock-teacher-row, .mock-cal-row, .mock-enroll-row, .mock-eval-row, .mock-chat-bubble { opacity: 1 !important; transform: none !important; }
  .mock-pill.flip .s1 { opacity: 1 !important; }
  .mock-pill.flip .s2 { opacity: 0 !important; }
}

/* ---- Grilla de funciones ---- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.cap { background: var(--surface); padding: 30px 26px; }
.cap .tag { font-family: var(--mono); font-size: 11px; color: var(--celeste-dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.cap h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.cap p { color: var(--ink-dim); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ---- Personalización ---- */
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.custom-item { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 24px; background: var(--surface); display: flex; gap: 16px; }
.custom-item .ci-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--celeste-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.custom-item h4 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.custom-item p { margin: 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; }

/* ---- Planes ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { padding: 30px 26px; background: var(--surface); position: relative; display: flex; flex-direction: column; }
.plan.featured { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan-badge { position: absolute; top: -12px; right: 26px; background: var(--gold); color: #2b1c00; font-family: var(--mono); font-size: 11px; padding: 5px 12px; border-radius: 100px; font-weight: 500; }
.plan-name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
.plan-price { font-family: var(--display); font-weight: 600; font-size: 34px; margin-bottom: 4px; line-height:1.1; }
.plan-price sup { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); font-style: normal; }
.plan-cycle { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.plan-feats { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-feats li { font-size: 13.5px; color: var(--ink-dim); display: flex; gap: 10px; align-items: flex-start; }
.plan-feats li::before { content: '—'; color: var(--margen); flex-shrink: 0; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---- CTA ---- */
.cta-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.cta-inner { text-align: center; padding: 84px 0; }
.cta-inner h2 { font-family: var(--display); font-weight: 600; font-size: clamp(29px, 3.6vw, 44px); margin: 0 0 18px; }
.cta-inner p { color: var(--ink-dim); font-size: 17px; max-width: 52ch; margin: 0 auto 34px; }

/* ---- Footer ---- */
footer { padding: 40px 0 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-mono { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.foot-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { font-size: 13px; color: var(--ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .notebook { max-width: 460px; }
  .caps { grid-template-columns: 1fr 1fr; }
  .custom-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .caps { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 44px; }
  section { padding: 56px 0; }
  .cta-inner { padding: 56px 0; }
  .drawer { width: 100%; }
  .mock-store-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Partner portal ---- */
.portal-main { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.portal-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 34px 32px; box-shadow: 0 24px 60px -30px rgba(34, 31, 26, 0.35); }
.portal-card h1 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 6px; }
.portal-sub { color: var(--ink-dim); font-size: 14px; margin: 0 0 26px; }
.portal-field { margin-bottom: 18px; }
.portal-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-dim); }
.portal-field input { width: 100%; font: inherit; font-size: 15px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); }
.portal-field input:focus { outline: 2px solid var(--celeste); outline-offset: 1px; border-color: var(--celeste); }
.portal-error { background: var(--margen-soft); color: var(--margen); border: 1px solid var(--margen); border-radius: var(--r-sm); padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; }
.portal-btn-full { width: 100%; justify-content: center; }
.portal-dash { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.portal-dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.portal-dash-head h1 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0; }
.portal-dash .portal-card { max-width: none; margin-bottom: 20px; padding: 26px 28px; }
.portal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.portal-card-head h2 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; }
.status-pill { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 14px; border-radius: 100px; font-weight: 600; flex-shrink: 0; }
.status-pill.status-trial { background: var(--gold); color: #2b1c00; }
.status-pill.status-active { background: var(--on); color: #fff; }
.status-pill.status-suspended, .status-pill.status-cancelled { background: var(--margen); color: #fff; }
.portal-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.portal-kv:last-child { border-bottom: none; }
.portal-kv .k { color: var(--ink-dim); }
.portal-kv .v { font-weight: 600; text-align: right; }
.portal-feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.portal-feat-list li { font-size: 13.5px; color: var(--ink-dim); display: flex; gap: 8px; align-items: flex-start; }
.portal-feat-list li::before { content: '✓'; color: var(--on); font-weight: 700; flex-shrink: 0; }
.portal-empty { color: var(--ink-dim); font-size: 14px; line-height: 1.6; margin: 0; }
.portal-site-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.portal-loading { text-align: center; padding: 80px 20px; color: var(--ink-faint); font-family: var(--mono); font-size: 13px; }
@media (max-width: 560px) {
  .portal-feat-list { grid-template-columns: 1fr; }
  .portal-card { padding: 26px 22px; }
  .portal-dash .portal-card { padding: 22px 20px; }
}

/* ---- Nav login link + login chooser ---- */
.nav-link { font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--celeste-dim); }
.chooser-wrap { width: 100%; max-width: 640px; }
.chooser-head { text-align: center; margin-bottom: 32px; }
.chooser-head h1 { font-family: var(--display); font-weight: 600; font-size: 30px; margin: 10px 0 8px; }
.chooser-head p { color: var(--ink-dim); font-size: 15px; margin: 0; }
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chooser-card { display: block; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px 24px; background: var(--surface); text-decoration: none; color: inherit; box-shadow: 0 24px 60px -34px rgba(34, 31, 26, 0.35); transition: all .15s; }
.chooser-card:hover { border-color: var(--celeste); transform: translateY(-2px); }
.chooser-card h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 14px 0 6px; }
.chooser-card p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.55; margin: 0 0 14px; }
.chooser-cta { font-size: 13.5px; font-weight: 700; color: var(--celeste-dim); }
@media (max-width: 560px) {
  .chooser-grid { grid-template-columns: 1fr; }
}

/* ---- Simplified single-column hero ---- */
.hero-solo { padding: 88px 0 72px; }
.hero-solo-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hero-solo-inner .eyebrow { justify-content: center; }
.hero-solo-inner .lede { margin-left: auto; margin-right: auto; }
.hero-solo-inner .hero-ctas { justify-content: center; }
.hero-solo-inner .trust-note { justify-content: center; }
.hero-mark { width: 104px; height: 104px; object-fit: contain; margin: 0 auto 26px; }
@media (max-width: 560px) {
  .hero-mark { width: 80px; height: 80px; margin-bottom: 20px; }
}
