/* ============================================================
   edusoftnet — Componentes
   Replican 1:1 la mecánica de fidu.la (ver docs/DESIGN-TOKENS.md)
   ============================================================ */

/* ============================================================
   BOTONES  —  .hero_button_dark / .hero_button_light de fidu
   ============================================================ */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: var(--pad-btn);
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  font-weight: 500;
  letter-spacing: var(--tracking-btn);
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

/* --- Oscuro: acción principal --- */
.btn--dark {
  background: var(--dark);
  color: #fff;
}

.btn--dark:hover {
  background: var(--dark-hover);
  background-image: var(--grad-hover);
  color: #fff;
}

.btn--dark:active { background: var(--accent-press); }

/* --- Claro: acción secundaria --- */
.btn--light {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn--light:hover {
  background: var(--accent);
  background-image: var(--grad-hover);
  color: #fff;
}

.btn--light:active { background: var(--accent-press); color: #fff; }

/* --- Contorno: terciaria sobre superficie gris --- */
.btn--ghost {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* --- Enlace con flecha --- */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
}

.btn-link::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}

.btn-link:hover::after { transform: translateX(3px); }

/* --- Grupo de botones del hero --- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

/* ============================================================
   NAVBAR  —  .navbar-2 de fidu
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

/* Con el menú abierto la cabecera pasa a fixed: el sticky necesita un
   contenedor de scroll, y el overflow:hidden del body lo anula. */
.nav.has-menu-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* Opaca del todo: al 95% se transparentaba la pagina de detras. */
  background: #fff;
}

/* Con el menú móvil abierto hay que soltar el backdrop-filter.
   Un filtro convierte al elemento en bloque contenedor de sus
   descendientes `position: fixed`, así que el panel se colocaba
   respecto a la barra —61 px de alto— en vez de respecto a la
   ventana, y quedaba reducido a una franja de 40 px. */
.nav.has-menu-open {
  background: #fff;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: var(--pad-nav);
}

.nav__brand img { height: 32px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}

/* --- Desplegable --- */
.nav__item { position: relative; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 500;
}

.nav__toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--t-fast) var(--ease);
}

.nav__toggle:hover { background: var(--surface); color: var(--ink); }

.nav__toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  /* El puente de abajo cubre ese hueco de 10px */
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}

.nav__panel[hidden] { display: none; }

/* Entre el botón y el panel hay 10px de separación visual. Sin este
   puente invisible, el puntero cruza una franja que no pertenece ni al
   botón ni al panel: se dispara el mouseleave del .nav__item y el menú
   se cierra justo cuando el usuario iba a pinchar una opción. */
.nav__panel::before {
  content: "";
  position: absolute;
  inset: -12px 0 100% 0;
}

.nav__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.nav__panel a:hover { background: var(--surface); }

.nav__panel .desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 13px;
}

/* --- Hamburguesa --- */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  padding: 10px;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}

.nav__burger span + span { margin-top: 5px; }

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 991px) {
  .nav__burger { display: block; }
  .nav__menu   { display: none; }

  /* Panel móvil a pantalla completa.
     --nav-h lo mide nav.js; el 57px es solo el valor de reserva. */
  .nav__menu--open {
    display: flex;
    position: fixed;
    inset: var(--nav-h, 57px) 0 0;
    z-index: var(--z-menu);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: var(--pad-page);
    overflow-y: auto;
    /* El rebote del panel no debe arrastrar al documento. */
    overscroll-behavior: contain;
  }

  .nav__menu--open .nav__link,
  .nav__menu--open .nav__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 16px 12px;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
    font-size: 18px;
    text-align: left;
  }

  .nav__menu--open .nav__panel {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 4px 0 12px;
    background: var(--surface);
  }

  .nav__menu--open .nav__cta {
    margin-top: auto;
    padding-top: var(--gap);
  }

  .nav__menu--open .btn { display: block; width: 100%; }

  /* El acceso, encima de la demostracion. */
  .nav__menu--open .nav__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav__menu--open .nav__cta .btn--linea {
    display: block;
    padding-inline: 25px;
    border-color: var(--ink);
    color: var(--ink);
  }
}

/* ============================================================
   HERO  —  .landing---hero de fidu
   ============================================================ */

