:root {
  --bg: #07102c;
  --bg-deep: #05081d;
  --bg-card: rgba(12, 24, 64, 0.72);
  --bg-elev: #0c1840;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --soft: rgba(255, 255, 255, 0.55);
  --g1: #2de0d4;
  --g2: #7efa8c;
  --g3: #1bb8d4;
  --grad: linear-gradient(90deg, var(--g1) 0%, var(--g2) 100%);
  --light: #ffffff;
  --light-soft: #f3f7f8;
  --ink: #0c1633;
  --ink-muted: #445064;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 999px;
  --max: 1180px;
  --header: 72px;
  --font: "Plus Jakarta Sans", "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  z-index: 10000;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(5, 8, 29, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100% - 36px));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}

.logo img, .logo svg {
  width: 148px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width .25s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  background: var(--grad);
  color: #06221a;
  box-shadow: 0 10px 30px rgba(46, 224, 180, 0.25);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-login {
  min-width: 0;
  white-space: nowrap;
  padding-inline: 18px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding: 12px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  left: 4%;
  top: 8%;
  background: radial-gradient(circle, rgba(46, 90, 190, 0.42) 0%, rgba(7, 16, 44, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-grid > *,
.split > *,
.ceo > *,
.footer-grid > *,
.profile > *,
.cards-4 > *,
.cards-3 > *,
.cards-2 > * {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero .lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 32px;
}

.hero-ctas,
.cta-row,
p:has(> .btn) {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.carousel {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
  box-shadow: var(--shadow);
  background: #0a1644;
}

.carousel-track {
  position: relative;
  min-height: 520px;
  border-radius: inherit;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .08s linear;
  border-radius: inherit;
  overflow: hidden;
}

.slide.is-active { opacity: 1; z-index: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 30, 0.88));
  font-size: 14px;
  font-weight: 600;
}

.carousel-nav {
  position: absolute;
  inset: auto 14px 18px auto;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.carousel-nav button,
.dots button {
  border: 0;
  cursor: pointer;
}

.carousel-nav button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.dots {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 22px;
  display: flex;
  gap: 7px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.dots button.is-active { width: 22px; border-radius: 99px; background: var(--g1); }

.section { padding: 88px 0; position: relative; scroll-margin-top: calc(var(--header) + 8px); }
.section.alt { background: linear-gradient(180deg, #07102c, #08143a 40%, #07102c); }

.section.light {
  background: var(--light);
  color: var(--ink);
}

.section.light h2,
.section.light h3,
.section.light summary {
  color: var(--ink);
}

.section.light .kicker { color: #0c9b92; }

.section.light .intro,
.section.light .creds,
.section.light .faq p,
.section.light .faq li,
.section.light .article {
  color: var(--ink-muted);
}

.section.light .article h2,
.section.light .article h3 {
  color: var(--ink);
}

.section.light .card {
  background: var(--light);
  border: 1px solid #e4ecee;
  box-shadow: 0 14px 40px rgba(12, 22, 51, 0.06);
  backdrop-filter: none;
}

.section.light .card p { color: var(--ink-muted); }
.section.light .card .card-tagline { color: var(--ink); }

#servicios {
  padding: 48px 0 56px;
}

#servicios h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  margin-bottom: 8px;
}

#servicios .intro {
  margin-bottom: 22px;
  font-size: 15px;
  max-width: 62ch;
}

#servicios .cards-2 { gap: 12px; }

#servicios .card {
  padding: 16px 18px 14px;
}

#servicios .card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

#servicios .card-head .icon {
  width: 36px;
  height: 36px;
  font-size: 18px;
  flex-shrink: 0;
}

#servicios .card h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

#servicios .card .card-tagline {
  margin: 0;
  font-size: 13.5px;
}

#servicios .card p {
  font-size: 13.5px;
  line-height: 1.5;
}

#servicios .card a.more { margin-top: 10px; }

.section.light .card .icon {
  background: rgba(12, 155, 146, 0.1);
}

.section.light .btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.section.light .faq details { border-color: #e4ecee; }
.section.light .faq a { color: #0b8f86; }

.section.light .stat {
  background: var(--light-soft);
  border-color: #e4ecee;
  color: var(--ink-muted);
}

.section.light .form {
  background: var(--light-soft);
  border-color: #e4ecee;
  color: var(--ink);
}

.section.light .form input,
.section.light .form select,
.section.light .form textarea {
  background: #fff;
  border-color: #d5e0e3;
  color: var(--ink);
}

.more {
  color: var(--g1);
  font-weight: 700;
  font-size: 14px;
}

.section.light .more,
.section.light .article a {
  color: #0b8f86;
}

.kicker {
  color: var(--g1);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.section .intro {
  max-width: 68ch;
  color: var(--muted);
  margin: 0 0 40px;
}

.cards-4, .cards-3, .cards-2 {
  display: grid;
  gap: 20px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 224, 212, 0.45);
}

.card h3 { margin: 10px 0 6px; font-size: 20px; }
.card .card-tagline {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card p:not(.card-tagline) + p { margin-top: 10px; }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(45, 224, 212, 0.12);
  color: var(--g1);
}

.card a.more {
  display: inline-block;
  margin-top: 14px;
  color: var(--g1);
  font-weight: 700;
  font-size: 14px;
}

.inst-card {
  overflow: hidden;
  padding: 0;
}

.inst-card img { height: 160px; width: 100%; object-fit: cover; }
.inst-card .body { padding: 16px 18px 18px; }
.inst-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.inst-card .ext {
  font-size: 12.5px;
  color: var(--g2);
  font-weight: 700;
  margin: 0 0 10px;
}
.inst-card .more { margin-top: 12px; }
.gallery-lead {
  max-width: 68ch;
  color: var(--ink-muted);
  margin: 0 0 36px;
}
.gallery-lead a { color: #0b8f86; text-decoration: underline; text-underline-offset: 3px; }
.gallery-title {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.site-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 44px;
}
.site-preview {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4ecee;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(12, 22, 51, 0.06);
  transition: transform .2s ease, border-color .2s ease;
}
.site-preview:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 155, 146, 0.4);
}
.site-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0c1633;
  padding: 10px 14px;
}
.site-chrome .dots {
  position: static;
  left: auto;
  bottom: auto;
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.site-chrome .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffbd2e;
}
.site-chrome .dots span:first-child { background: #ff5f57; }
.site-chrome .dots span:last-child { background: #28c840; }
.site-chrome .url {
  min-width: 0;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-preview img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: top center;
  background: #eef3f4;
}
.site-preview .body { padding: 16px 18px 18px; }
.site-preview h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--ink);
}
.site-preview .kicker { margin-bottom: 6px; }
.site-preview .more { margin: 0; }
.inst-card .more + .more {
  display: block;
  margin-top: 6px;
}

#instituciones h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

#instituciones .intro {
  margin-bottom: 12px;
  max-width: 72ch;
}

#instituciones .intro + .intro { margin-bottom: 28px; }

.eco-more { margin-top: 22px; }

.ceo {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 40px;
  align-items: center;
}

.ceo img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  min-height: 0;
  max-height: 520px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.quote {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 18px;
}

.creds { display: grid; gap: 10px; margin: 22px 0 28px; color: var(--muted); }
.creds li { padding-left: 18px; position: relative; }
.creds li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g1);
  position: absolute;
  left: 0;
  top: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.split img {
  border-radius: 24px;
  min-height: 0;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

#podcast img {
  height: auto;
  max-height: 420px;
  object-position: center 32%;
  transform: scaleX(-1);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  overflow-wrap: break-word;
}

