/* ============================================================
   INSTITUTO INTERCOM — SISTEMA DE DISEÑO
   Reconstruido a partir de MEMORIA.md (archivo original perdido).
   PHP nativo, sin frameworks. Un solo archivo CSS.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --color-accent: #2F5EFF;
  --color-accent-dark: #1E44D6;
  --color-accent-pink: #FF2D55;
  --color-ink: #0C1220;
  --color-ink-muted: #676E7D;
  --color-dark: #0A1628;
  --color-bg-hero-1: #DFF3F0;
  --color-bg-hero-2: #EAF3FF;
  --color-white: #FFFFFF;
  --color-border: #E4E8F0;
  --color-bg-soft: #F6F8FC;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --container-max: 1240px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --shadow-sm: 0 2px 12px rgba(12, 18, 32, 0.06);
  --shadow-md: 0 8px 32px rgba(12, 18, 32, 0.10);
  --shadow-lg: 0 20px 60px rgba(12, 18, 32, 0.16);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.125rem; /* 18px, igual que el theme original */
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .6em; color: var(--color-ink); }
p { margin: 0 0 1em; }

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

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-xl) 0; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}
.section-heading { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 820px; }

/* Eyebrow con punto azul (estilo Ling+) */
.eyebrow-dot { text-transform: none; font-size: 1rem; letter-spacing: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.eyebrow-light { color: #7EA4FF; }

/* Encabezado de sección centrado */
.section-head-center { text-align: center; margin-bottom: var(--space-lg); }
.section-head-center .section-heading {
  max-width: 820px; margin-left: auto; margin-right: auto;
  font-weight: 700; line-height: 1.28; font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

/* CTA círculo + texto (estilo Ling+) */
.circle-cta { display: inline-flex; align-items: center; gap: 1rem; position: relative; z-index: 3; }
.circle-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--color-accent); color: #fff; font-size: 1.2rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.circle-cta-label { font-weight: 700; font-size: 1rem; color: var(--color-ink); }
.circle-cta:hover .circle-cta-btn { background: var(--color-accent-dark); transform: translateX(5px); box-shadow: var(--shadow-md); }
.circle-cta-light .circle-cta-btn { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); }
.circle-cta-light .circle-cta-label { color: #fff; }
.circle-cta-light:hover .circle-cta-btn { background: var(--color-accent); border-color: var(--color-accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-outline { border-color: var(--color-ink); color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: #fff; transform: translateY(-2px); }
.btn-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.25);
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover .btn-icon-circle { transform: translateX(4px); }

/* ---------- Placeholders (.ph) ---------- */
.ph {
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  background: linear-gradient(135deg, var(--color-bg-hero-1), var(--color-bg-hero-2));
  border: 2px dashed rgba(47, 94, 255, 0.35);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1rem;
}
/* Cuando .ph se aplica a una <img> real, el CSS anula el look de placeholder */
img.ph {
  background: none;
  border: none;
  padding: 0;
  object-fit: cover;
  min-height: 0;
  color: transparent;
  font-size: 0;
  border-radius: var(--radius-md);
}

/* ---------- Scroll reveal (aplicado por main.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
/* Header normal (páginas internas): blanco, en flujo, nada por detrás */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
/* Header transparente: SOLO home, fijo sobre el hero */
.site-header--transparent {
  position: fixed; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header--transparent.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 24px rgba(12, 18, 32, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 105px; padding: 0 1.5rem; gap: 1.5rem;
}
.site-logo-img { height: 56px; width: auto; object-fit: contain; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 200;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--color-ink-muted); position: relative; padding: 4px 0; transition: color 0.2s; }
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--color-accent);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--color-ink); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
    background: #fff; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 2rem; padding: 2rem; transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { transform: translateX(0); }
  .header-actions .btn span { display: none; }
}

/* ============================================================
   HERO (estilo Ling+)
   ============================================================ */
.hero {
  background: linear-gradient(150deg, #DDF3EA 0%, #E6F2F8 40%, #F3F9FD 72%, #FDFEFF 100%);
  min-height: 800px;
  padding: calc(var(--space-md) + 105px) 0 var(--space-lg);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero .container { max-width: min(1500px, 90%); width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-lg); align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 0.45em;
}
.hero-copy h1 em { color: var(--color-accent); font-style: normal; }
.hero-desc { color: var(--color-ink-muted); font-size: 1.15rem; max-width: 500px; margin-bottom: 1.8rem; }

.hero-social-proof { display: flex; align-items: center; gap: 1.1rem; margin: 1.5rem 0 1.6rem; }
.avatar-stack { display: flex; }
.avatar-stack img, .avatar-stack .avatar-ph {
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
  object-fit: cover; margin-left: -16px; background: #fff; padding: 0;
}
.avatar-stack img:first-child, .avatar-stack .avatar-ph:first-child { margin-left: 0; }
.avatar-ph { min-height: 0; padding: 0; font-size: 0.6rem; }
.stat-num { font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.01em; }
.stat-label { font-size: 0.9rem; color: var(--color-ink-muted); font-weight: 600; line-height: 1.25; }

.hero-cta { display: inline-flex; align-items: center; gap: 1rem; }
.hero-cta-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-accent); color: #fff; font-size: 1.25rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-cta-label { font-weight: 700; font-size: 1.02rem; color: var(--color-ink); }
.hero-cta:hover .hero-cta-circle { background: var(--color-accent-dark); transform: translateX(5px); box-shadow: var(--shadow-md); }

.hero-visual { position: relative; min-height: 620px; }
.hv-flag {
  position: absolute; top: 0; left: 4%; width: clamp(100px, 26%, 158px); z-index: 5;
  filter: drop-shadow(0 12px 24px rgba(12, 18, 32, 0.18));
  animation: float-soft 5s ease-in-out infinite;
}
.hv-img { position: absolute; border-radius: 28px; object-fit: cover; }
.hero-visual img.hv-img, .hero-visual div.hv-img { border-radius: 28px; padding: 0; }
.hv-img-1 { top: 6%; right: 0; width: 58%; aspect-ratio: 1.08/1; z-index: 2; }
.hv-img-2 { top: 31%; left: 0; width: 43%; aspect-ratio: 1/1.18; z-index: 1; }
.hv-img-3 { bottom: 0; right: -7%; width: 60%; aspect-ratio: 1.18/1; z-index: 3; box-shadow: var(--shadow-lg); }
div.hv-img { font-size: 0.8rem; }

.chat-bubble {
  position: absolute; background: #fff; padding: 0.85rem 1.5rem; border-radius: 14px;
  font-weight: 600; font-size: 1.06rem; color: var(--color-ink);
  box-shadow: 0 6px 24px rgba(12, 18, 32, 0.10); z-index: 6;
  animation: float-soft 6s ease-in-out infinite; white-space: nowrap;
}
.bubble-1 { top: 13%; right: -2%; animation-delay: 0.2s; }
.bubble-2 { top: 44%; left: -4%; animation-delay: 1s; }
.bubble-3 { bottom: 9%; left: 30%; animation-delay: 2s; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Animaciones de entrada del hero (efecto de inicio) ---------- */
@keyframes hero-in-left {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hero-in-right {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hero-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-in-up-left {
  from { opacity: 0; transform: translate(-50px, 50px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes hero-in-up-right {
  from { opacity: 0; transform: translate(50px, 60px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes hero-drop {
  from { opacity: 0; transform: translateY(-80px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bubble-pop {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.07); }
  100% { opacity: 1; transform: scale(1); }
}

/* Curva spring: llega, se pasa tantito y se acomoda */
.hero-copy .eyebrow      { animation: hero-in-left 0.7s cubic-bezier(.34,1.56,.64,1) 0.1s both; }
.hero-copy h1            { animation: hero-in-left 0.8s cubic-bezier(.34,1.56,.64,1) 0.2s both; }
.hero-social-proof       { animation: hero-in-up 0.7s cubic-bezier(.34,1.56,.64,1) 0.35s both; }
.hero-desc               { animation: hero-in-up 0.7s cubic-bezier(.34,1.56,.64,1) 0.45s both; }
.hero-cta                { animation: hero-in-up 0.7s cubic-bezier(.34,1.56,.64,1) 0.55s both; }

.hv-img-1 { animation: hero-in-right 0.9s cubic-bezier(.34,1.56,.64,1) 0.3s both; }
.hv-img-2 { animation: hero-in-up-left 0.9s cubic-bezier(.34,1.56,.64,1) 0.45s both; }
.hv-img-3 { animation: hero-in-up-right 0.9s cubic-bezier(.34,1.56,.64,1) 0.6s both; }
.hv-flag {
  animation:
    hero-drop 0.9s cubic-bezier(.34,1.7,.5,1) 0.5s both,
    float-soft 5s ease-in-out 1.4s infinite;
}
.bubble-1 { animation: bubble-pop 0.55s cubic-bezier(.34,1.56,.64,1) 0.9s both, float-soft 6s ease-in-out 1.45s infinite; }
.bubble-2 { animation: bubble-pop 0.55s cubic-bezier(.34,1.56,.64,1) 1.05s both, float-soft 6s ease-in-out 1.6s infinite; }
.bubble-3 { animation: bubble-pop 0.55s cubic-bezier(.34,1.56,.64,1) 1.2s both, float-soft 6s ease-in-out 1.75s infinite; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; margin-top: 2.5rem; }
  .bubble-1 { right: 0; }
  .bubble-2 { left: 0; }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 340px; }
  .chat-bubble { font-size: 0.78rem; padding: 0.5rem 0.9rem; }
  .avatar-stack img, .avatar-stack .avatar-ph { width: 46px; height: 46px; }
  .stat-num { font-size: 1.6rem; }
}

/* ============================================================
   MARQUEE (texto gigante azul claro, estilo Ling+)
   ============================================================ */
.marquee-wrap { background: var(--color-white); overflow: hidden; padding: 2.6rem 0 2rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 180s linear infinite; }
.marquee-track span {
  color: #9DB9F5; font-weight: 700; text-transform: lowercase;
  font-size: clamp(3.2rem, 7.5vw, 6.6rem); line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap; padding-right: 1.2rem;
}
.marquee-track span b { color: #CDDCFB; font-weight: 700; padding: 0 0.35em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   ABOUT / NOSOTROS (home)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; margin-top: var(--space-md); }
.about-img { position: relative; }
.about-img > img.ph:first-child, .about-img > div.ph:first-child {
  aspect-ratio: 1/1.1; width: 100%; border-radius: 20px; object-fit: cover;
}
.float-card {
  position: absolute; bottom: -12%; right: -10%; width: 58%; aspect-ratio: 1376/768;
  border-radius: 20px; box-shadow: var(--shadow-lg); z-index: 2;
  object-fit: cover; object-position: center;
}
.about-copy { color: var(--color-ink-muted); max-width: 520px; }
.checklist { display: flex; flex-direction: column; gap: 0.95rem; margin: 1.6rem 0 2rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; color: var(--color-ink); }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--color-accent); font-size: 1.05rem; font-weight: 700;
}
/* Marquesina de empresas: gris de base, color corporativo al hover, pausa al hover */
.logos-marquee {
  overflow: hidden; margin-top: calc(var(--space-xl) + 3rem); padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-set { display: flex; align-items: center; gap: 5rem; padding-right: 5rem; }
/* Logos originales: gris de base, color real al hover */
.logo-img {
  height: 44px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.55;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.logo-img:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }
.logo-img-itesm { height: 64px; } /* logo cuadrado: necesita más alto para leerse */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .float-card { position: static; width: 100%; margin-top: 1rem; border-width: 0; }
}

/* ============================================================
   LEVELS ACCORDION (oscuro)
   ============================================================ */
.levels {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(47, 110, 255, 0.55) 0%, rgba(47, 110, 255, 0) 55%),
    radial-gradient(100% 80% at 10% 90%, rgba(30, 68, 214, 0.45) 0%, rgba(30, 68, 214, 0) 60%),
    linear-gradient(150deg, #071634 0%, #0C2559 45%, #113A8F 100%);
  color: #fff;
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
}
.levels-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
  padding-bottom: var(--space-lg);
}
.accordion { display: flex; flex-direction: column; }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.16); }
.accordion-item:first-child { border-top: 1px solid rgba(255,255,255,0.16); }
.accordion-btn {
  width: 100%; background: none; border: none; color: #fff; text-align: left;
  font-family: inherit; padding: 2rem 0 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.accordion-title {
  font-size: clamp(2rem, 5.6vw, 4.2rem); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.025em;
}
.accordion-btn .icon {
  transition: transform 0.35s var(--ease), opacity 0.3s;
  color: rgba(255,255,255,0.75); font-size: 1.35rem; font-weight: 400; flex: none;
}
.accordion-btn:hover .icon { color: #fff; }
.accordion-item.open .accordion-btn .icon { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.accordion-item.open .accordion-panel { max-height: 900px; }
.accordion-panel-inner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem;
  padding: 0.5rem 0 3rem; align-items: start;
}
.accordion-panel-inner img {
  border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; width: 100%;
  box-shadow: 0 18px 50px rgba(4, 12, 32, 0.35);
}
.level-block { margin-bottom: 2rem; }
.level-block:last-child { margin-bottom: 0; }
.level-block h4 { color: #fff; font-size: 1.35rem; font-weight: 700; margin-bottom: 0.55em; }
.level-block p { color: rgba(255,255,255,0.68); font-size: 1.05rem; line-height: 1.65; margin: 0; max-width: 640px; }
.levels-foot { padding-top: var(--space-lg); }

@media (max-width: 760px) {
  .accordion-panel-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .accordion-panel-inner img { order: -1; }
  .accordion-btn { padding: 1.4rem 0 1rem; }
  .level-block { margin-bottom: 1.4rem; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section { background: var(--color-white); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; text-align: left; padding: var(--space-md) 0; }
.stats-row .num {
  font-size: clamp(4.2rem, 9vw, 7.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px #9DB9F5;
  -webkit-mask-image: linear-gradient(120deg, rgba(0,0,0,1) 35%, rgba(0,0,0,0.22) 100%);
  mask-image: linear-gradient(120deg, rgba(0,0,0,1) 35%, rgba(0,0,0,0.22) 100%);
}
.stats-row .label { color: var(--color-ink); font-weight: 700; font-size: 1.15rem; margin-top: 0.8rem; }
@media (max-width: 640px) { .stats-row { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testi-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--space-md); }
.testi-slider { overflow: hidden; margin: 0 -6px; }
.testi-track { display: flex; transition: transform 0.55s var(--ease); }
.testi-slide {
  min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 6px; align-items: stretch;
}
.testi-card {
  background: var(--color-bg-soft); border-radius: var(--radius-md); padding: 2rem;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-quote-icon { font-size: 2.4rem; color: var(--color-accent); font-weight: 800; line-height: 1; margin-bottom: 0.4rem; }
.testi-card h4 { font-size: 1.25rem; }
.testi-card p { color: var(--color-ink-muted); }
.testi-author { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; padding-top: 1.2rem; }
.testi-author img, .testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-avatar { min-height: 0; padding: 0; font-size: 0.72rem; letter-spacing: 0.02em; }
.testi-author .name { font-weight: 700; font-size: 0.95rem; }
.testi-author .role { font-size: 0.82rem; color: var(--color-ink-muted); }
.testi-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: var(--space-lg); }
.testi-dots span, .testi-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-border);
  border: none; padding: 0; cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.testi-dots span.active, .testi-dots button.active { background: var(--color-accent); transform: scale(1.3); }
@media (max-width: 760px) { .testi-slide { grid-template-columns: 1fr; } }

/* ============================================================
   VIDEO BANNER
   ============================================================ */
.video-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; }
.video-banner img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%;
  object-fit: cover; will-change: transform;
}
.video-banner-content {
  position: absolute; inset: 0; background: rgba(8, 18, 40, 0.32);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.5rem; padding: 0 2rem; color: #fff; text-align: center;
}
.video-banner-content h3 {
  font-size: clamp(2rem, 4vw, 3.2rem); max-width: 700px; color: #fff;
  text-shadow: 0 4px 28px rgba(4, 10, 26, 0.55);
}
.play-btn {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.play-btn:hover { background: var(--color-accent); transform: scale(1.1); }
@media (max-width: 760px) { .video-banner-content { padding: 0 1.5rem; } .video-banner { aspect-ratio: 4/5; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0A1B3E; color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 0; overflow: hidden;
}
/* Banner del home montado sobre el footer (estilo Ling+) */
.banner-overlap { position: relative; z-index: 5; margin-bottom: -150px; }
.banner-overlap + .site-footer { padding-top: calc(150px + var(--space-xl)); }

.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr 0.9fr; gap: 2.5rem; padding-bottom: var(--space-lg); }
.footer-col h4 { color: #fff; font-size: 1.25rem; margin-bottom: 1.3rem; }
.footer-col a, .footer-col p { display: block; margin-bottom: 0.85rem; color: #fff; font-size: 1.0625rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-accent); }

.newsletter-form {
  display: flex; align-items: center; margin-top: 0.4rem;
  border: none; border-bottom: 1px solid rgba(255,255,255,0.28); border-radius: 0;
}
.newsletter-form input {
  flex: 1; background: none; border: none; padding: 0.6rem 0; color: #fff;
  font-family: inherit; font-size: 1.0625rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-form button {
  background: none; border: none; color: #fff; font-size: 1.1rem; padding: 0 0 0 0.8rem;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.newsletter-form button:hover { color: var(--color-accent); transform: translateX(4px); }
.footer-note { font-size: 1rem; color: #fff; margin-top: 1rem; }

.socials { display: flex; gap: 0.7rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 0; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; transform: translateY(-3px); }

.footer-copyright {
  font-size: 0.9rem; color: rgba(255,255,255,0.4);
  padding: 1.5rem 0 2.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}
.footer-copyright a { color: rgba(255,255,255,0.7); text-decoration: underline; transition: color 0.2s; }
.footer-copyright a:hover { color: #fff; }

/* Wordmark tipográfico gigante recortado por el borde inferior, como Ling+.
   Las letras suben en cascada cuando el footer entra en viewport. */
.footer-giant-wordmark {
  font-size: clamp(4rem, 18.5vw, 17rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
  padding-bottom: 0.6rem;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}
.fg-letter {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(.22,.9,.32,1);
  will-change: transform;
}
.footer-giant-wordmark.is-visible .fg-letter { transform: translateY(0); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-overlap { margin-bottom: -80px; }
  .banner-overlap + .site-footer { padding-top: calc(80px + var(--space-lg)); }
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }

.back-to-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-accent); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ============================================================
   PAGE BAND (banda de título de páginas internas)
   ============================================================ */
/* Banda idéntica en TODAS las páginas internas: Inglaterra cinematográfica difuminada */
.page-band {
  position: relative; overflow: hidden; color: #fff;
  background: var(--color-dark);
  min-height: 300px !important;
  padding: var(--space-md) 0;
  display: flex; align-items: center;
}
.page-band > .container { width: 100%; }
.page-band::before {
  content: ''; position: absolute; inset: -24px;
  background: url('../img/band-england.webp') center 38% / cover no-repeat;
  filter: blur(5px) brightness(0.9);
  z-index: 0;
}
.page-band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(7, 17, 40, 0.82), rgba(7, 17, 40, 0.55));
  z-index: 1;
}
.page-band > .container { position: relative; z-index: 2; }
.page-band h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); color: #fff; }
.page-band .eyebrow { color: #9db2ff; }
.page-band-breadcrumb { color: #fff; font-size: 1rem; font-weight: 500; margin: 0; }
.page-band-breadcrumb a { color: rgba(255,255,255,0.85); font-size: 1rem; text-decoration: underline; }
.page-band-breadcrumb a:hover { color: #fff; }

/* ============================================================
   NOSOTROS — específico
   ============================================================ */
.image-break { width: 100%; aspect-ratio: 21/8; object-fit: cover; }
.companies-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem; margin-top: var(--space-md);
}
.company-pill {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 52px; padding: 0 1rem; border-radius: 10px;
  background: var(--color-bg-soft); border: 1px solid var(--color-border);
  font-size: 0.95rem; font-weight: 600; color: var(--color-ink-muted);
  /* Salida LENTA: al quitar el mouse, encoge despacio (estela si pasas rápido) */
  transition: border-color 0.9s var(--ease), color 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}
.company-pill:hover, .company-pill.is-hot {
  border-color: var(--color-accent); color: var(--color-ink);
  transform: scale(1.06); box-shadow: var(--shadow-sm); z-index: 1;
  /* Entrada INSTANTÁNEA: crece de inmediato al hacer hover */
  transition: border-color 0.12s var(--ease), color 0.12s var(--ease), transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.company-pill.highlight { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.company-pill.highlight:hover { color: #fff; }
@media (max-width: 640px) { .companies-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: var(--space-md); }
.award-card { background: var(--color-bg-soft); border-radius: var(--radius-md); padding: 1.6rem; transition: transform 0.3s var(--ease); }
.award-card:hover { transform: translateY(-4px); }
.award-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.award-card h4 { font-size: 0.98rem; margin-bottom: 0.3em; }
.award-card .years { font-size: 0.85rem; color: var(--color-ink-muted); font-weight: 600; }
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark)); color: #fff;
  border-radius: var(--radius-lg); padding: var(--space-lg); text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 480px; margin: 0 auto 1.4rem; }

/* ============================================================
   CURSOS — específico
   ============================================================ */
.category-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--space-md); }
.category-pill {
  padding: 0.6rem 1.2rem; border-radius: 999px; border: 1px solid var(--color-border); font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s;
}
.category-pill:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.info-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.info-strip-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--color-ink-muted); font-weight: 600; }
.info-strip-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.course-tag-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--space-md); }
.course-tag { padding: 0.7rem 1.2rem; border-radius: var(--radius-sm); background: var(--color-bg-soft); font-weight: 600; font-size: 0.9rem; }
.diploma-card {
  background: var(--color-dark); color: #fff; border-radius: var(--radius-lg); padding: var(--space-lg);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
}
.diploma-card h3 { color: #fff; font-size: 1.6rem; }
.diploma-card p { color: rgba(255,255,255,0.7); }
.diploma-list { display: flex; flex-direction: column; gap: 0.8rem; }
.diploma-list li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.92rem; }
.diploma-list li::before { content: '→'; position: absolute; left: 0; color: var(--color-accent); }
.duration-row { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: var(--space-md); }
.duration-card { flex: 1 1 160px; background: var(--color-bg-soft); border-radius: var(--radius-md); padding: 1.6rem; text-align: center; }
.duration-card .num { font-size: 2.2rem; font-weight: 800; color: var(--color-accent); }
.duration-card .label { color: var(--color-ink-muted); font-weight: 600; font-size: 0.9rem; }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: var(--space-md); }
.schedule-card { background: var(--color-bg-soft); border-radius: var(--radius-md); padding: 1.6rem; }
.schedule-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.schedule-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.schedule-row:last-child { border-bottom: none; }
.schedule-row .time { font-weight: 700; }
.schedule-row .days { color: var(--color-ink-muted); }
.feature-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: var(--space-md); }
.feature-card { background: var(--color-bg-soft); border-radius: var(--radius-md); padding: 2rem; transition: transform 0.3s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--color-ink-muted); margin-bottom: 1.2rem; }
@media (max-width: 860px) {
  .diploma-card, .schedule-grid, .feature-card-row { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACTO — específico
   ============================================================ */
/* Intro (2 columnas, estilo Ling+) */
.contact-intro { padding-bottom: var(--space-md); }
.contact-intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-lg); align-items: start; }
.contact-intro-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.6rem; max-width: 460px; }
.contact-data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2.5rem; padding-top: 0.6rem; }
.data-label {
  color: var(--color-accent); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.7rem;
}
.contact-data-grid p { margin: 0 0 0.5em; color: var(--color-ink); }
.contact-data-grid a { color: var(--color-ink); transition: color 0.2s; }
.contact-data-grid a:hover { color: var(--color-accent); }
.data-small { font-size: 0.85rem; color: var(--color-ink-muted); }
.socials-light a { border-color: transparent; background: #EAF0FE; color: var(--color-accent); }
.socials-light a:hover { background: var(--color-accent); color: #fff; }

/* Marquesina de correo (más chica que la del home: el correo es largo) */
.marquee-email { padding: 2rem 0 1.6rem; }
.marquee-email .marquee-track span { font-size: clamp(2.2rem, 5.5vw, 4.6rem); text-transform: none; }

/* Formulario + mapa */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-lg); align-items: stretch; }
.contact-form-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 2.5rem; background: #fff;
}
.contact-form-wrap h3 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--color-ink-muted); }
.form-group input, .form-group select, .form-group textarea {
  border: none; border-bottom: 1px solid var(--color-border); border-radius: 0;
  padding: 0.7rem 0; background: transparent;
  font-family: inherit; font-size: 0.95rem; color: var(--color-ink);
  transition: border-color 0.25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-bottom-color: var(--color-accent);
}
.form-group input.is-invalid, .form-group textarea.is-invalid { border-bottom-color: var(--color-accent-pink); }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: 0.9rem; font-weight: 600; }
.form-alert-success { background: #E7F8EF; color: #14804A; }
.form-alert-error { background: #FDECEC; color: #C22C2C; }
.form-alert-error p { margin: 0.2em 0; }
.map-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); min-height: 480px; }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 480px; }
@media (max-width: 860px) {
  .contact-grid, .form-row, .contact-intro-grid { grid-template-columns: 1fr; }
  .contact-data-grid { gap: 1.6rem; }
  .contact-form-card { padding: 1.6rem; }
}