.hero {
  padding-block: 24px 28px;
  text-align: center;
}

.hero__title {
  max-width: var(--measure-hero);
  margin-inline: auto;
  padding-inline: var(--pad-page);
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  font-weight: 700;
}

/* Palabra de acento del hero. Por defecto, tinta sólida.
   Para activar la firma cromática basta añadir la clase --grad
   y dar valor a --grad-text en tokens.css ([[DECISIÓN-DEGRADADO]]). */
.hero__accent { color: var(--ink); }

@supports (-webkit-background-clip: text) {
  .hero__accent--grad {
    background-image: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.hero__sub {
  max-width: 720px;
  margin-inline: auto;
  padding: 14px var(--pad-page) 0;
  color: var(--ink-soft);
  font-size: var(--fs-hero-sub);
  line-height: var(--lh-hero-sub);
  font-weight: 400;
}

/* fidu mantiene la composición en algo más de la mitad del ancho de
   pantalla; a 1200px se comía el hero y desequilibraba el conjunto. */
.hero__media {
  max-width: 980px;
  margin: 30px auto 0;
  padding-inline: 10px;
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius);
}

@media (max-width: 767px) {
  .hero { padding-block: 16px 16px; }
  .hero__media { margin-top: 24px; }
}

/* ============================================================
   BANDA DE LOGOS  —  .customer-proof-3 / .carousel_slider-3
   ============================================================ */

.proof {
  background: var(--bg);
  border-bottom: 5px solid var(--surface);
  padding-block: var(--pad-section);
  overflow: hidden;
}

.proof__title {
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--pad-page);
  text-align: center;
  font-size: var(--fs-proof);
  line-height: var(--lh-proof);
}

.marquee {
  display: flex;
  gap: 60px;
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-block: var(--pad-page);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: 60px;
  min-width: 100%;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track img {
  height: 34px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: filter var(--t-fast) var(--ease),
              opacity var(--t-fast) var(--ease);
}

.marquee__track img:hover { filter: none; opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 60px)); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track + .marquee__track { display: none; }
}

/* ============================================================
   BENTO GRID  —  .quick-stack-30 / .cell-bento---grey de fidu
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: var(--pad-page);
}

.bento--3 { grid-template-columns: repeat(3, 1fr); }

.bento__cell {
  display: flex;
  flex-direction: column;
  background: var(--grad-sky);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}

/* Celda destacada: degradado suave, como .cell-bento-gradient-app */
.bento__cell--feature {
  background: var(--sky);
  background-image: var(--grad-sky-strong);
}

/* Un acento bajo cada título del bento, para que las seis celdas no se
   lean como una rejilla plana */
.bento--3 .bento__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--cell-color, var(--aqua));
}

.bento--3 > :nth-child(6n + 1) { --cell-color: var(--aqua); }
.bento--3 > :nth-child(6n + 2) { --cell-color: var(--lime); }
.bento--3 > :nth-child(6n + 3) { --cell-color: var(--mint); }
.bento--3 > :nth-child(6n + 4) { --cell-color: var(--rose); }
.bento--3 > :nth-child(6n + 5) { --cell-color: var(--sand); }
.bento--3 > :nth-child(6n + 6) { --cell-color: var(--accent-soft); }

/* Celda que ocupa las dos columnas */
.bento__cell--wide { grid-column: span 2; }

.bento__title {
  padding: 10px var(--pad-page);
  text-align: center;
  font-size: var(--fs-bento);
  line-height: var(--lh-bento);
  font-weight: 700;
}

.bento__title a:hover { color: var(--accent); }

.bento__text {
  margin-inline: auto;
  padding: 0 var(--gap) 4px;
  max-width: 46ch;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-bento-sub);
  line-height: var(--lh-bento-sub);
  font-weight: 400;
}

.bento__cell .btn {
  margin: 14px auto 0;
}

.bento__media {
  margin-top: 20px;
  margin-inline: auto;
}

.bento__media img { border-radius: var(--radius-sm); }

/* Entre 768 y 991 px, tres columnas dejan celdas de ~224 px: demasiado
   estrechas para un título de 36 px. Se pasa a dos. */