.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.faq p + p { margin-top: 10px; }
.faq a { overflow-wrap: anywhere; }
.faq ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.faq li {
  list-style: disc;
  margin: 5px 0;
}

.page-hero {
  padding: 48px 0 36px;
  background: var(--bg);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 22ch;
  overflow-wrap: break-word;
}

.hero-quote {
  display: block;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  max-width: 32ch;
  line-height: 1.4;
  margin-bottom: 10px;
}

.hero-sub { display: block; color: var(--muted); }

.profile {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.profile img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  max-height: 560px;
  box-shadow: 0 24px 60px rgba(12, 22, 51, 0.14);
}

.profile-intro h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.profile-intro p { color: var(--ink-muted); margin: 0 0 16px; }

.section.light .creds { color: var(--ink-muted); }
.section.light .creds li::before { background: #0c9b92; }

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.section.light .profile-actions .btn-ghost {
  color: var(--ink);
  border-color: rgba(12, 22, 51, 0.18);
}

.profile-pull {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  border-left: 4px solid var(--g1);
  padding: 4px 0 4px 22px;
  margin: 0 0 40px;
  max-width: 54ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 48px;
}

.pillar {
  background: var(--light-soft);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid #e4ecee;
}

.pillar .kicker { margin-bottom: 8px; }
.pillar h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ink);
}
.pillar p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.voices-title {
  color: var(--ink);
  font-size: 22px;
  margin: 0 0 16px;
}

