/* =========================================================
   CORFEDES — Sistema visual (versión moderna 2026)
   Paleta nueva: Azul profundo + Acento ámbar + Neutros
   ========================================================= */

:root {
  /* Colores */
  --navy: #0B2A4A;        /* azul profundo institucional */
  --blue: #1D6FF2;        /* azul primario / acciones */
  --blue-600: #155FD6;
  --sky: #EAF2FE;         /* tinte claro */
  --amber: #F5A623;       /* acento cálido */
  --green: #16A34A;       /* CTA / whatsapp */
  --brand-blue: #2B84C7;  /* azul oficial del logo */
  --brand-green: #7DBB2E; /* verde oficial del logo */
  --ink: #0F172A;         /* texto principal */
  --muted: #5B6B82;       /* texto secundario */
  --line: #E4E9F2;        /* bordes */
  --bg: #FFFFFF;
  --bg-soft: #F6F9FE;

  /* Tipografía */
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Radios y sombras */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 42, 74, 0.14);

  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }

/* Divisor de dos líneas con los colores oficiales del logo */
.brand-divider { padding: 26px 0; background: #fff; }
.brand-divider .container { display: flex; flex-direction: column; gap: 5px; padding-top: 0; padding-bottom: 0; }
.brand-divider span { display: block; height: 3px; border-radius: 3px; }
.brand-divider .line-blue { background: var(--brand-blue); }
.brand-divider .line-green { background: var(--brand-green); }

/* Sección "¿Por qué CORFEDES?" con foto de fondo apenas perceptible */
.why-corfedes {
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)),
    url("../img/fondo baner 3.jpg") center center / cover no-repeat;
  background-color: #fff;
}

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.12rem; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--sky); padding: 7px 14px; border-radius: 999px;
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.text-amber { color: var(--brand-green); }
.text-blue { color: var(--blue); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.98rem; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .22s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: 0 8px 22px rgba(43,132,199,.30); }
.btn-primary:hover { background: #2470AE; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(43,132,199,.40); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(22,163,74,.28); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,163,74,.36); }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy); color: #cfe0f5;
  font-size: 0.85rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 9px 24px; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #cfe0f5; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-social { display: flex; gap: 14px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.nav-logo img { height: 58px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links > li > a {
  font-weight: 500; font-size: 0.97rem; color: var(--ink);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links > li > a:hover { color: var(--blue); }
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s ease;
}
.nav-links > li > a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 230px;
  opacity: 0; visibility: hidden; transition: all .22s ease; list-style: none;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown li a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 0.92rem; color: var(--ink); transition: all .18s;
}
.dropdown li a:hover { background: var(--sky); color: var(--blue); }

