:root {
  --petrol: #123C46;
  --petrol-dark: #0C2A32;
  --sky: #DCEFF3;
  --sky-soft: #EEF7F9;
  --offwhite: #FAFAF8;
  --graphite: #202426;
  --muted: #4A5457;
  --muted-soft: #7A8286;
  --sage: #B8CDBF;
  --white: #FFFFFF;
  --line: rgba(18, 60, 70, 0.12);
  --radius: 12px;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--graphite);
  background: var(--offwhite);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Sin resaltado azul al tocar en móvil */
* { -webkit-tap-highlight-color: transparent; }

/* Los elementos interactivos no se seleccionan al tocarlos */
.btn, .main-nav a, .nav-toggle, .footer-nav a, .wa-toggle, .wa-menu a,
.pill-list li, .client-name, .link-arrow, .hero-scroll, .contact-form label {
  -webkit-user-select: none;
  user-select: none;
}
/* pero los campos del formulario sí deben permitir seleccionar y editar */
.contact-form input, .contact-form select, .contact-form textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 4px;
}

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

section { padding: clamp(52px, 7vw, 88px) 0; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; text-wrap: balance; }

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.25rem);
  color: var(--petrol);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 14px;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px;
  background: var(--sage);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease 0.15s;
}
.reveal.visible h2::after { transform: scaleX(1); }
h2.centered { text-align: center; }
h2.centered::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: center; }
.reveal.visible h2.centered::after { transform: translateX(-50%) scaleX(1); }
.cta-final h2 { color: var(--white); }
.cta-final h2::after { background: var(--sage); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted-soft);
  margin-bottom: 14px;
}

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.02rem;
}
.section-lead.light { color: rgba(255, 255, 255, 0.82); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(18, 60, 70, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(18, 60, 70, 0.09); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
  transition: padding 0.3s ease;
}
.site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 46px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .logo img { height: 38px; }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--petrol);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--petrol); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--petrol); font-weight: 600; }

.nav-toggle {
  display: none;
  position: relative;
  width: 28px; height: 20px;
  background: none; border: none; padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  position: absolute;
  left: 0; width: 100%; height: 2.5px;
  border-radius: 2px;
  background: var(--petrol);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease, top 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18, 60, 70, 0.18); }
.btn-primary { background: var(--petrol); color: var(--white); }
.btn-secondary { background: transparent; color: var(--petrol); border: 1.5px solid var(--petrol); }
.btn-secondary:hover { background: rgba(18, 60, 70, 0.05); }
.btn-header { white-space: nowrap; padding: 11px 20px; font-size: 0.88rem; }

.btn.auto-shine::before { animation: autoShine 4.5s ease-in-out infinite; }
.btn.auto-shine:hover::before { animation-play-state: paused; }
@keyframes autoShine {
  0%, 55% { left: -75%; }
  75%, 100% { left: 130%; }
}

.link-arrow {
  display: inline-block;
  font-weight: 700;
  color: var(--petrol);
  text-decoration: none;
  font-size: 1.02rem;
  border-bottom: 2px solid var(--sage);
  padding-bottom: 3px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--petrol); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--offwhite);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  width: clamp(210px, 58vw, 340px);
  opacity: 0;
  animation: preloaderPop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes preloaderPop {
  0% { opacity: 0; transform: scale(0.84); }
  65% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}