@media (max-width: 991px) {
  .bento--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .bento,
  .bento--3 { grid-template-columns: 1fr; padding-inline: 10px; }
  .bento__cell--wide { grid-column: span 1; }
}

/* ============================================================
   CARDS  —  catálogo de herramientas, casos, features
   ============================================================ */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--grad-sky);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

/* Un degradado no es animable, asi que el hover trabaja con elevacion
   y sombra en lugar de cambiar el fondo. */
a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -22px rgba(20, 46, 96, .45);
}

.card__tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--sky-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card__title {
  font-size: 22px;
  line-height: 28px;
}

.card__text {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 22px;
}

.card__foot { margin-top: auto; padding-top: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

/* --- Etiqueta de estado: «En desarrollo» / «Próximamente» (FASE 11) --- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.badge--soon { border-color: #cfe0f7; background: var(--accent-soft); color: var(--accent); }

/* ============================================================
   DIAGRAMA DE FLUJO  —  cadenas Estudiante → Docente → …
   ============================================================ */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: var(--pad-page);
}

.flow__node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 18px 22px;
  background: var(--sky);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: center;
}

.flow__node--accent { background: var(--ink); color: #fff; }

.flow__arrow {
  display: flex;
  align-items: center;
  color: var(--ink-faint);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 767px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow__arrow { justify-content: center; transform: rotate(90deg); }
}

/* ============================================================
   FRANJA DE CONVERSIÓN  —  .foot-conversion-2 de fidu
   ============================================================ */

.conversion {
  background: var(--surface);
  background-image: var(--grad-conv);
  padding-block: var(--pad-section);
}

.conversion__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--pad-page) var(--pad-section);
  text-align: center;
}

.conversion__text {
  color: var(--ink-muted);
  font-size: var(--fs-conv);
  line-height: var(--lh-conv);
  font-weight: 700;
}

.conversion .btn { margin-top: 18px; }

@media (max-width: 767px) {
  .conversion__inner { padding-inline: var(--pad-page); }
}

/* ============================================================
   FOOTER  —  .ai-footer de fidu, ampliado
   ============================================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding-block: 56px 28px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--gap);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.footer__brand img { height: 30px; margin-bottom: 14px; }

.footer__tagline {
  max-width: 30ch;
  color: var(--ink-faint);
  font-size: var(--fs-small);
  line-height: 22px;
}

.footer__heading {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer__list a {
  display: block;
  padding: 5px 0;
  color: var(--ink-faint);
  font-size: var(--fs-small);
}

.footer__list a:hover { color: var(--ink); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 20px var(--pad-page) 0;
  border-top: 1px solid var(--hairline);
}

.footer__copyright {
  color: var(--ink-faint);
  font-size: var(--fs-copyright);
  line-height: var(--lh-copyright);
}

.footer__legal a { color: var(--ink); font-size: var(--fs-copyright); }
.footer__legal a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--pad-page) 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--hairline); }
.crumbs ol { display: contents; }
.crumbs li { display: flex; align-items: center; }

/* ============================================================
   FAQ  —  acordeón nativo
   ============================================================ */

.faq {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: 24px;
  font-weight: 400;
  transition: transform var(--t-fast) var(--ease);
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 4px 22px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 24px;
}

/* ============================================================
   FORMULARIO
   ============================================================ */

.field { display: block; margin-bottom: 18px; }

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field__control {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  transition: border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.field__control:hover { background: var(--surface-sunk); }

.field__control:focus {
  background: #fff;
  border-color: var(--accent);
  outline: none;
}

.field__control:focus-visible { outline: none; }

textarea.field__control { min-height: 120px; resize: vertical; }

.field__hint { margin-top: 6px; color: var(--ink-faint); font-size: 12px; }

/* ============================================================
   VIDEO  —  carga bajo demanda con poster (FASE 26)
   ============================================================ */

.video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.video img { width: 100%; height: 100%; object-fit: cover; }

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .18);
  border: 0;
  transition: background-color var(--t-fast) var(--ease);
}

.video__play:hover { background: rgba(0, 0, 0, .3); }

.video__play span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  padding-left: 4px;
  box-shadow: var(--shadow);
}