/* ---------- Hero a pantalla completa (home) ---------- */
.hero-full {
  position: relative;
  min-height: 100vh;
  background: url("../img/fondo baner principal.png") center center / cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
}
.hero-full-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,74,.62) 0%, rgba(11,42,74,.34) 42%, rgba(11,42,74,.72) 100%);
}
.hero-full-content { position: relative; z-index: 3; color: #fff; padding: 0 24px; max-width: 900px; }
.hero-full-content .hero-eyebrow {
  display: inline-block; letter-spacing: .18em; text-transform: uppercase;
  font-size: .82rem; font-weight: 600; color: #eaf2fe;
  border: 1px solid rgba(255,255,255,.4); padding: 8px 18px; border-radius: 999px;
  backdrop-filter: blur(4px); background: rgba(255,255,255,.08);
}
.hero-title {
  color: #fff; font-weight: 800; line-height: .95;
  font-size: clamp(3.6rem, 14vw, 9.5rem); letter-spacing: .03em;
  margin: 26px 0 14px; text-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.hero-sub { font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: #eef5ff; font-weight: 500; margin-bottom: 34px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero-full .hero-cta { justify-content: center; }
.hero-full .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-full .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; font-size: 1.6rem; animation: bounce 2s infinite; opacity: .85;
}
@keyframes bounce { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(10px);} }

/* Header transparente sobre el hero (home) */
.header.transparent {
  position: fixed; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header.transparent .nav-links > li > a { color: #fff; }
.header.transparent .nav-links > li > a::after { background: #fff; }
.header.transparent .nav-toggle span { background: #fff; }
.header.transparent .nav-logo .logo-dark { display: none; }
.header.transparent .nav-logo .logo-light { display: block; }
.header .nav-logo .logo-light { display: none; }
.header.transparent .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.header.transparent .btn-primary:hover { background: #eef5ff; }

/* Header "liquid glass" al hacer scroll */
.header.transparent.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.42));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 8px 32px rgba(11,42,74,.12), inset 0 1px 0 rgba(255,255,255,.6);
}
.header.transparent.scrolled .nav-links > li > a { color: var(--ink); }
.header.transparent.scrolled .nav-links > li > a::after { background: var(--blue); }
.header.transparent.scrolled .nav-toggle span { background: var(--navy); }
.header.transparent.scrolled .nav-logo .logo-dark { display: block; }
.header.transparent.scrolled .nav-logo .logo-light { display: none; }
.header.transparent.scrolled .btn-primary { background: var(--brand-blue); color: #fff; }
.header.transparent.scrolled .btn-primary:hover { background: #2470AE; }

/* En móvil el menú desplegado tiene fondo blanco: texto oscuro */
@media (max-width: 720px) {
  .header.transparent .nav-links.open > li > a { color: var(--ink); }
  .header.transparent .nav-links.open .dropdown li a { color: var(--ink); }
}

/* Evita que las anclas queden ocultas bajo el header fijo */
section[id] { scroll-margin-top: 84px; }

/* ---------- Hero (variante clara, otras páginas) ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #F6F9FE 0%, #EAF2FE 100%); }
.hero::before {
  content: ''; position: absolute; top: -180px; right: -140px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(29,111,242,.16), transparent 70%); border-radius: 50%;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-top: 76px; padding-bottom: 76px; position: relative; }
.hero-content h1 { margin: 20px 0 20px; }
.hero-content .lead { margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.92rem; }
.hero-trust strong { color: var(--navy); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.hero-badge {
  position: absolute; bottom: 22px; left: -22px; background: #fff;
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.hero-badge .hb-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; font-size: 1.4rem; }
.hero-badge b { display: block; color: var(--navy); font-size: 1.15rem; }
.hero-badge span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Franja aliados ---------- */
.partners-strip { background: #fff; border-bottom: 1px solid var(--line); }
.partners-strip .container { padding: 30px 24px; }
.partners-strip p { text-align: center; color: var(--muted); font-size: 0.82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.partners-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.partners-grid img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: all .25s; }
.partners-grid img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- Carrusel de aliados (coverflow) ---------- */
.ally-carousel {
  position: relative; height: 425px; margin-top: 20px;
  perspective: 1750px; overflow: hidden;
}
.ally-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.ally-slide {
  position: absolute; top: 50%; left: 50%; width: 288px; height: 288px;
  margin: -144px 0 0 -144px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 30px;
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .7s ease, box-shadow .4s ease;
  will-change: transform, opacity; backface-visibility: hidden;
}
.ally-slide img { max-height: 112px; max-width: 212px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .5s, opacity .5s; }
.ally-slide .ally-name { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; opacity: 0; transition: opacity .5s; }
.ally-slide.is-active { box-shadow: var(--shadow-lg); border-color: transparent; }
.ally-slide.is-active img { filter: grayscale(0); opacity: 1; }
.ally-slide.is-active .ally-name { opacity: 1; color: var(--navy); }
.ally-slide.is-active { border-top: 4px solid var(--brand-green); }

.ally-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: all .2s;
}
.ally-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.ally-prev { left: 8px; }
.ally-next { right: 8px; }
.ally-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.ally-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: all .25s; padding: 0; }
.ally-dots button.on { background: var(--brand-blue); width: 26px; border-radius: 999px; }

@media (max-width: 720px) {
  .ally-carousel { height: 375px; }
  .ally-slide { width: 238px; height: 238px; margin: -119px 0 0 -119px; }
  .ally-nav { display: none; }
}

/* ---------- Cards de beneficios ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px 26px; transition: all .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 84px; height: 84px; border-radius: 20px; background: var(--sky);
  display: grid; place-items: center; margin-bottom: 24px; color: var(--blue);
  transition: background .3s ease, color .3s ease;
}
.feature-icon svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .feature-icon { background: var(--blue); color: #fff; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Estadísticas ---------- */
.stats { background: var(--brand-blue); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.stat .num .plus { color: var(--brand-green); }
.stat .label { color: rgba(255,255,255,.9); margin-top: 10px; font-size: 0.98rem; }

/* ---------- Split (¿Por qué / beneficios lista) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.check-list { list-style: none; margin: 26px 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: .8rem; margin-top: 2px; }
.check-list li span.t { color: var(--muted); }
.check-list li b { color: var(--navy); }

/* ---------- Programas ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: all .25s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card .pc-top { padding: 26px 26px 0; }
.program-card .tag { font-size: .78rem; font-weight: 600; color: var(--blue); background: var(--sky); padding: 5px 12px; border-radius: 999px; }
.program-card h3 { margin: 16px 0 10px; }
.program-card p { color: var(--muted); font-size: .94rem; padding: 0 26px 22px; }
.program-card .pc-foot { padding: 0 26px 26px; }

/* ---------- Acordeón de universidades ---------- */
.uni-accordion { max-width: 960px; margin: 0 auto; display: grid; gap: 16px; }
.uni-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.uni-item.open { box-shadow: var(--shadow-lg); border-color: transparent; }
.uni-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.uni-head-left { display: flex; align-items: center; gap: 20px; }
.uni-logo { width: 66px; height: 46px; object-fit: contain; flex: none; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.uni-item.open .uni-logo { filter: grayscale(0); opacity: 1; }
.uni-head h3 { font-size: 1.12rem; margin: 0; color: var(--navy); }
.uni-head p { font-size: .87rem; color: var(--muted); margin: 3px 0 0; max-width: 620px; }
.uni-toggle {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--blue);
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  transition: transform .35s ease, background .3s, color .3s;
}
.uni-item.open .uni-toggle { transform: rotate(45deg); background: var(--blue); color: #fff; }
.uni-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.uni-body-inner { padding: 6px 26px 28px; }
.uni-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 14px 0 24px; }
.uni-groups:has(.uni-group:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.uni-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-blue); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-green); display: inline-block; }
.uni-group p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
.uni-group p b { color: var(--navy); font-weight: 600; }
@media (max-width: 860px) {
  .uni-groups, .uni-groups:has(.uni-group:nth-child(2):last-child) { grid-template-columns: 1fr; gap: 18px; }
  .uni-head { padding: 18px 18px; gap: 12px; }
  .uni-head-left { gap: 14px; }
  .uni-logo { width: 52px; height: 38px; }
  .uni-head h3 { font-size: 1rem; }
  .uni-body-inner { padding: 6px 18px 24px; }
}

/* Listas de programas por universidad (viñetas) */
.uni-cat { margin-bottom: 22px; }
.uni-cat:last-of-type { margin-bottom: 10px; }
.uni-cat h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--brand-blue); margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-green); display: inline-block;
}
.uni-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
.uni-list li {
  position: relative; padding-left: 16px; margin: 0 0 7px; font-size: .9rem;
  color: var(--muted); line-height: 1.4; break-inside: avoid; -webkit-column-break-inside: avoid;
}
.uni-list li::before { content: "•"; position: absolute; left: 0; color: var(--brand-green); font-weight: 700; }
.uni-note { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
@media (max-width: 720px) { .uni-list { columns: 1; } }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; box-shadow: var(--shadow);
}
.testi .quote { font-size: 1.05rem; color: var(--ink); margin-bottom: 20px; }
.testi .quote::before { content: '“'; color: var(--amber); font-size: 2.4rem; line-height: 0; vertical-align: -14px; margin-right: 4px; }
.testi .who { display: flex; align-items: center; gap: 14px; }
.testi .who .av { width: 48px; height: 48px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; color: var(--blue); font-weight: 700; }
.testi .who b { display: block; color: var(--navy); }
.testi .who span { font-size: .85rem; color: var(--muted); }