.preloader-bar {
  width: clamp(150px, 36vw, 210px);
  height: 3px;
  margin-top: 26px;
  border-radius: 3px;
  background: rgba(18, 60, 70, 0.12);
  overflow: hidden;
  opacity: 0;
  animation: preloaderFadeIn 0.4s ease 0.3s forwards;
}
.preloader-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--petrol);
  border-radius: 3px;
  animation: preloaderBarFill 1.55s ease 0.35s forwards;
}
@keyframes preloaderFadeIn { to { opacity: 1; } }
@keyframes preloaderBarFill { to { width: 100%; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.programs-grid > *, .method-steps > *, .why-grid > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible .programs-grid > *,
.reveal.visible .method-steps > *,
.reveal.visible .why-grid > * { opacity: 1; transform: translateY(0); }
.programs-grid > *:nth-child(1), .method-steps > *:nth-child(1), .why-grid > *:nth-child(1) { transition-delay: 0.05s; }
.programs-grid > *:nth-child(2), .method-steps > *:nth-child(2), .why-grid > *:nth-child(2) { transition-delay: 0.12s; }
.programs-grid > *:nth-child(3), .method-steps > *:nth-child(3), .why-grid > *:nth-child(3) { transition-delay: 0.19s; }
.programs-grid > *:nth-child(4), .method-steps > *:nth-child(4), .why-grid > *:nth-child(4) { transition-delay: 0.26s; }
.programs-grid > *:nth-child(5), .why-grid > *:nth-child(5) { transition-delay: 0.33s; }
.programs-grid > *:nth-child(6), .why-grid > *:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: calc(100svh - 70px);
  padding: clamp(56px, 9vh, 96px) 0 clamp(76px, 11vh, 118px);
  text-align: center;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); pointer-events: none; z-index: 0;
}

/* Imagen de fondo difuminada */
.hero-bg {
  position: absolute;
  inset: -60px;
  z-index: -2;
  background-image: url('../assets/corp-hero-vert.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  transform: scale(1.03);
}
/* Velo blanco: halo central para el texto, bordes más limpios de imagen */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 52% 46% at 50% 47%,
      rgba(250, 250, 248, 0.78) 0%,
      rgba(250, 250, 248, 0.42) 60%,
      rgba(250, 250, 248, 0.00) 100%),
    linear-gradient(180deg,
      rgba(250, 250, 248, 0.42) 0%,
      rgba(250, 250, 248, 0.10) 40%,
      rgba(250, 250, 248, 0.14) 62%,
      rgba(250, 250, 248, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.hero-copy { max-width: 780px; }

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(18, 60, 70, 0.35);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
}
body.loaded .hero-scroll { animation: fadeUp 0.8s ease 0.7s both; }
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--petrol);
  animation: scrollHint 1.9s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(13px); opacity: 0.25; }
}
.hero-copy > * { opacity: 0; }
body.loaded .hero-copy .eyebrow { animation: fadeUp 0.6s ease 0.05s both; }
body.loaded .hero-copy h1 { animation: fadeUp 0.7s ease 0.14s both; }
body.loaded .hero-copy .hero-subtitle { animation: fadeUp 0.7s ease 0.26s both; }
body.loaded .hero-copy .hero-ctas { animation: fadeUp 0.7s ease 0.38s both; }
body.loaded .hero-copy .hero-microcopy { animation: fadeUp 0.7s ease 0.5s both; }
body.loaded .hero-copy .hero-fundae { animation: fadeUp 0.7s ease 0.62s both; }
.hero-figure { opacity: 0; }
body.loaded .hero-figure { animation: fadeUp 0.85s ease 0.28s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  color: var(--petrol);
  margin-bottom: 22px;
  text-shadow: 0 2px 14px rgba(250, 250, 248, 0.95), 0 1px 3px rgba(250, 250, 248, 0.9);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: #3B4548;
  margin: 0 auto 32px;
  max-width: 58ch;
  text-shadow: 0 1px 10px rgba(250, 250, 248, 0.95);
}
.hero .eyebrow, .hero-microcopy { text-shadow: 0 1px 8px rgba(250, 250, 248, 0.9); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.hero-microcopy { font-size: 0.9rem; color: var(--muted-soft); }

/* Aviso FUNDAE bajo los CTA del hero */
.hero-fundae {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  padding: 11px 20px;
  max-width: 46ch;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--petrol);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 60, 70, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 14px rgba(18, 60, 70, 0.07);
}
.hero-fundae strong { font-weight: 600; }
.hero-fundae-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(184, 205, 191, 0.32);
}
.hero .btn-secondary { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px); }
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.92); }

