/* ============================================================
   FUXION DIGITAL — Sistema de diseño
   Tipografía: Sora (display) + Work Sans (texto) + JetBrains Mono (etiquetas)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Work+Sans:wght@400;500;600&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Color */
  --ink: #14213D;
  --ink-soft: #4A5578;
  --tech: #1D5FD6;
  --tech-dark: #123B8C;
  --tech-tint: #EAF1FF;
  --edu: #E8483A;
  --edu-dark: #B82F24;
  --edu-tint: #FDECE9;
  --gold: #F2A93B;
  --paper: #FBF8F2;
  --paper-alt: #F1ECE0;
  --white: #FFFFFF;
  --line: #E4DFD2;

  --nivel-preescolar: #F2963B;
  --nivel-primaria: #7FB43F;
  --nivel-secundaria: #E8483A;

  /* Type */
  --f-display: 'Sora', sans-serif;
  --f-body: 'Work Sans', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(20, 33, 61, 0.25);
  --shadow-sm: 0 8px 20px -12px rgba(20, 33, 61, 0.22);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; line-height: 1.65; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.tech { color: var(--tech); }
.eyebrow.edu { color: var(--edu); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-tech { background: var(--tech); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-tech:hover { background: var(--tech-dark); }
.btn-edu { background: var(--edu); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-edu:hover { background: var(--edu-dark); }
.btn-outline-tech { border-color: var(--tech); color: var(--tech); background: transparent; }
.btn-outline-tech:hover { background: var(--tech-tint); }
.btn-outline-edu { border-color: var(--edu); color: var(--edu); background: transparent; }
.btn-outline-edu:hover { background: var(--edu-tint); }
.btn-ghost { color: var(--ink); background: var(--white); box-shadow: var(--shadow-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line);
}
/* El blur vive en un pseudo-elemento aparte: si el backdrop-filter se
   pone directo en .site-header, cualquier hijo con position:fixed
   (como el menú móvil) queda mal posicionado, porque backdrop-filter
   convierte a su elemento en el "contenedor" de los fixed — un gotcha
   clásico de CSS. Así evitamos el problema y mantenemos el efecto. */
.site-header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--paper-alt); color: var(--ink); }
.main-nav a.active { background: var(--paper-alt); color: var(--ink); }
.main-nav a.active.tech { background: var(--tech-tint); color: var(--tech-dark); }
.main-nav a.active.edu { background: var(--edu-tint); color: var(--edu-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: none; width: 42px; height: 42px;
  border-radius: 10px; align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--paper-alt); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0; z-index: 55;
    background: var(--paper);
    flex-direction: column; align-items: stretch;
    padding: 100px 24px 32px;
    gap: 0;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .main-nav.open {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
  }
  .main-nav a {
    padding: 17px 6px; font-size: 18px; border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a.active, .main-nav a:hover { background: none; padding-left: 6px; }
  .main-nav a.active.tech { color: var(--tech-dark); }
  .main-nav a.active.edu { color: var(--edu-dark); }
  .nav-toggle { display: flex; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- Hero (home, split) ---------- */
.hero-split {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-split .wrap { text-align: center; position: relative; z-index: 2; }
.hero-split h1 { font-size: clamp(32px, 5.2vw, 58px); max-width: 820px; margin: 18px auto 20px; }
.hero-split h1 .tech-word { color: var(--tech); }
.hero-split h1 .edu-word { color: var(--edu); }
.hero-split .sub { max-width: 620px; margin: 0 auto 34px; font-size: 17.5px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

.duality {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 46px; position: relative;
}
.duality-panel {
  padding: 46px 30px 60px;
  position: relative;
  color: var(--white);
}
.duality-panel.tech { background: linear-gradient(155deg, var(--tech) 0%, var(--tech-dark) 100%); }
.duality-panel.edu { background: linear-gradient(155deg, var(--edu) 0%, var(--edu-dark) 100%); }
.duality-panel .wrap-inner { max-width: 420px; margin: 0 auto; position: relative; z-index: 2; }
.duality-panel .wrap-inner.left { margin-left: auto; margin-right: 6%; text-align: right; }
.duality-panel .wrap-inner.right { margin-right: auto; margin-left: 6%; text-align: left; }
.duality-panel h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--white); }
.duality-panel p { color: rgba(255,255,255,.88); }
.duality-panel img.mascot { width: 128px; margin-bottom: 14px; }
.duality-panel.tech .wrap-inner.left img.mascot { margin-left: auto; }
.duality-emblem {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  z-index: 5; border: 6px solid var(--paper);
}
.duality-emblem img { width: 52px; height: 52px; object-fit: contain; }

@media (max-width: 760px) {
  .duality { display: flex; flex-direction: column; }
  .duality-panel.tech { order: 1; }
  .duality-panel.edu { order: 3; }
  .duality-panel .wrap-inner.left, .duality-panel .wrap-inner.right { text-align: center; margin: 0 auto; }
  .duality-panel.tech .wrap-inner.left img.mascot { margin: 0 auto 14px; }
  .duality-emblem {
    order: 2; position: static; transform: none; margin: -26px auto; z-index: 5;
  }
}

/* Signature wave divider (motivo tomado del catálogo impreso) */
.wave-divider { display: block; width: 100%; height: 64px; margin-top: -2px; }
.wave-divider path.w1 { fill: var(--edu); opacity: .9; }
.wave-divider path.w2 { fill: var(--tech); }
.wave-divider.flip { transform: scaleY(-1); }

/* ---------- Section basics ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; }
.section-alt { background: var(--paper-alt); }

/* ---------- Intro / stats ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-strip .stat b { display: block; font-family: var(--f-display); font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
.stat-strip .stat span { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Path cards (home) ---------- */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.path-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.path-card img.mascot-sm { width: 84px; margin-bottom: 18px; }
.path-card h3 { font-size: 24px; }
.path-card.tech h3 { color: var(--tech-dark); }
.path-card.edu h3 { color: var(--edu-dark); }
.path-card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.path-card .tag-list span {
  font-family: var(--f-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; font-weight: 600;
}
.path-card.tech .tag-list span { background: var(--tech-tint); color: var(--tech-dark); }
.path-card.edu .tag-list span { background: var(--edu-tint); color: var(--edu-dark); }
@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-card .num { font-family: var(--f-mono); font-weight: 600; font-size: 13px; color: var(--tech); margin-bottom: 10px; display: block; }
.step-card h4 { font-size: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Module cards (tecnologia.html) ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.module-card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--tech-tint); color: var(--tech);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.module-card .icon svg { width: 24px; height: 24px; }
.module-card h3 { font-size: 19px; margin-bottom: 8px; }
.module-card p { font-size: 14.5px; flex-grow: 1; }
.module-card .badge-popular {
  position: absolute; top: 20px; right: 20px; font-family: var(--f-mono); font-size: 10.5px;
  background: var(--gold); color: var(--ink); padding: 4px 9px; border-radius: 999px; font-weight: 600;
}
.module-card button.btn { margin-top: 14px; align-self: flex-start; }
.module-card.as-link { text-decoration: none; }
.module-card .go-link { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 14px; color: var(--tech); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .module-grid { grid-template-columns: 1fr; } }

/* ---------- Sublanding de módulo (modulo.html) ---------- */
.demo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo-card {
  display: block; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--tech); }
.demo-card .demo-tag { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tech); background: var(--tech-tint); padding: 5px 10px; border-radius: 999px; }
.demo-card h3 { font-size: 19px; margin: 14px 0 6px; }
.demo-card p { font-size: 14.5px; margin-bottom: 18px; }
.demo-card.is-disabled { opacity: .6; pointer-events: none; }
@media (max-width: 700px) { .demo-buttons { grid-template-columns: 1fr; } }

.feature-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-detail-grid .fd-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; }
.feature-detail-grid .fd-card h4 { font-size: 16px; margin-bottom: 6px; color: var(--tech-dark); }
.feature-detail-grid .fd-card p { font-size: 14px; margin: 0; }
@media (max-width: 700px) { .feature-detail-grid { grid-template-columns: 1fr; } }

.casos-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
.casos-list li:last-child { border-bottom: none; }
.casos-list li::before {
  content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--tech-tint); color: var(--tech-dark);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 1px;
}

.module-switcher { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: -10px 0 40px; }
.module-switcher a {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-soft); transition: .15s;
}
.module-switcher a:hover, .module-switcher a.current { border-color: var(--tech); color: var(--tech-dark); background: var(--tech-tint); }