/* ---------- Carrusel de sedes ---------- */
.sedes-carousel { position: relative; margin-top: 12px; }
.sedes-viewport { overflow: hidden; border-radius: var(--r-lg); }
.sedes-track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.sedes-track.no-anim { transition: none; }
.sede-card {
  flex: 0 0 calc((100% - 48px) / 3); position: relative; overflow: hidden;
  border-radius: var(--r-lg); aspect-ratio: 4 / 4.4; box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.sede-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.sede-card:hover img { transform: scale(1.07); }
.sede-card::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,42,74,.85) 0%, rgba(11,42,74,.4) 45%, rgba(11,42,74,.28) 100%);
}
.sede-label { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; }
.sede-label .city { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.sede-label .place { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: #dbe8f7; margin-top: 4px; }
.sede-label .place svg { width: 14px; height: 14px; fill: none; stroke: var(--brand-green); stroke-width: 2; }

.sedes-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: all .2s;
}
.sedes-nav:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }
.sedes-prev { left: -18px; }
.sedes-next { right: -18px; }
.sedes-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.sedes-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: all .25s; padding: 0; }
.sedes-dots button.on { background: var(--brand-blue); width: 26px; border-radius: 999px; }

@media (max-width: 980px) {
  .sede-card { flex: 0 0 calc((100% - 24px) / 2); }
  .sedes-nav { display: none; }
}
@media (max-width: 640px) {
  .sede-card { flex: 0 0 100%; aspect-ratio: 4 / 3.6; }
}