/* ---------- FUNDAE ---------- */
.fundae { background: var(--petrol); color: var(--white); }
.fundae h2 { color: var(--white); }
.fundae h2::after { background: var(--sage); }
.fundae-badge {
  display: inline-block;
  border: 2px solid var(--sage);
  color: var(--sage);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.fundae-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin: 8px 0 26px;
}
.fundae-item { padding-left: 18px; border-left: 3px solid rgba(184, 205, 191, 0.5); }
.fundae-item h3 { font-size: 1.02rem; margin-bottom: 7px; }
.fundae-item p { font-size: 0.93rem; color: rgba(255, 255, 255, 0.78); }
.fundae-note { color: rgba(255, 255, 255, 0.58); font-size: 0.8rem; line-height: 1.5; max-width: 78ch; }

/* Versión franja compacta (páginas interiores) */
.fundae.fundae-strip { padding: clamp(28px, 4vw, 40px) 0; }
.fundae-inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
  text-align: center;
}
.fundae-inner .fundae-badge { margin-bottom: 0; flex: 0 0 auto; }
.fundae-text { max-width: 62ch; }
.fundae-claim { color: var(--white); font-size: clamp(1.02rem, 2vw, 1.3rem); font-weight: 700; margin-bottom: 6px; }

/* ---------- Qué hacemos ---------- */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.pill-list li {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--petrol);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pill-list li:hover { transform: translateY(-2px); border-color: var(--petrol); }

/* ---------- Clientes / marquee de logos ---------- */
.clients {
  background: var(--white);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients .container { margin-bottom: 34px; }
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(30px, 5vw, 64px);
  animation: marqueeScroll 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(130px, 15vw, 178px);
  height: clamp(62px, 7vw, 84px);
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.62;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.client-logo img:hover { filter: grayscale(0%); opacity: 1; }

/* ---------- Acordeón (solo móvil) ---------- */
/* Por defecto (escritorio): todo visible, sin botón ni flecha */
.tap-hint { display: none; }
.card-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
}
.card-chevron { display: none; }
.card-body > div > p:last-child { margin-bottom: 0; }

/* ---------- Programas ---------- */
.programs { background: var(--sky-soft); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(18, 60, 70, 0.11);
  border-color: transparent;
}
.program-card h3 { color: var(--petrol); font-size: 1.06rem; margin-bottom: 9px; }
.program-card p { font-size: 0.93rem; color: var(--muted); }
.programs-more { margin-top: 34px; text-align: center; }

/* ---------- Método ---------- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.method-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 46px rgba(18, 60, 70, 0.16);
}
.method-steps {
  list-style: none;
  display: grid;
  gap: 18px;
  counter-reset: none;
}
.method-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.method-steps li:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--petrol);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.method-steps h3 { font-size: 1.04rem; color: var(--petrol); margin-bottom: 4px; }
.method-steps p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Por qué ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 14px;
}
.why-item { padding-left: 18px; border-left: 3px solid var(--sage); }
.why-item h3 { color: var(--petrol); font-size: 1.02rem; margin-bottom: 7px; }
.why-item p { font-size: 0.93rem; color: var(--muted); }

/* ---------- CTA final + formulario ---------- */
.cta-final { background: var(--petrol); color: var(--white); position: relative; overflow: hidden; }
.cta-final .blob-1 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(184, 205, 191, 0.22) 0%, transparent 70%);
  top: -180px; right: -150px;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-lead { color: rgba(255, 255, 255, 0.85); text-align: center; margin-bottom: 34px; }