/* ---------- Platform feature strip (educacion.html) ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.feature-strip .feat { text-align: center; padding: 18px 10px; }
.feature-strip .feat .dot {
  width: 52px; height: 52px; border-radius: 50%; background: var(--edu-tint); color: var(--edu);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-family: var(--f-display); font-weight: 700;
}
.feature-strip .feat h4 { font-size: 14.5px; margin-bottom: 4px; }
.feature-strip .feat p { font-size: 12.5px; margin: 0; }
@media (max-width: 900px) { .feature-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Catalog filter + book grid ---------- */
.filter-bar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink-soft);
  transition: .15s;
}
.filter-btn:hover { border-color: var(--ink-soft); }
.filter-btn.active { border-color: transparent; color: var(--white); }
.filter-btn[data-nivel="all"].active { background: var(--ink); }
.filter-btn[data-nivel="preescolar"].active { background: var(--nivel-preescolar); }
.filter-btn[data-nivel="primaria"].active { background: var(--nivel-primaria); }
.filter-btn[data-nivel="secundaria"].active { background: var(--nivel-secundaria); }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.book-card {
  background: var(--white); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
  cursor: pointer; text-align: left; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-card .spine { aspect-ratio: 3 / 4; position: relative; display: flex; align-items: flex-end; padding: 12px 14px; overflow: hidden; }
.book-card .spine img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.book-card .spine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 58%); z-index: 1; }
.book-card .spine span { position: relative; z-index: 2; }
.book-card .spine span {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.22); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(2px);
}
.book-card .body { padding: 14px 16px 16px; flex-grow: 1; display: flex; flex-direction: column; }
.book-card h4 { font-size: 15px; margin-bottom: 6px; line-height: 1.3; }
.book-card .meta { font-size: 12.5px; color: var(--ink-soft); margin-top: auto; }
@media (max-width: 980px) { .book-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 33, 61, 0.55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper-alt); border: none; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink);
  z-index: 2;
}
.modal-cover { height: 220px; position: relative; display: flex; align-items: flex-end; padding: 18px 28px; overflow: hidden; }
.modal-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.modal-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 55%); z-index: 1; }
.modal-cover span { position: relative; z-index: 2; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.24); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(2px); }
.modal-content { padding: 26px 28px 30px; }
.modal-content h3 { font-size: 24px; margin-bottom: 4px; }
.modal-content .author { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.modal-meta b { color: var(--ink); font-weight: 600; }
.modal-content h5 { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin: 18px 0 8px; }
.value-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.value-pills span { background: var(--paper-alt); font-size: 12.5px; padding: 5px 11px; border-radius: 999px; color: var(--ink); }
.modal-content .cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 15px; color: var(--ink); transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tech); outline: none; }
.form-panel.edu .field input:focus, .form-panel.edu .field select:focus, .form-panel.edu .field textarea:focus { border-color: var(--edu); }
.field textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }
.checkbox-group label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.form-status { font-size: 14px; font-weight: 600; margin-top: 14px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #2E7D32; }
.form-status.err { color: var(--edu-dark); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .form-panel { padding: 26px 22px; } }

/* ---------- Contact split (bottom of pages) ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.contact-side h2 { font-size: clamp(24px, 3vw, 32px); }
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.contact-cards a { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; font-size: 14.5px; transition: .15s; }
.contact-cards a:hover { border-color: var(--tech); }
.contact-cards .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--tech-tint); color: var(--tech); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 54px 0 28px; }
footer.site-footer .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 24px; }
footer.site-footer .brand-col img { height: 30px; margin-bottom: 12px; filter: brightness(0) invert(1); }
footer.site-footer .brand-col p { max-width: 300px; color: rgba(255,255,255,.55); font-size: 14px; }
footer.site-footer nav { display: flex; gap: 46px; flex-wrap: wrap; }
footer.site-footer nav div h5 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 12px; }
footer.site-footer nav div a { display: block; color: rgba(255,255,255,.8); font-size: 14.5px; margin-bottom: 9px; }
footer.site-footer nav div a:hover { color: var(--gold); }
footer.site-footer .foot-bottom { font-size: 13px; color: rgba(255,255,255,.4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Carruseles (autores / aliados) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px; scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 20px; color: var(--ink); align-items: center; justify-content: center;
  line-height: 1; display: flex; transition: .15s;
}
.carousel-arrow.prev { left: -14px; }
.carousel-arrow.next { right: -14px; }
.carousel-arrow:hover { border-color: var(--edu); color: var(--edu); }
@media (max-width: 760px) { .carousel-arrow { display: none; } }

.author-card {
  width: 190px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 18px; text-align: center; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.author-photo {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; position: relative; overflow: hidden;
  background: var(--edu-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.author-initials { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--edu-dark); }
.author-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.author-role { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

.author-photo.lg { width: 96px; height: 96px; }
.author-modal-header { display: flex; align-items: center; gap: 18px; padding: 28px 28px 0; }
.author-modal-header h3 { font-size: 22px; margin-bottom: 4px; }
.author-modal-header .author-role { font-size: 13.5px; }

.ally-card {
  width: 200px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 18px; text-align: center; transition: transform .18s ease, box-shadow .18s ease;
}
.ally-card[href] { cursor: pointer; }
.ally-card[href]:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--edu); }
.ally-logo { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ally-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ally-logo span { font-family: var(--f-mono); font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.ally-card h4 { font-size: 15px; margin-bottom: 6px; }
.ally-card p { font-size: 13px; margin: 0 0 10px; }
.ally-card .ally-link { font-size: 12.5px; font-weight: 600; color: var(--edu); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 58px 0 30px; text-align: center; }
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 760px; margin: 14px auto 16px; }
.page-hero .sub { max-width: 600px; margin: 0 auto; font-size: 17px; }
.page-hero::after {
  content: '';
  display: block;
  width: 64px; height: 4px; border-radius: 999px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, var(--tech), var(--edu));
}