/* ============================================================
   PLACEHOLDER DE MEDIA  (FASE 35)
   Marcador elegante mientras no existe el recurso final.
   Cada uno declara qué imagen le corresponde en docs/MEDIA.md.
   ============================================================ */

.ph {
  display: grid;
  place-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: var(--pad-page);
  background:
    linear-gradient(135deg, #fbfbfc, var(--surface-sunk)),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-align: center;
}

.ph--tall   { aspect-ratio: 4 / 3; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide   { aspect-ratio: 21 / 9; }

.ph__label {
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 600;
}

.ph__meta {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 16px;
}

/* Marca denominativa para integraciones sin logotipo propio disponible
   (p. ej. SIAGIE). Comparte altura y tratamiento con los logos. */
.marquee__word {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  height: 34px;
  color: var(--ink-faint);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .55;
  white-space: nowrap;
  transition: opacity var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}

.marquee__word:hover { opacity: 1; color: var(--ink); }

/* ============================================================
   SPLIT  —  sección de dos columnas: texto + media
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

/* Invierte el orden visual sin tocar el orden del DOM */
.split--reverse .split__media { order: -1; }

.split__title {
  font-size: var(--fs-section);
  line-height: var(--lh-section);
  max-width: 16ch;
}

.split__text {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--fs-section-sub);
  line-height: var(--lh-section-sub);
}

.split__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 991px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split--reverse .split__media { order: 0; }
  .split__title { max-width: none; }
}

/* ============================================================
   LISTA DE CAPACIDADES
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.feature__title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.feature__text {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 22px;
}

/* Lista con marca de verificación */
.checks { display: grid; gap: 12px; margin-top: 24px; }

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 22px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ============================================================
   PASOS NUMERADOS  —  procesos (planificar → evaluar → …)
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--gap);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
  counter-reset: step;
}

/* Tarjeta blanca con filete y barra de color arriba. Antes era gris
   sobre gris y los cinco pasos se leían como una sola mancha. */
.step {
  position: relative;
  background: var(--grad-sky);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  counter-increment: step;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--step-color, var(--aqua));
}

/* El número, en una ficha del color del paso */
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--step-color, var(--aqua));
  color: var(--step-ink, var(--aqua-ink));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Ciclo de cinco colores; se repite si hubiera más pasos */
.step:nth-child(5n + 1) { --step-color: var(--aqua); --step-ink: var(--aqua-ink); }
.step:nth-child(5n + 2) { --step-color: var(--lime); --step-ink: var(--lime-ink); }
.step:nth-child(5n + 3) { --step-color: var(--mint); --step-ink: var(--mint-ink); }
.step:nth-child(5n + 4) { --step-color: var(--rose); --step-ink: var(--rose-ink); }
.step:nth-child(5n + 5) { --step-color: var(--sand); --step-ink: #6b4708; }

.step__title { font-size: 17px; line-height: 22px; }

.step__text {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 21px;
}

/* ============================================================
   MOCKUP DE CONVERSACIÓN CON IA  (FASE 11)
   ============================================================ */

.chat {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}

.chat__body { display: grid; gap: 14px; padding: 20px; }

.chat__msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 21px;
}