.contact-form {
  max-width: 660px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 16px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--petrol);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--graphite);
  background: var(--offwhite);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--petrol);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.form-submit { width: 100%; margin-top: 4px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.9rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #17643f; }
.form-status.err { color: #8f2020; }

.cta-direct { text-align: center; margin-top: 30px; }
.cta-direct p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; margin-bottom: 12px; }
.cta-direct-links { display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap; }
.cta-direct-links a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.cta-direct-links a:hover { border-color: var(--sage); }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-dark); color: rgba(255, 255, 255, 0.72); padding: clamp(40px, 6vw, 60px) 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 14px; }
.footer-claim { font-size: 0.94rem; color: rgba(255, 255, 255, 0.6); max-width: 30ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.footer-nav, .footer-contact { display: grid; gap: 10px; font-style: normal; }
.footer-nav a, .footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  width: fit-content;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px 26px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.footer-fundae { max-width: 52ch; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--white); text-decoration: underline; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-toggle {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--petrol);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 60, 70, 0.32);
  display: grid; place-items: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.wa-toggle:hover { transform: scale(1.07); background: var(--petrol-dark); }
.wa-toggle:active { transform: scale(0.9); }
.wa-toggle.boing { animation: waBoing 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes waBoing {
  0%   { transform: scale(1); }
  18%  { transform: scale(0.84); }
  42%  { transform: scale(1.18); }
  62%  { transform: scale(0.93); }
  80%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.wa-toggle svg { width: 30px; height: 30px; fill: currentColor; }
.wa-menu {
  display: grid; gap: 8px;
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(18, 60, 70, 0.22);
  order: -1;
  transform-origin: bottom right;
  animation: waMenuIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wa-menu[hidden] { display: none; }
@keyframes waMenuIn {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-menu { animation: none; }
}
.wa-menu a {
  color: var(--petrol);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.wa-menu a:hover { background: var(--sky-soft); }

/* ---------- Páginas interiores ---------- */
.page-hero { background: var(--sky-soft); padding: clamp(44px, 6vw, 72px) 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--petrol); margin-bottom: 14px; }
.page-hero p { max-width: 62ch; color: var(--muted); font-size: 1.02rem; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 78ch; }
.legal h2 {
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  color: var(--petrol);
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; }
.legal h2::after { display: none; }
.legal p { color: var(--muted); margin-bottom: 13px; line-height: 1.72; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { color: var(--muted); margin-bottom: 8px; line-height: 1.65; }
.legal strong { color: var(--graphite); font-weight: 600; }
.legal a { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--petrol-dark); }
.legal-data {
  list-style: none;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--sky-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.legal-data li { margin-bottom: 7px; }
.legal-data li:last-child { margin-bottom: 0; }
.legal-updated {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted-soft);
}

/* Casilla de consentimiento del formulario */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 2px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--petrol);
  cursor: pointer;
}
.form-consent a { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }

.service-group { margin-bottom: 44px; }
.service-group:last-child { margin-bottom: 0; }
.service-group > h2 { margin-bottom: 22px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.contact-info { display: grid; gap: 26px; }
.contact-block h3 { color: var(--petrol); font-size: 1rem; margin-bottom: 8px; }
.contact-block a {
  display: block;
  color: var(--petrol);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.contact-block a:hover { border-color: var(--sage); }
.contact-block p { color: var(--muted); font-size: 0.94rem; }
.contact-page .contact-form { margin: 0; border: 1px solid var(--line); }

/* ---------- Responsive ---------- */
/* Tablet/escritorio: imagen apaisada. Móvil (arriba): imagen vertical */
@media (min-width: 800px) {
  .hero-bg { background-image: url('../assets/corp-hero.jpg'); }
}

@media (max-width: 1000px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 0.86rem; }
  .btn-header { padding: 10px 16px; font-size: 0.84rem; }
}

@media (max-width: 900px) {
  .method-grid, .contact-grid { grid-template-columns: 1fr; }
  .method-figure img { max-height: 300px; object-fit: cover; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--offwhite);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(18, 60, 70, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 15px 24px;
    border-top: 1px solid rgba(18, 60, 70, 0.06);
    font-size: 0.98rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
  }
  .main-nav a::after { display: none; }
  .main-nav.open a { opacity: 1; transform: translateY(0); }
  .main-nav.open a:nth-child(1) { transition-delay: 0.06s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.12s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.18s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.24s; }
  .main-nav.open a:nth-child(5) { transition-delay: 0.30s; }
  .nav-toggle { display: block; }
  .btn-header { display: none; }
}

/* ---------- Acordeón activo: solo en móvil ---------- */
@media (max-width: 700px) {
  .tap-hint {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--muted-soft);
    margin: -18px 0 20px;
  }
  .accordion { grid-template-columns: 1fr !important; gap: 12px; }

  .accordion .card-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    padding: 2px 0;
    -webkit-tap-highlight-color: transparent;
  }
  .accordion .card-toggle h3 { margin-bottom: 0; }

  .accordion .card-chevron {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
  }
  .accordion .card-chevron::before {
    content: "";
    position: absolute;
    top: 5px; left: 5px;
    width: 9px; height: 9px;
    border-right: 2.5px solid var(--petrol);
    border-bottom: 2.5px solid var(--petrol);
    transform: rotate(45deg);
    transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .accordion .is-open .card-chevron::before { transform: rotate(-135deg) translate(-3px, -3px); }

  /* El cuerpo se despliega animando la altura */
  .accordion .card-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.34s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.28s ease,
                margin-top 0.34s ease;
    opacity: 0;
    margin-top: 0;
  }
  .accordion .card-body > div { overflow: hidden; }
  .accordion .is-open .card-body {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 10px;
  }

  /* La tarjeta abierta se resalta ligeramente */
  .accordion .program-card { transition: box-shadow 0.3s ease, transform 0.3s ease; }
  .accordion .program-card.is-open { box-shadow: 0 10px 24px rgba(18, 60, 70, 0.10); }
  .accordion .why-item.is-open { border-left-color: var(--petrol); }
  .accordion .why-item { transition: border-color 0.3s ease; }
  .accordion .program-card:hover { transform: none; box-shadow: none; }
  .accordion .program-card.is-open:hover { box-shadow: 0 10px 24px rgba(18, 60, 70, 0.10); }
}