/* ============================================================
   TEST DE NIVEL — QUIZ
   ============================================================ */
.quiz-wrap { max-width: 640px; margin: 0 auto; }
.quiz-progress-wrap { margin-bottom: var(--space-md); }
.quiz-progress-bar { height: 8px; background: var(--color-border); border-radius: 999px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--color-accent-pink); border-radius: 999px; width: 0%; transition: width 0.4s var(--ease); }
.quiz-progress-label { font-size: 0.85rem; color: var(--color-ink-muted); font-weight: 600; margin-top: 0.5rem; }
.quiz-card, .quiz-result-card {
  background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: var(--space-lg);
}
.quiz-question { font-size: 1.3rem; margin-bottom: 1.4rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.6rem; }
.quiz-option {
  text-align: left; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 2px solid var(--color-border);
  background: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 600; transition: all 0.2s;
}
.quiz-option:hover { border-color: var(--color-accent); }
.quiz-option.selected { border-color: var(--color-accent); background: rgba(47,94,255,0.08); color: var(--color-accent-dark); }
.quiz-next[disabled] { opacity: 0.5; cursor: not-allowed; }
.quiz-next[disabled]:hover { transform: none; background: var(--color-accent); }
.quiz-level { font-size: 3rem; color: var(--color-accent); margin-bottom: 0.2em; }
.quiz-level-desc { font-size: 1rem; color: var(--color-ink-muted); }
.quiz-level-bar { height: 10px; background: var(--color-border); border-radius: 999px; overflow: hidden; margin: 1rem 0 1.4rem; }
.quiz-level-fill { height: 100%; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-pink)); border-radius: 999px; width: 0%; transition: width 0.8s var(--ease); }
.quiz-disclaimer { font-size: 0.82rem; color: var(--color-ink-muted); margin-bottom: 1.4rem; }

/* ============================================================
   GALERÍA + LIGHTBOX
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  border: none; padding: 0; background: none; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1;
  transition: transform 0.3s var(--ease);
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-ph { width: 100%; height: 100%; border-radius: var(--radius-md); min-height: 0; }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,22,40,0.94); z-index: 300;
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 80vw; max-height: 80vh; }
.lightbox-img { width: min(80vw, 800px); height: min(70vh, 600px); min-height: 0; color: #fff; font-size: 1.2rem; }
.lightbox-counter { text-align: center; color: rgba(255,255,255,0.7); margin-top: 1rem; font-weight: 600; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 50%;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  transition: background 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--color-accent); }
.lightbox-close { top: -60px; right: 0; }
.lightbox-prev { left: -70px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -70px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .lightbox-close { top: -50px; right: -10px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}