.chat__msg--user {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.chat__msg--bot {
  justify-self: start;
  background: var(--surface);
  color: var(--ink-soft);
  border-bottom-left-radius: 5px;
}

.chat__note {
  padding: 0 20px 18px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 17px;
}

/* ============================================================
   CONVERGENCIA DE DATOS  (FASE 12)
   ============================================================ */

.converge {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.converge__inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.converge__chip {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-small);
  font-weight: 600;
}

.converge__down {
  color: var(--hairline);
  font-size: 26px;
  line-height: 1;
}

.converge__out {
  width: 100%;
  max-width: 620px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.converge__out b { display: block; font-size: 22px; line-height: 28px; }

.converge__out span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: var(--fs-small);
  line-height: 21px;
}

/* ============================================================
   CASOS  (FASE 13)
   ============================================================ */

.case {
  display: flex;
  flex-direction: column;
  background: var(--grad-sky);
  border-radius: var(--radius);
  overflow: hidden;
}

.case__media { background: var(--surface-sunk); }
.case__media .ph { border: 0; border-radius: 0; }

.case__body { display: grid; gap: 14px; padding: 24px; }

.case__school { font-size: 19px; line-height: 24px; }

.case__block > dt {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case__block > dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 21px;
}

/* ============================================================
   VARIANTES
   ============================================================ */

/* Card colocada sobre una sección gris: se invierte el contraste */
.card--on-surface .card__tag { background: #fff; }
a.card--on-surface:hover { box-shadow: var(--shadow); }

/* Flujo apilado en vertical, para columnas estrechas */
.flow--stack {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.flow--stack .flow__node { min-width: 100%; }

.flow--stack .flow__arrow {
  justify-content: center;
  transform: rotate(90deg);
}

/* Split alineado al borde superior en vez de al centro */
.split--top { align-items: start; }

/* Texto secundario dentro de un split: nota al pie, aclaración */
.split__text--fine {
  font-size: var(--fs-small);
  line-height: 22px;
  color: var(--ink-faint);
}

/* Bloque de convergencia en superficie clara */
.converge__out--soft {
  background: var(--surface);
  color: var(--ink);
}

/* El selector de span no puede alcanzar al badge: le robaba el color del
   texto y lo dejaba en 1,66:1 sobre su propio fondo oscuro. */
.converge__out--soft span:not(.badge) { color: var(--ink-soft); }

.converge__out--soft .badge {
  vertical-align: middle;
  margin-left: 6px;
}

/* ============================================================
   SELECCIÓN DE HERRAMIENTAS
   Las cuatro que más usa un perfil. Tarjeta blanca sobre la
   sección gris —antes eran grises sobre gris y desaparecían— con
   el acento del área y un número de orden.
   ============================================================ */

.tool-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--grad-sky);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out-soft),
              box-shadow .35s var(--ease-out-soft),
              border-color .35s var(--ease-out-soft);
}

.pick::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--pick-color, var(--aqua));
}

.pick:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .3);
}

.pick__area {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 11px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--pick-color, var(--aqua));
  color: var(--pick-ink, var(--aqua-ink));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.pick__name {
  font-size: 22px;
  line-height: 27px;
  letter-spacing: var(--tracking-tight);
}

.pick__claim {
  margin-top: 4px;
  color: var(--sky-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.pick__text {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  line-height: 22px;
}

.pick__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.pick__foot::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}

.pick:hover .pick__foot::after { transform: translateX(4px); }

/* Colores por área */
.pick--academia   { --pick-color: var(--aqua); --pick-ink: var(--aqua-ink); }
.pick--gestion    { --pick-color: var(--lime); --pick-ink: var(--lime-ink); }
.pick--comunidad  { --pick-color: var(--mint); --pick-ink: var(--mint-ink); }
.pick--bienestar  { --pick-color: var(--rose); --pick-ink: var(--rose-ink); }
.pick--asistencia { --pick-color: var(--sand); --pick-ink: #6b4708; }
.pick--integracion { --pick-color: var(--accent-soft); --pick-ink: var(--accent); }

@media (max-width: 1100px) {
  .tool-picks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tool-picks { grid-template-columns: 1fr; }
}

/* ============================================================
   BOTONES DE TIENDA
   Insignias propias en vez de las oficiales: las que traía el sitio
   anterior venían a 300px, en escala de grises y con el diseño
   antiguo de Apple. Si se prefieren las oficiales, se sustituyen.
   ============================================================ */

.tiendas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tienda {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 18px;
  background: var(--dark);
  border: 1px solid var(--dark);
  border-radius: 14px;
  color: #fff;
  transition: background-color var(--t-fast) var(--ease),
              transform .25s var(--ease-out-soft),
              box-shadow .25s var(--ease-out-soft);
}

.tienda:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4);
}

.tienda:active { transform: translateY(0); box-shadow: none; }

.tienda svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: currentColor;
}

.tienda__texto { display: grid; line-height: 1.15; }

