/* ==========================================================================
   Soluciones Verticales — Hoja de estilos principal
   Réplica en código estático (HTML/CSS/JS) del sitio WordPress/Elementor.
   ========================================================================== */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: "HuluStyle";
  src: url("../fonts/HuluStyle-Regular.woff2") format("woff2"),
       url("../fonts/HuluStyle-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HuluStyle";
  src: url("../fonts/HuluStyle-Bold.woff2") format("woff2"),
       url("../fonts/HuluStyle-Bold.ttf") format("truetype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables (paleta global del sitio) ---------- */
:root {
  --sv-texto: #2d2a26;
  --sv-morado: #7e57c5;
  --sv-fucsia: #e31d93;
  --sv-rojo: #ff4438;
  --sv-naranja: #ff8300;
  --sv-amarillo: #ffc600;
  --sv-lima: #93d500;
  --sv-verde: #00ce7c;
  --sv-azul: #0071ce;
  --sv-gris: #f0f0f0;
  --sv-linea: #d7d7d7;
  --sv-blanco: #ffffff;

  --radio: 10px;
  --ancho-amplio: 1300px;   /* hero, bloques grises, footer */
  --ancho-contenido: 1160px; /* secciones internas */
  --fuente: "HuluStyle", "Helvetica Neue", Arial, sans-serif;
  --sep: 64px;   /* espacio uniforme arriba/abajo de las líneas grises y antes del pie */
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sv-texto);
  background: var(--sv-blanco);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--fuente); color: var(--sv-texto); font-weight: 700; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--sv-texto); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Contenedores ---------- */
.amplio    { width: min(var(--ancho-amplio), calc(100% - 32px)); margin-inline: auto; }
.contenido { width: min(var(--ancho-contenido), calc(100% - 32px)); margin-inline: auto; }
.estrecho  { width: min(800px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- Botón contorno (estilo único del sitio) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fuente); font-size: 16px; font-weight: 700; line-height: 1;
  color: var(--sv-texto); background: transparent;
  border: 0.8px solid var(--sv-texto); border-radius: 20px;
  padding: 12px 24px; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--sv-texto); color: #fff; }