@media (prefers-reduced-motion: reduce) {
  .accordion .card-body,
  .accordion .card-chevron::before { transition: none !important; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .container { padding: 0 18px; }
  .logo img { height: 38px; }
  .site-header.scrolled .logo img { height: 34px; }
  .hero { min-height: calc(100svh - 62px); padding-bottom: 84px; }
  .hero-bg { filter: blur(2px); }
  .hero-veil {
    background:
      radial-gradient(ellipse 88% 42% at 50% 46%,
        rgba(250, 250, 248, 0.84) 0%,
        rgba(250, 250, 248, 0.52) 62%,
        rgba(250, 250, 248, 0.06) 100%),
      linear-gradient(180deg,
        rgba(250, 250, 248, 0.42) 0%,
        rgba(250, 250, 248, 0.14) 42%,
        rgba(250, 250, 248, 0.55) 100%);
  }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-fundae {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
  }
  .hero-fundae-dot { margin-top: 6px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .fundae-inner { flex-direction: column; gap: 14px; }
  .pill-list { gap: 9px; }
  .pill-list li { font-size: 0.85rem; padding: 8px 15px; }
  .why-grid { gap: 18px; }
  .marquee-track { animation-duration: 32s; }
  .wa-fab { right: 14px; bottom: 14px; }
  .wa-toggle { width: 50px; height: 50px; }
  .wa-toggle svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .programs-grid > *, .method-steps > *, .why-grid > *,
  .hero-copy > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-scroll { animation: none !important; opacity: 1 !important; }
  .hero-scroll span { animation: none !important; }
  .btn.auto-shine::before { animation: none; }
  .marquee-track { animation: none; }
  .preloader { transition: none; }
  .preloader-logo, .preloader-bar, .preloader-bar span { animation-duration: 0.01s; }
  h2::after { transform: scaleX(1) !important; }
  h2.centered::after { transform: translateX(-50%) scaleX(1) !important; }
}