.tienda__rotulo {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.tienda__nombre {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* Variante clara, para usar sobre fondo oscuro */
.tienda--claro {
  background: #fff;
  border-color: var(--hairline);
  color: var(--ink);
}

.tienda--claro:hover { background: #fff; }
.tienda--claro .tienda__rotulo { color: var(--ink-faint); }

/* En el footer, en línea y más pequeñas */
.footer .tiendas { margin-top: 14px; }
.footer .tienda { padding: 8px 14px; gap: 9px; border-radius: 11px; }
.footer .tienda svg { width: 19px; height: 19px; }
.footer .tienda__nombre { font-size: 13px; }
.footer .tienda__rotulo { font-size: 9px; }

/* ============================================================
   TARJETAS DE CONCEPTO
   Mismo tratamiento visual que los canales de /contacto/: ficha
   blanca, filete pastel superior e icono en chip de color.
   A diferencia de .canal, no son enlaces.
   ============================================================ */

.tarjetas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--grad-sky);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out-soft),
              box-shadow .35s var(--ease-out-soft),
              border-color .35s var(--ease-out-soft);
}

.tarjeta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--tarjeta-color, var(--mint));
}

.tarjeta:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .3);
}

.tarjeta--academia { --tarjeta-color: var(--aqua); --tarjeta-ink: var(--aqua-ink); }
.tarjeta--gestion  { --tarjeta-color: var(--lime); --tarjeta-ink: var(--lime-ink); }
.tarjeta--aula     { --tarjeta-color: var(--rose); --tarjeta-ink: var(--rose-ink); }

.tarjeta__icono {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tarjeta-color, var(--mint));
  color: var(--tarjeta-ink, var(--mint-ink));
}