.btn--claro { border-color: #fff; color: #fff; }
.btn--claro:hover { background: #fff; color: var(--sv-texto); }

/* ==========================================================================
   ENCABEZADO
   ========================================================================== */
.header { position: relative; z-index: 50; background: #fff; }
.header__inner {
  width: min(1300px, calc(100% - 64px)); margin-inline: auto;
  min-height: 145px; display: flex; align-items: center; gap: 0;
}
.header__logo { flex: 0 1 286px; min-width: 220px; display: block; }
.header__logo img { width: 286px; max-width: 100%; height: auto; }
.nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; }
.nav a {
  display: block; padding: 13px clamp(8px, 0.97vw, 14px);
  font-size: 16px; font-weight: 600; line-height: 20px; white-space: nowrap;
  color: var(--sv-texto); text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #9b9a99; }
.header__cta { flex: 0 0 auto; margin-left: 16px; display: flex; justify-content: flex-end; }
.header__cta .btn { border-radius: 22px; }

/* Botón hamburguesa (solo móvil/tablet) */
.menu-toggle {
  display: none; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; cursor: pointer; padding: 6px 10px; color: var(--sv-texto);
  font-family: var(--fuente);
}
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle span { font-size: 9px; font-weight: 700; }

/* Menú móvil (panel) */
.menu-movil {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: flex; flex-direction: column; padding: 24px 24px 40px;
  transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
}
.menu-movil.abierto { transform: translateX(0); visibility: visible; }
.menu-movil__top { display: flex; justify-content: space-between; align-items: center; }
.menu-movil__top img { width: 200px; }
.menu-movil__cerrar { background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; color: var(--sv-texto); }
.menu-movil ul { list-style: none; padding: 0; margin: 40px 0 30px; }
.menu-movil li a {
  display: block; padding: 14px 0; font-size: 24px; font-weight: 700;
  text-decoration: none; color: var(--sv-texto); border-bottom: 1px solid var(--sv-linea);
}
.menu-movil .btn { align-self: flex-start; }

/* ==========================================================================
   HÉROES
   ========================================================================== */
/* Imagen a la izquierda + tarjeta de color que se superpone a la derecha */
.hero { position: relative; display: flex; align-items: center; }
.hero__img { flex: 0 0 auto; width: 61.54%; } /* 800 / 1300 */
.hero__img img { width: 100%; height: 342px; object-fit: cover; border-radius: var(--radio); }
.hero__card {
  position: relative; z-index: 2;
  width: 50%; margin-left: -11.62%;  /* 650 / 1300 ; se monta 151px sobre la imagen */
  border-radius: var(--radio); padding: 55px 50px;
  display: flex; align-items: center; gap: 18px; color: #fff;
}
.hero__card .flecha { flex: 0 0 auto; width: 22px; height: 40px; align-self: flex-start; margin-top: 4px; }
.hero__card h1, .hero__card h2 { color: #fff; font-size: 52.8px; font-weight: 600; line-height: 1; }
.hero__card p { color: #fff; margin-top: 20px; font-family: Roboto, var(--fuente); }

/* Variante home: imagen más alta y tarjeta más grande */
.hero--home { padding-top: 10px; }
.hero--home .hero__img { width: 58%; }
.hero--home .hero__img img { height: 520px; }
.hero--home .hero__card { width: 50%; margin-left: -8%; min-height: 375px; }
.hero--home .hero__card h1 { max-width: 500px; }

/* Banner plano (páginas legales) */
.banner {
  border-radius: var(--radio); min-height: 150px;
  display: flex; align-items: center; justify-content: center; padding: 30px 20px;
}
.banner__titulo { display: flex; gap: 18px; align-items: flex-start; }
.banner__titulo .flecha { width: 20px; height: 40px; margin-top: 4px; }
.banner h1 { color: #fff; font-size: 52.8px; font-weight: 600; line-height: 1; }

/* Colores de fondo */
.bg-morado  { background: var(--sv-morado); }
.bg-fucsia  { background: var(--sv-fucsia); }
.bg-naranja { background: var(--sv-naranja); }
.bg-amarillo{ background: var(--sv-amarillo); }
.bg-lima    { background: var(--sv-lima); }
.bg-verde   { background: var(--sv-verde); }
.bg-gris    { background: var(--sv-gris); }

/* ==========================================================================
   ELEMENTOS COMPARTIDOS
   ========================================================================== */
/* Título con flecha de color a la izquierda */
.titulo-flecha { display: flex; gap: 12px; align-items: flex-start; }
.titulo-flecha .flecha { flex: 0 0 auto; width: 18px; height: 63px; margin-top: -9px; }
.titulo-flecha h2, .titulo-flecha h3 { font-size: 48px; font-weight: 600; line-height: 1; }

/* Etiqueta de sección: | Texto |  (alineada a la derecha) */
.etiqueta {
  display: flex; justify-content: flex-end;
}
.etiqueta__inner {
  width: 350px; display: flex; align-items: center; justify-content: center; gap: 14px;
}
.etiqueta img { width: 2px; height: 44px; object-fit: contain; }
.etiqueta h2, .etiqueta h5 { font-size: 24px; font-weight: 700; line-height: 1; text-align: center; }

/* Separador gris */
.divisor { border: 0; border-top: 0.8px solid var(--sv-linea); margin: 15px auto; }
/* Mismo espacio arriba y abajo de la línea: el margen lo pone la línea y
   se anula el margen del bloque siguiente / el relleno inferior del anterior. */
.divisor.contenido { margin: var(--sep) auto; }
.divisor.contenido + *,
.divisor.contenido + .historias-wrap > :first-child { margin-top: 0; }
.intro:has(+ .divisor) .intro__texto { padding-bottom: 0; }
.cierre__texto .divisor { width: 100%; margin: calc(var(--sep) - 34px) 0 0; } /* 20px gap + 14px margen del párrafo */

/* Espaciado vertical entre secciones */
.sec { margin-top: 80px; }
.sec--sm { margin-top: 50px; }
.sec--lg { margin-top: 120px; }
.pie-espacio { height: var(--sep); }
/* Intro justo después del héroe: mismo espacio que alrededor de la línea */
.hero + .intro { margin-top: var(--sep); }

/* Bloque intro: título con flecha + texto a la derecha */
.intro { display: flex; gap: 0; align-items: flex-start; }
.intro .titulo-flecha { flex: 0 0 auto; width: 320px; padding-left: 10px; }
.intro__texto { flex: 1; padding: 0 10px 34px 30px; }
.intro__texto--18 p, .intro__texto--18 li { font-size: 18px; line-height: 1.6; }
.intro__texto--19 p { font-size: 19.2px; line-height: 1.5; } /* igual a .cierre__texto--19 */

/* ==========================================================================
   HOME
   ========================================================================== */
/* ¿Cómo podemos ayudarte? */
.ayuda { display: flex; gap: 0; align-items: stretch; }
.ayuda .titulo-flecha { flex: 0 0 297px; padding-left: 10px; }
.ayuda .titulo-flecha h2 { max-width: 240px; }
.ayuda__tarjetas { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tarjeta-ayuda {
  border-radius: var(--radio); padding: 35px 28px 34px 30px; min-height: 255px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.tarjeta-ayuda h3 { font-size: 20.8px; font-weight: 400; line-height: 1; }
.tarjeta-ayuda .btn { align-self: flex-start; }

/* Nuestro propósito */
.proposito {
  border-radius: var(--radio); padding: 167px 85px 130px;
  margin-top: -50px; /* el bloque gris sube por detrás de las tarjetas, igual que el original */
  position: relative; z-index: 0;
}
.ayuda-wrap { position: relative; z-index: 1; }
.proposito .etiqueta { margin-right: 0; }
.proposito__titulo { display: flex; gap: 20px; align-items: flex-start; margin-top: 112px; }
.proposito__titulo img { width: 32px; height: 51px; margin-top: 2px; }
.proposito__titulo h2 { font-size: 64px; line-height: 1; font-weight: 700; }
.proposito__texto { font-size: 41.6px; line-height: 1; font-weight: 400; margin: 20px 0 0 54px; max-width: 972px; }

/* Filas de servicio: imagen + tarjeta de color */
.servicio { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.servicio__img img { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radio); }
.servicio__card { border-radius: var(--radio); padding: 45px 30px 30px 50px; color: #fff; }
.servicio__card .titulo-mini { display: flex; gap: 12px; align-items: flex-start; }
.servicio__card .titulo-mini img { width: 14px; height: 28px; }
.servicio__card h3 { color: #fff; font-size: 30.4px; font-weight: 600; line-height: 1; }
.servicio__card p { color: #fff; margin: 14px 0 0; max-width: 490px; }
.servicio__accion { display: flex; justify-content: flex-end; margin-top: 20px; }
.servicio__lista { margin-top: 30px; }
.servicio__lista ul { font-size: 18px; line-height: 1.6; padding-left: 20px; margin: 0; }
.servicio__lista li { margin-bottom: 12px; }
.servicio__lista p { margin-bottom: 10px; }
.servicio--alto .servicio__img img { height: 360px; }

/* Historias: título a la izquierda + carrusel de videos */
.historias-wrap { position: relative; }
.historias-wrap::before {      /* bloque gris decorativo por detrás */
  content: ""; position: absolute; z-index: -1;
  left: 50%; transform: translateX(-50%);
  width: min(var(--ancho-amplio), calc(100% - 32px));
  top: var(--gris-top, 550px); bottom: calc(-1 * var(--gris-bottom, 40px));
  background: var(--sv-gris); border-radius: var(--radio);
}
.historias { display: flex; gap: 0; }
.historias__intro { flex: 0 0 394px; padding: 37px 20px 0 0; display: flex; flex-direction: column; gap: 20px; }
.historias__intro .btn { margin-left: 40px; align-self: flex-start; }
.historias__carrusel { flex: 1; min-width: 0; }

/* Carrusel genérico */
.carrusel { position: relative; }
.carrusel__pista {
  display: flex; gap: var(--gap, 10px); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__item { flex: 0 0 calc((100% - (var(--n, 1) - 1) * var(--gap, 10px)) / var(--n, 1)); scroll-snap-align: start; }
.carrusel__flecha {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: grid; place-items: center; color: var(--sv-texto); font-size: 20px;
}
.carrusel__flecha--prev { left: 8px; }
.carrusel__flecha--next { right: 8px; }
.carrusel__puntos { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carrusel__puntos button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #c9c9c9;
}
.carrusel__puntos button[aria-current="true"] { background: var(--sv-texto); }

/* Tarjeta de video (YouTube Shorts) */
.video-card__frame {
  position: relative; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radio); overflow: hidden;
}
/* Reels (inicio y Nuestras historias): tarjetas individuales de ancho contenido, no un bloque pegado */
.carrusel--reels .carrusel__item { flex-basis: min(calc((100% - var(--gap)) / 2), 260px); }
.carrusel--reels .carrusel__pista { padding-bottom: 4px; }
.video-card__frame iframe, .video-card__frame button {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card__frame button { cursor: pointer; padding: 0; background: #000; }
.video-card__frame button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-card__frame button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px;
  transform: translate(-50%,-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7a8.5 8.5 0 0 0-6-6C55.2.3 34 .3 34 .3s-21.2 0-26.5 1.4a8.5 8.5 0 0 0-6 6C.1 13 .1 24 .1 24s0 11 1.4 16.3a8.5 8.5 0 0 0 6 6C12.8 47.7 34 47.7 34 47.7s21.2 0 26.5-1.4a8.5 8.5 0 0 0 6-6C67.9 35 67.9 24 67.9 24s0-11-1.4-16.3z' fill='%23f00'/%3E%3Cpath d='M45 24 27 14v20' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}
.video-card__nombre { font-size: 19.2px; font-weight: 600; line-height: 1; padding: 20px 20px 0; }
.video-card__cargo  { font-size: 16px; line-height: 1; padding: 10px 20px 0; }

/* Testimonios */
.testimonio {
  margin: 0;
  border-radius: var(--radio); padding: 36px 25px 45px 36px; min-height: 220px; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; color: #fff;
}
.testimonio p { color: #fff; }
.testimonio h3 { color: #fff; font-size: 19.2px; font-weight: 600; line-height: 1; }

/* Logro destacado (home) */
.logro-destacado { display: flex; align-items: center; position: relative; }
.logro-destacado__img { flex: 0 0 45.7%; position: relative; z-index: 2; }
.logro-destacado__img img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radio); }
.logro-destacado__lado { flex: 1; margin-left: -138px; display: flex; flex-direction: column; gap: 20px; }
.logro-destacado__card { border-radius: var(--radio); padding: 100px 50px 50px 205px; display: flex; flex-direction: column; gap: 20px; }
.logro-destacado__card h3 { font-size: 30.4px; font-weight: 600; line-height: 1; }
.logro-destacado__lado .btn { align-self: flex-end; margin-right: 50px; }

/* CTA verde */
.cta {
  border-radius: var(--radio); padding: 60px; display: flex; align-items: center;
  justify-content: center; gap: 20px; flex-wrap: wrap; text-align: center;
}
.cta h2 { font-size: 28px; font-weight: 600; line-height: 1; }

/* Tarjetas de artículos (Debes saber) */
.articulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.articulo-card {
  background: var(--sv-gris); border-radius: var(--radio); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  border-top: 6px solid var(--acento, var(--sv-morado));
}
.articulo-card time { font-size: 13px; color: #6b6762; }
.articulo-card h3 { font-size: 22px; font-weight: 600; line-height: 1.15; }
.articulo-card h3 a { text-decoration: none; }
.articulo-card h3 a:hover { text-decoration: underline; }
.articulo-card p { font-size: 15px; flex: 1; }
.articulo-card .btn { align-self: flex-start; }

/* ==========================================================================
   PÁGINAS INTERNAS
   ========================================================================== */
/* Frase de cierre con ícono (Hacemos por ti / Historias) */
.cierre { display: flex; gap: 0; align-items: flex-start; }
.cierre__icono { flex: 0 0 348px; }
.cierre__icono img { width: 100%; height: 241px; object-fit: contain; }
.cierre__texto { flex: 1; padding-top: 31px; display: flex; flex-direction: column; gap: 20px; }
.cierre__texto h2 { font-size: 41.6px; font-weight: 600; line-height: 1; }
.cierre__texto p { font-size: 18px; line-height: 1.6; }
.cierre__texto--19 p { font-size: 19.2px; line-height: 1.5; }

.texto-derecha { width: 55%; margin-left: auto; text-align: right; font-family: Roboto, var(--fuente); line-height: 1.6; margin-top: 20px; }

/* Casos de éxito (Nuestros logros) */
.caso { display: flex; gap: 20px; align-items: flex-start; }
.caso__img { flex: 0 0 456px; }
.caso__img img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radio); }
.caso__texto { flex: 1; padding: 30px 0 0 30px; display: flex; flex-direction: column; gap: 20px; }
.caso__texto h2 { font-size: 30.4px; font-weight: 600; line-height: 1; }
.lista-casos > * + * { margin-top: 0; }
.lista-casos .divisor { margin: var(--sep) auto; }

/* Aliados */
.aliados-wrap { position: relative; padding: 50px 0; }
.aliados-wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%);
  width: min(var(--ancho-amplio), calc(100% - 32px)); top: 0; bottom: 0;
  background: var(--sv-lima); border-radius: var(--radio);
}
.aliados { display: flex; gap: 0; width: min(1140px, calc(100% - 32px)); margin-inline: auto; }
.aliados__titulo { flex: 0 0 380px; align-self: center; padding-right: 40px; }
.aliados__titulo h2 { font-size: 24px; font-weight: 700; line-height: 1; }
.aliados__logos { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aliado { background: var(--sv-gris); border-radius: var(--radio); padding: 30px 20px; height: 190px; display: grid; place-items: center; }
.aliado img { width: 100%; height: 130px; object-fit: contain; }

/* Formulario de contacto */
.contacto { border-radius: var(--radio); padding: 167px 130px 130px 0; margin-top: -50px; position: relative; z-index: 0; }
.contacto__inner { width: 745px; max-width: 100%; margin-left: auto; }
.contacto__inner > p { margin-bottom: 20px; }
.form label { display: block; font-size: 16px; margin: 0 0 8px; }
.form .campo { margin-bottom: 20px; }
.form input, .form textarea {
  width: 100%; font-family: var(--fuente); font-size: 16px; color: var(--sv-texto);
  background: #fff; border: 0; border-radius: var(--radio); padding: 7px 20px; min-height: 59px;
  outline-offset: 2px;
}
.form textarea { min-height: 158px; padding-top: 16px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sv-morado); }
.form .btn { min-width: 141px; padding: 15px 0; border-radius: 25px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__estado { margin-top: 16px; font-weight: 700; min-height: 24px; }
.form__estado.ok { color: #047a4a; }
.form__estado.error { color: #c0172b; }

/* Páginas legales */
.legal { font-size: 16px; line-height: 1.5; }
.legal ul { padding-left: 22px; }

/* Artículo del blog */
.post { width: min(940px, calc(100% - 32px)); margin: 95px auto 0; }
.post__volver { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; color: var(--sv-morado); }
.post__volver:hover { text-decoration: underline; }
.post h1 { font-size: 40px; font-weight: 700; line-height: 1; }
.post time { display: block; margin: 16px 0 50px; color: #6b6762; font-size: 14px; }
.post__cuerpo { font-size: 16px; line-height: 1.5; }
.post__cuerpo p { margin-bottom: 18px; }
.post__cuerpo ol, .post__cuerpo ul { padding-left: 22px; margin: 0 0 18px; }
.post__cuerpo li { margin-bottom: 14px; }

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.footer { --pie-pad: 50px; background: var(--sv-texto); color: #fff; border-radius: var(--radio); padding: var(--pie-pad) 20px; } /* mismo espacio arriba y abajo */
.footer__cols {
  display: grid; grid-template-columns: minmax(0, 376px) minmax(0, 300px) minmax(0, 300px);
  justify-content: center; align-items: start; column-gap: clamp(24px, 4vw, 64px); padding: 0 clamp(0px, 3vw, 60px);
}
.footer__logo { display: flex; justify-content: flex-start; align-self: center; }
.footer__logo img { width: 312px; max-width: 100%; }
.footer__col { padding-top: 0; }
.footer__col h2 { color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 600; line-height: 1; margin-bottom: 6px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: none; font-size: 16px; line-height: 20px; }
.footer__col a:hover { text-decoration: underline; }
.footer__sedes { text-align: center; padding: 30px 0 0; line-height: 1.5; }
.footer__sedes .lista { line-height: 1; }
.footer__sedes strong.t { display: block; font-size: 20px; margin-bottom: 10px; }
.footer__sedes .lista { display: flex; gap: 15px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 14px; }
.footer__sedes .lista strong { font-size: 15px; }
.footer-espacio { height: 70px; }
.copy { text-align: center; font-size: 13px; color: #6b6762; padding: 0 16px 24px; margin-top: -40px; }

/* ==========================================================================
   BOTONES FLOTANTES (Portal SV + WhatsApp)
   ========================================================================== */
.flotantes { position: fixed; right: 30px; bottom: 30px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

/* Botón negro con isotipo -> despliega enlace al Portal SV */
.portal { position: relative; }
.portal__btn {
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer; background: #000;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.portal__btn svg { width: 38px; height: 38px; }
.portal__btn:hover { animation: bob 1s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.portal__menu {
  position: absolute; right: 0; bottom: 80px; display: none;
  align-items: center; gap: 10px; text-decoration: none;
}
.portal.abierto .portal__menu { display: flex; }
.portal__menu span.tip { background: #fff; color: var(--sv-texto); padding: 8px 14px; border-radius: 6px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.18); white-space: nowrap; }
.portal__menu span.ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.portal__menu span.ico svg { width: 24px; height: 24px; fill: var(--sv-texto); }

/* WhatsApp */
.wa { position: relative; display: flex; align-items: center; gap: 7px; }
.wa__txt {
  background: #fff; color: #595959; font-size: 12px; line-height: 1.4; padding: 8px 12px;
  border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); width: 156px;
}
.wa__txt strong { display: block; color: var(--sv-texto); }
.wa__btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: #2db742;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.wa__btn svg { width: 30px; height: 30px; fill: #fff; }
.wa__popup {
  position: absolute; right: 0; bottom: 72px; width: 350px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  display: none;
}
.wa.abierto .wa__popup { display: block; }
.wa.abierto .wa__txt { display: none; }
.wa__popup header { background: #2db742; color: #fff; padding: 18px 20px; font-size: 18px; position: relative; }
.wa__popup header button { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
.wa__aviso { font-size: 11px; color: #7a7a7a; padding: 12px 20px 4px; }
.wa__lista { padding: 6px 12px 16px; max-height: 60vh; overflow: auto; }
.wa__lista a {
  display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 10px 8px;
  border-left: 2px solid #2db742; margin: 6px 0; background: #f5f7f9; border-radius: 4px;
}
.wa__lista a:hover { background: #ebf3ed; }
.wa__avatar { width: 40px; height: 40px; border-radius: 50%; background: #2db742; display: grid; place-items: center; flex: 0 0 auto; }
.wa__avatar svg { width: 22px; height: 22px; fill: #fff; }
.wa__nombre { font-size: 14px; color: var(--sv-texto); font-weight: 700; }
.wa__cargo { font-size: 11px; color: #7a7a7a; }

/* Animación de entrada sutil */
@media (prefers-reduced-motion: no-preference) {
  .aparecer { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .aparecer.visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1400px) {
  .header__logo { flex-basis: 240px; min-width: 200px; }
  .nav a { padding-inline: 10px; }
}
@media (max-width: 1279px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
}

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .header__inner { min-height: 110px; }
  .header__logo { flex-basis: 240px; }
  .header__logo img { width: 240px; }

  .hero__card h1, .hero__card h2, .banner h1 { font-size: 42px; }
  .hero__card { padding: 45px 36px 40px; }
  .titulo-flecha h2, .titulo-flecha h3 { font-size: 38px; }
  .ayuda { flex-direction: column; gap: 30px; }
  .ayuda .titulo-flecha { flex-basis: auto; }
  .ayuda .titulo-flecha h2 { max-width: none; }
  .ayuda__tarjetas { grid-template-columns: repeat(2, 1fr); }
  .proposito { padding: 120px 40px 80px; }
  .proposito__titulo h2 { font-size: 52px; }
  .proposito__texto { font-size: 32px; margin-left: 52px; }
  .historias { flex-direction: column; gap: 30px; }
  .historias__intro { flex-basis: auto; }
  .historias-wrap::before { top: auto; height: 420px; }
  .logro-destacado__card { padding: 60px 40px 40px 170px; }
  .intro { flex-direction: column; gap: 24px; }
  .intro .titulo-flecha { width: auto; }
  .intro__texto { padding: 0 10px; }
  .cierre__icono { flex-basis: 240px; }
  .caso__img { flex-basis: 360px; }
  .aliados__titulo { flex-basis: 260px; }
  .contacto { padding: 120px 40px 80px; }
  .articulos { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; padding: 0; row-gap: 10px; }
  .footer__logo { grid-column: 1 / -1; justify-content: center; padding: 0 0 10px; }
  .footer__col { text-align: center; }
}

/* ==========================================================================
   RESPONSIVE — Móvil (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
  .header__inner { min-height: 90px; }
  .header__logo { flex-basis: 200px; }
  .header__logo img { width: 200px; }

  .hero { flex-direction: column; align-items: stretch; }
  .hero__img, .hero--home .hero__img { width: 100%; }
  .hero__img img, .hero--home .hero__img img { height: 290px; }
  .hero__card, .hero--home .hero__card {
    width: calc(100% - 40px); margin: -70px auto 0; min-height: 0; padding: 30px 20px 26px 26px;
  }
  .hero__card h1, .hero__card h2, .banner h1 { font-size: 30px; }
  .banner { min-height: 110px; }

  :root { --sep: 44px; }
  .sec { margin-top: 56px; }
  .sec--lg { margin-top: 70px; }
  .titulo-flecha h2, .titulo-flecha h3 { font-size: 32px; }
  .titulo-flecha .flecha { width: 12px; height: 40px; margin-top: -4px; }
  .ayuda__tarjetas { grid-template-columns: 1fr 1fr; }
  .tarjeta-ayuda { min-height: 195px; padding: 25px 18px 27px; }
  .tarjeta-ayuda h3 { font-size: 16px; line-height: 1.3; }
  .tarjeta-ayuda .btn { align-self: stretch; }

  .proposito { padding: 110px 22px 50px; margin-top: -40px; }
  .proposito__titulo { margin-top: 50px; gap: 12px; }
  .proposito__titulo img { width: 17px; height: 27px; }
  .proposito__titulo h2 { font-size: 40px; }
  .proposito__texto { font-size: 22px; line-height: 1.2; margin-left: 29px; }
  .etiqueta__inner { width: auto; }
  .etiqueta h2, .etiqueta h5 { font-size: 18px; }
  .etiqueta img { height: 30px; }

  .servicio { grid-template-columns: 1fr; gap: 10px; }
  .servicio__img img, .servicio--alto .servicio__img img { height: 220px; }
  .servicio__card { padding: 30px 20px 34px 30px; }
  .servicio__card h3 { font-size: 26px; }
  .servicio__lista ul { font-size: 16px; }

  .historias__intro { padding: 0; }
  .historias__intro .btn { margin-left: 30px; }
  .carrusel__item { flex-basis: 85% !important; }
  .carrusel--reels .carrusel__item { flex-basis: min(calc((100% - var(--gap)) / 2), 220px) !important; }

  .logro-destacado { flex-direction: column; align-items: stretch; }
  .logro-destacado__img { flex-basis: auto; }
  .logro-destacado__img img { height: 220px; }
  .logro-destacado__lado { margin: -40px 0 0; }
  .logro-destacado__card { padding: 70px 24px 30px; }
  .logro-destacado__card h3 { font-size: 24px; }
  .logro-destacado__lado .btn { margin-right: 0; }

  .cta { padding: 40px 24px; }
  .cta h2 { font-size: 22px; line-height: 1.2; }
  .articulos { grid-template-columns: 1fr; }

  .intro__texto--18 p, .intro__texto--18 li, .intro__texto--19 p { font-size: 16px; }
  .texto-derecha { width: 100%; }
  .cierre { flex-direction: column; }
  .cierre__icono { flex-basis: auto; width: 200px; }
  .cierre__icono img { height: 150px; }
  .cierre__texto h2 { font-size: 30px; }
  .cierre__texto p, .cierre__texto--19 p { font-size: 16px; }

  .caso { flex-direction: column; }
  .caso__img { flex-basis: auto; width: 100%; }
  .caso__img img { height: 230px; }
  .caso__texto { padding: 10px 0 0; }
  .caso__texto h2 { font-size: 24px; }

  .aliados { flex-direction: column; }
  .aliados__titulo { flex-basis: auto; align-self: stretch; padding: 0 0 20px; }
  .aliados-wrap { padding: 30px 0; }
  .aliados { width: calc(100% - 64px); }
  .aliado { height: 130px; padding: 20px; }
  .aliado img { height: 80px; }

  .contacto { padding: 90px 20px 50px; }
  .post { margin-top: 50px; }
  .post h1 { font-size: 30px; }

  .footer { --pie-pad: 40px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__sedes .lista { flex-direction: column; gap: 6px; }
  .footer__sedes .lista [aria-hidden="true"] { display: none; }
  .footer__logo img { width: 240px; }

  .flotantes { right: 16px; bottom: 16px; }
  .wa__txt { display: none; }
  .portal__btn { width: 56px; height: 56px; }
  .portal__btn svg { width: 30px; height: 30px; }
}