.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 12px;
}

.voice {
  margin: 0;
  background: var(--bg);
  color: #fff;
  border-radius: 20px;
  padding: 22px;
}

.voice p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.88); }
.voice cite {
  color: var(--g1);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}

.article { max-width: 78ch; color: var(--muted); }
.article h2, .article h3 { color: #fff; }
.article a { color: var(--g1); text-decoration: underline; text-underline-offset: 3px; }
.article ul, .article ol { padding-left: 20px; margin: 12px 0 20px; }
.article li { list-style: disc; margin: 6px 0; }
.article ol li { list-style: decimal; }
.article h2 { margin-top: 32px; }

.form {
  display: grid;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.form input, .form select, .form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.form textarea { min-height: 120px; resize: vertical; }
.form label { font-size: 13px; font-weight: 600; }

.site-footer {
  background: #040714;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.site-footer h2, .site-footer h3 { font-size: 15px; margin: 0 0 14px; }
.site-footer a, .site-footer p { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--g1); }
.site-footer li { margin: 8px 0; }
.legal {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 12.5px;
}

.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 60;
}

.search-modal,
.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 29, 0.98);
  z-index: 80;
  display: none;
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.search-modal.open, .nav-drawer.open { display: grid; place-items: start center; }

.search-box {
  width: min(680px, 100%);
  margin-top: calc(var(--header) + 12px);
}

.nav-drawer nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 16.5px;
  font-weight: 600;
}

.search-box input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0c1840;
  padding: 16px 18px;
  font-size: 18px;
}

.search-results { margin-top: 16px; display: grid; gap: 8px; }
.search-results a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0c1840;
  border: 1px solid var(--line);
}

.breadcrumb { color: var(--soft); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a { color: var(--g1); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.stat b { display: block; font-size: 28px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (hover: none) {
  .btn:hover,
  .card:hover,
  .site-preview:hover { transform: none; }
}

@media (max-width: 1199px) {
  .nav { display: none; }
  .btn-login .hide-sm { display: none; }
  .header-inner {
    grid-template-columns: 1fr auto;
    width: min(1280px, calc(100% - 24px));
    gap: 12px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    font-size: 22px;
  }
  .btn-login {
    padding-inline: 14px;
    font-size: 13.5px;
    min-height: 40px;
  }
  .logo svg, .logo img { width: 120px; max-height: 36px; height: auto; }
}

@media (max-width: 980px) {
  .hero-grid,
  .ceo,
  .split,
  .profile,
  .pillars,
  .voices {
    grid-template-columns: 1fr;
  }
  .cards-4,
  .cards-3,
  .stats,
  .footer-grid,
  .site-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .carousel,
  .carousel-track {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .hero {
    min-height: auto;
    padding: 20px 0 48px;
  }
  .hero h1 {
    max-width: 20ch;
    font-size: clamp(28px, 7vw, 44px);
  }
  .section { padding: 64px 0; }
  .ceo img,
  .split img,
  .profile img {
    max-height: 380px;
  }
  #podcast img { max-height: 280px; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { max-width: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .header-inner {
    gap: 6px;
    width: min(1280px, calc(100% - 16px));
  }
  .header-actions { gap: 8px; }
  .hero-ctas .btn { width: 100%; }
  .cards-4,
  .cards-3,
  .cards-2,
  .stats,
  .footer-grid,
  .site-gallery {
    grid-template-columns: 1fr;
  }
  .carousel,
  .carousel-track {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }
  .hero h1 { max-width: none; }
  .section { padding: 48px 0; }
  .section h2 { font-size: clamp(24px, 7vw, 34px); }
  #instituciones h2 { font-size: clamp(22px, 6.5vw, 32px); }
  .ceo img,
  .split img,
  .profile img { max-height: 280px; }
  #podcast img { max-height: 200px; }
  .inst-card img,
  .site-preview img { height: 140px; }
  .card { padding: 18px; }
  .form { padding: 18px; }
  .wa {
    width: 52px;
    height: 52px;
  }
  .legal {
    flex-direction: column;
    gap: 8px;
  }
  .icon-btn,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .logo svg, .logo img { width: 104px; max-height: 32px; }
  .btn-login { padding-inline: 12px; font-size: 13px; }
}