/* ---------- Sección CALLFEDES ---------- */
.callfedes-section { background: var(--bg-soft); }
.callfedes-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: stretch; }
.callfedes-media { position: relative; min-height: 440px; }
.callfedes-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.callfedes-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 8px;
}
.callfedes-logo { align-self: flex-start; height: 120px; width: auto; object-fit: contain; margin-bottom: 18px; }
.callfedes-content h2 { margin-bottom: 16px; }
.callfedes-content .lead { color: var(--muted); margin-bottom: 30px; max-width: 480px; }
.callfedes-phone {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; box-shadow: var(--shadow); width: fit-content;
}
.callfedes-phone .cf-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  display: grid; place-items: center;
}
.callfedes-phone .cf-icon svg { width: 26px; height: 26px; fill: #fff; }
.callfedes-phone .cf-label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.callfedes-phone .cf-number { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.callfedes-content .btn-call { align-self: flex-start; }

@media (max-width: 900px) {
  .callfedes-wrap { grid-template-columns: 1fr; gap: 30px; }
  .callfedes-media { min-height: 300px; order: -1; }
  .callfedes-content { padding: 0; }
}

/* ---------- CTA banda ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-blue), #1f5f92); color: #fff; border-radius: var(--r-lg); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -100px; right: -60px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(150,205,255,.45), transparent 70%); border-radius: 50%; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #e4f0fb; max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--brand-green); color: #fff; box-shadow: 0 8px 22px rgba(125,187,46,.35); }
.cta-band .btn-primary:hover { background: #6ba525; }

/* ---------- Contacto sedes ---------- */
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; transition: all .2s; }
.branch:hover { box-shadow: var(--shadow); border-color: transparent; }
.branch h3 { color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.branch ul { list-style: none; display: grid; gap: 8px; }
.branch li { font-size: .92rem; color: var(--muted); display: flex; gap: 8px; }
.branch li b { color: var(--ink); font-weight: 600; }

/* ---------- Formulario contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.form-row input, .form-row textarea, .form-row select {
  font-family: inherit; font-size: .96rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg-soft);
  transition: border .2s; width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-sm); font-size: .92rem; text-align: center; }
.form-status.ok { background: #e8f7ee; color: #15803d; border: 1px solid #bfe6cd; }
.form-status.err { background: #fdeaea; color: #b91c1c; border: 1px solid #f3c4c4; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  position: relative; color: #cfe0f5; padding: 70px 0 30px;
  background:
    linear-gradient(180deg, rgba(43,132,199,.93) 0%, rgba(43,132,199,.88) 55%, rgba(43,132,199,.95) 100%),
    url("../img/footer.jpg") center 22% / cover no-repeat;
  background-color: var(--brand-blue);
}
.footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer a { color: #a9c1e0; font-size: .93rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-logo img { height: 50px; margin-bottom: 18px; }
.footer p { font-size: .93rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer .f-social { display: flex; gap: 12px; margin-top: 6px; }
.footer .f-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer .f-social a:hover { background: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Botón flotante CALLFEDES (izquierda, centrado, estilo glass) ---------- */
.callfedes-float { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 200; }
.callfedes-float .cf-float-btn {
  display: inline-flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 8px 22px 8px 12px; border-radius: 999px; text-decoration: none;
  background: rgba(255,255,255,.10);
  border: 2px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(11,42,74,.18);
  animation: cfBounce 1.6s ease-in-out infinite;
}
.callfedes-float .cf-float-btn:hover { animation-play-state: paused; border-color: #fff; background: rgba(255,255,255,.18); }
.callfedes-float img { width: 64px; height: auto; display: block; flex: none; }
.callfedes-float .cf-float-msg {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; line-height: 1.25;
  text-align: left; text-transform: uppercase; color: #eaf2fe; transition: color .3s ease;
}
/* Al hacer scroll: texto en negro para leerse sobre fondos claros */
.callfedes-float.scrolled .cf-float-msg { color: #111; }
@keyframes cfBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-17px); } }
@media (max-width: 640px) {
  .callfedes-float { left: 12px; }
  .callfedes-float img { width: 48px; }
  .callfedes-float .cf-float-msg { font-size: .58rem; }
}

/* ---------- Page hero (internas) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy), #123a63); color: #fff; padding: 70px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: #bcd3ee; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .88rem; color: #8fb0d6; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Valores ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { text-align: center; padding: 34px 26px; border-radius: var(--r-md); border: 1px solid var(--line); transition: all .25s; }
.value:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.value .v-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--sky); display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 18px; }
.value h3 { margin-bottom: 10px; }
.value p { color: var(--muted); font-size: .94rem; }

/* ---------- Utilidades ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid, .values-grid, .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-wrap { grid-template-columns: 1fr; gap: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 76px; right: 0; width: 82%; max-width: 320px; height: calc(100vh - 76px);
    background: #fff; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 24px; box-shadow: var(--shadow-lg); transform: translateX(110%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { display: block; padding: 12px 0; width: 100%; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: 0 0 8px 12px; min-width: auto; }
  .has-drop:hover .dropdown { transform: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .features-grid, .programs-grid, .values-grid, .branches-grid, .testi-grid, .footer-grid, .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .hero-badge { left: 8px; }
}