.tarjeta__icono svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tarjeta__rotulo {
  display: block;
  color: var(--sky-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tarjeta__titulo {
  margin-top: 4px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

.tarjeta__texto {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 20px;
}

@media (max-width: 900px) {
  .tarjetas { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tarjeta { transition: none; }
  .tarjeta:hover { transform: none; }
}

/* ============================================================
   FOTOGRAFIA EN UNA COLUMNA DE .split
   Misma esquina y sombra que los mockups, para que una foto real
   y una pantalla simulada se lean como piezas de la misma familia.
   ============================================================ */

.foto {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(20, 46, 96, .5);
}

/* Recorte con alfa: no lleva esquina ni caja, la sombra sigue el
   contorno real de la pieza en lugar de un rectangulo. */
.foto--recorte {
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 26px 40px rgba(20, 46, 96, .28));
}

/* Un telefono suelto necesita freno de ancho; una composicion de varios
   dispositivos ocupa la columna entera. */
.foto--movil { max-width: 340px; }

@media (max-width: 991px) {
  .foto--movil { max-width: 320px; }
}

/* ------------------------------------------------------------
   PRUEBA: portada sobre el degradado rosado de la franja de
   conversion. Se quita borrando esta regla y la clase
   .hero--degradado de index.html.
   ------------------------------------------------------------ */
.hero--degradado {
  background-image: var(--grad-conv);
}

/* Split de una sola columna: cuando la pieza de apoyo no existe, el
   texto no debe quedarse pegado a la izquierda con un vacio al lado. */
.split--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* ============================================================
   RESALTE DESLIZANTE DEL MENU
   Un solo bloque que viaja de un enlace a otro al pasar el raton
   y vuelve al enlace de la pagina actual al salir. Tomado del
   patron del sidebar de dashboard, con la paleta de edusoftnet.
   ============================================================ */

.nav__hl {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: 12px;
  border: 1px solid rgba(38, 65, 134, .20);
  background: linear-gradient(100deg,
              rgba(38, 65, 134, .11),
              rgba(123, 47, 107, .09) 55%,
              rgba(206, 21, 63, .06));
  box-shadow: 0 10px 24px -18px rgba(38, 65, 134, .85);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1),
              width .3s cubic-bezier(.16, 1, .3, 1),
              height .3s cubic-bezier(.16, 1, .3, 1),
              opacity .3s cubic-bezier(.16, 1, .3, 1);
}

/* El resalte solo vive en escritorio. Estas reglas van dentro de la
   media query a proposito: fuera de ella pisarian el position:fixed
   del menu desplegado en movil. */
@media (min-width: 992px) {
  .nav__menu { position: relative; }

  .nav__menu > .nav__link,
  .nav__menu .nav__toggle,
  .nav__panel > a { position: relative; }
}

/* Dentro del desplegable el resalte va sobre blanco, no sobre el gris
   de la cabecera: el mismo degradado pesaria demasiado.
   El panel ya es position:absolute, asi que no hay que darle
   posicionamiento: hacerlo lo sacaria de su capa flotante. */
.nav__hl--panel {
  border-radius: var(--radius-sm);
  border-color: rgba(38, 65, 134, .14);
  background: linear-gradient(100deg,
              rgba(38, 65, 134, .08),
              rgba(123, 47, 107, .06) 55%,
              rgba(206, 21, 63, .04));
  box-shadow: 0 8px 18px -16px rgba(38, 65, 134, .7);
}

.nav__panel.has-hl a:hover { background-color: transparent; }

/* Con el resalte activo, el fondo propio de cada enlace sobra: se
   duplicarian dos superficies. El color del texto si se conserva. */
.nav__menu.has-hl .nav__link:hover,
.nav__menu.has-hl .nav__link[aria-current="page"],
.nav__menu.has-hl .nav__toggle:hover { background-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .nav__hl { transition: opacity .2s linear; }
}

/* En movil el menu se apila y el resalte deslizante estorba. */
@media (max-width: 991px) {
  .nav__hl { display: none; }
  .nav__panel.has-hl a:hover { background-color: var(--surface); }
  .nav__menu.has-hl .nav__link:hover,
  .nav__menu.has-hl .nav__link[aria-current="page"],
  .nav__menu.has-hl .nav__toggle:hover { background-color: var(--surface); }
}

/* Los dos botones de la cabecera, en una sola linea. */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Boton de contorno: acceso en la cabecera, junto al oscuro.
   Al pasar el raton vira a degradado con texto blanco, como el de
   fidu. El degradado se pinta en una capa aparte para poder
   desvanecerlo: un background-image no se puede animar. */
.btn--linea {
  position: relative;
  z-index: 0;
  padding-inline: 18px;
  background: #fff;
  border: 1px solid var(--ink);
  color: var(--ink);
  overflow: hidden;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}

.btn--linea::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: linear-gradient(122deg, #264186, #4a3f8f 55%, #8d2a5c);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}

.btn--linea:hover,
.btn--linea:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -12px rgba(38, 65, 134, .6);
}

.btn--linea:hover::before,
.btn--linea:focus-visible::before { opacity: 1; }

.btn--linea:active { transform: translateY(1px); }

/* El icono solo se usa en el tramo mas estrecho. */
.btn--linea .btn__icono { display: none; }

.btn--linea .btn__icono {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* De 992 a 1099 no cabe ni el rotulo: queda el icono. El nombre
   accesible lo aporta el aria-label del enlace. */
@media (min-width: 992px) and (max-width: 1099px) {
  .nav__cta .btn--linea {
    display: inline-grid;
    place-content: center;
    padding-inline: 11px;
  }

  .nav__cta .btn--linea .btn__icono { display: block; }
  .nav__cta .btn--linea .btn__texto { display: none; }
}

/* Tramo intermedio: el boton entero no cabe junto a la llamada a la
   accion, pero el acceso no puede desaparecer. Se queda como enlace. */
@media (min-width: 992px) and (max-width: 1364px) {
  .nav__cta .btn--linea {
    padding-inline: 8px;
    border-color: transparent;
    background: none;
    color: var(--ink-soft);
    box-shadow: none;
  }

  .nav__cta .btn--linea::before { display: none; }

  .nav__cta .btn--linea:hover {
    color: var(--ink);
    border-color: transparent;
    box-shadow: none;
  }
}

/* Tramo de portatil: seis enlaces, logotipo y llamada a la accion no
   caben con el espaciado de escritorio y la barra se partia en dos. */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav__menu { gap: 0; }

  .nav__link,
  .nav__toggle {
    padding-inline: 9px;
    font-size: 14px;
  }

  .nav__cta .btn--dark { padding-inline: 18px; }
}

/* Justo encima del menu hamburguesa el margen es minimo. */
@media (min-width: 992px) and (max-width: 1099px) {
  .nav__link,
  .nav__toggle {
    padding-inline: 6px;
    font-size: 13px;
  }

  .nav__cta .btn--dark {
    padding-inline: 14px;
    font-size: 13px;
  }
}
