/* =========================
   Variables & base
========================= */
:root {
  --bg-left: #0aa5b7;
  /* turquesa */
  --bg-mid: #0e8aa9;
  /* azul intermedio */
  --bg-right: #0b79a5;
  /* azul más profundo */
  --violet1: #6a5dc3;
  /* violeta */
  --violet2: #4b3b91;
  /* violeta oscuro */
  --text: #0a3040;
  --white: #ffffff;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 18px rgba(0, 0, 0, .16);
  --purple-w: min(32vw, 520px);
  /* ancho del bloque morado */
  --purple-h: 80%;
  /* altura relativa del bloque morado */
  --header-h: clamp(84px, 12vw, 112px);
}

/* Reset */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html,
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

/* =========================
   ACCESIBILIDAD — Fix <h1>
   =========================
*/
:where(section, article, nav, aside) h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.4rem); /* escala responsiva */
  line-height: 1.2;
  font-weight: 600; /* consistente con el diseño */
}

/* Layout: sticky footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body{
  padding-top: var(--header-h);   /* espacio igual a la altura del header */
}

main {
  padding-bottom: clamp(72px, 10vh, 128px);
}

/* Accesibilidad / Motion */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================
     Header
  ========================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--header-h);
  width: 100%;
}

/* Fondo azul principal del header */
.site-header .header-bg {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% - var(--purple-w));
  z-index: 0;
  background: linear-gradient(180deg,
      #005f99 0%,
      #0088cc 40%,
      #00aacc 80%,
      #0099b8 100%);
}

/* Bloque morado derecho con CTA centrado */
.site-header .header-purple {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--purple-w);
  height: var(--purple-h);
  z-index: 2;
  background: linear-gradient(180deg,
      #6a5dc3,
      /* violeta 1 sólido */
      #4b3b91
      /* violeta 2 sólido */
    );
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenido sobre el fondo */
.site-header .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Marca / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand-text {
  display: none;
  /* visible solo en móvil (ver media query) */
  color: var(--white);
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 1.2rem;
}

/* Navegación principal */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(18px, 5vw, 56px);
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e9f7fb;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  padding: 6px 0;
  position: relative;
  display: inline-block;
  transition: opacity .2s ease;
}

.main-nav a:hover {
  opacity: .9;
}

/* Subrayado activo/hover/focus */
.main-nav a.active::after,
.main-nav a[aria-current="page"]::after,
.main-nav a:focus-visible::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff, #f0f6ff);
}

/* CTA */
@keyframes pulse-cta {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn.cta {
  background: linear-gradient(180deg, var(--white), #f3f6ff);
  color: #083e5b;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
  animation: pulse-cta 2.5s ease-in-out infinite;
  cursor: pointer;
  /* asegura cursor de mano */
  position: relative;
  z-index: 3;
}

.btn.cta:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .18);
}

.header-purple .btn.cta:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: var(--shadow);
}

.btn.cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .6);
}

/* Toggle / Burger (móvil) */
.nav-toggle,
.burger {
  display: none;
}

/* Tablet */
@media (max-width:1024px) {
  .main-nav ul {
    gap: clamp(14px, 3.6vw, 28px);
  }

  .btn.cta {
    padding: 11px 18px;
  }
}

/* Menú móvil */
.main-nav .nav-cta {
  display: none;
}

@media (max-width:800px) {
  .site-header {
    height: var(--header-h);
    display: flex;
    align-items: center;
  }

  .site-header .container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    /* logo izq, burger der */
    align-items: center;
    height: 100%;
    gap: 0;
  }

  /* Marca en mobile: ocultar logo, mostrar texto */
  .brand img {
    display: none;
  }

  .brand-text {
    display: inline;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    cursor: pointer;
    width: 36px;
    height: 100%;
    padding: 8px;
    z-index: 6;
  }

  .burger span {
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    width: 100%;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    left: -9999px;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: linear-gradient(180deg, #0e8aa9 0%, #0aa5b7 50%, #0b79a5 100%);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform .18s ease;
    box-shadow: var(--shadow);
    border-top: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(2px);
    z-index: 5;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
  }

  /* Desactiva subrayado activo en mobile */
  .main-nav a.active::after,
  .main-nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle:checked~.burger span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle:checked~.burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked~.burger span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-toggle:checked~.main-nav {
    transform: scaleY(1);
  }

  .site-header .header-bg {
    width: 100%;
  }

  .site-header .header-purple {
    display: none;
  }

  .main-nav .nav-cta {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(180deg, rgba(106, 93, 195, 1) 0%, rgba(75, 59, 145, 1) 100%);
    justify-content: center;
    border-radius: 0;
  }

  .main-nav .nav-cta .btn.cta {
    animation: none;
    width: 90%;
    max-width: 360px;
    text-align: center;
    background: #fff;
    color: #4b3b91;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  }
}

/* Logo unificado header + footer */
.brand img,
.footer-logo {
  height: clamp(58px, 8vw, 85px);
  width: auto;
  object-fit: contain;
}

/* =========================
   Footer
========================= */
.site-footer {
  background: linear-gradient(180deg,
      #005f99 0%,
      #0088cc 40%,
      #00aacc 80%,
      #0099b8 100%);
  color: #fff;
  padding: 40px 0px 0;
  border-bottom: 1px solid transparent;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(72px, 8vw, 160px);
  row-gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  font-weight: 700;
}


.footer-column p,
.footer-column a {
  font-size: .95rem;
  line-height: 1.6;
  color: #fff;
  text-decoration: none;
  margin: 0 0 10px;
}

/* Redes sociales */
.site-footer .social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  margin: 0 0 12px;
}

/* Contacto */
.site-footer .contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #fff;
  font-size: .95rem;
}

/* Iconos blancos unificados */
.site-footer .footer-column i {
  color: #fff !important;
  font-size: 22px;
  width: 24px;
  min-width: 24px;
  line-height: 1;
  text-align: center;
}

/* =========================
   Footer Bottom
========================= */
.footer-bottom {
  margin: 0;
  padding: 10px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .6);
  width: 100%;
}

.footer-bottom .bottom-container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: .9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .privacy-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  transition: opacity .2s ease;
}

.footer-bottom .privacy-link:hover {
  opacity: .8;
}

/* Quitar viñetas y sangría en listas del footer */
.site-footer .footer-column ul,
.site-footer .social-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Desktop: alinea elementos del bottom */
@media (min-width:768px) {
  .footer-bottom .bottom-container {
    flex-direction: row;
    justify-content: center;
    gap: 70px;
    text-align: center;
  }
}

/* Evita márgenes extra en último elemento */
.footer-column> :last-child {
  margin-bottom: 0;
}

@media (min-width:768px) {

  .footer-column--social,
  .footer-column--contact {
    margin-top: clamp(28px, 4vw, 70px);
  }
}

/* =========================
   Footer - Vista Mobile
========================= */
@media (max-width:768px) {

  .site-footer {
    padding: 36px 18px 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    max-width: min(560px, 92vw);
    row-gap: 14px;
    text-align: center;
    margin: 0 auto;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Oculta encabezados redundantes */
  .footer-column--social h4,
  .footer-column--contact h4 {
    display: none;
  }

  /* Oculta íconos en mobile */
  .site-footer .footer-column i {
    display: none;
  }

  /* Logo */
  .footer-logo {
    height: 110px;
    width: auto;
    margin: 0 auto 18px;
  }

  /* Dirección */
  .footer-address p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.15rem;
    font-weight: 800;
  }

  /* Horarios */
  .footer-schedule {
    margin-top: 14px;
    font-weight: 800;
    font-size: 1.1rem;
  }

  .footer-schedule strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 800;
  }

  /* Social */
  .social-list {
    margin-top: 8px;
  }

  .site-footer .social-link {
    justify-content: center;
    margin: 10px 0;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
  }

  /* Teléfono y correo */
  .site-footer .contact-link {
    display: block;
    text-align: center;
    margin-bottom: 16px;
  }

  .site-footer .contact-link a {
    display: inline-block;
    text-align: center;
    text-decoration: underline;
    font-weight: 800;
    font-size: 1.2rem;
  }

  /* Footer bottom */
  .footer-bottom {
    margin-top: 18px;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .7);
  }

  .footer-bottom .bottom-container {
    gap: 8px;
    font-size: 1.05rem;
    text-align: center;
    justify-content: center;
    font-weight: 800;
    /* negrita */
  }

  .footer-bottom .privacy-link {
    font-size: 1.1rem;
    font-weight: 800;
  }
}

/* Utilidad accesible (tu index usa .sr-only) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: clamp(420px, 68vh, 680px);
  background: url("../img/hero.jpg") center/cover no-repeat;
  padding-left: clamp(24px, 6vw, 120px);
  overflow: hidden;
  margin-top: 24px; 
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-header h1 {
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(1.8rem, 4.8vw, 3.4rem);
  margin: 0 0 18px;
  max-width: 34ch;
}

.hero-actions {
  margin-top: 12px;
}
.hero-actions .btn.cta {
  background: #4b3b91;
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-actions .btn.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.25);
}

/* Imagen extra para tablet/desktop */
.hero .hero-image {
  display: none;
}
.hero .hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ====== Mobile ≤768px ====== */
@media (max-width: 768px) {
  .hero {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    min-height: clamp(260px, 55vh, 380px); /* más baja en mobile */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10,165,183,.48); /* overlay turquesa */
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-header h1 {
    font-size: clamp(1.5rem, 6.2vw, 2.2rem);
    line-height: 1.15;
    max-width: 26ch;
    margin: 0 0 16px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-actions .btn.cta {
    font-size: clamp(.95rem, 3.4vw, 1.05rem);
    padding: 12px 22px;
  }

  .hero .hero-image {
    display: none; /* ocultamos imagen extra en mobile */
  }
}

/* ====== Tablet 769–1024px ====== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    background: none; /* usamos la <img> */
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .hero-inner {
    max-width: 880px;
    margin: 0 auto;
  }

  .hero-header h1 {
    font-size: clamp(1.75rem, 4.6vw, 2.6rem);
    max-width: 30ch;
    margin: 0 0 18px;
  }

  .hero .hero-image {
    display: block;
    width: 100%;
    margin-top: clamp(12px, 2.5vw, 20px);
    border-radius: 0;
    overflow: hidden;
  }

  .hero .hero-image img {
    height: clamp(280px, 42vh, 420px);
    object-fit: cover;
  }
}

/* ====== Ajuste general ≤900px ====== */
@media (max-width: 900px) {
  .hero {
    justify-content: center;
    text-align: center;
    padding: 0 24px;
  }
  .hero-inner {
    max-width: 100%;
  }
  .hero-header h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}

/* =========================
   BENEFICIOS
========================= */
.benefits {
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 24px);
  background: #fff;
}

.benefits-container {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "media content";
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

/* Imagen */
.benefits-media { 
  grid-area: media;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.benefits-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contenido */
.benefits-content { 
  grid-area: content;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
}
.section-subtitle {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: #2b4b58;
}

/* Lista */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 400;
}
.benefit-item i {
  font-size: 22px;
  color: #00d0bc;
  min-width: 26px;
  text-align: center;
}

/* =========================
   LINK WHATSAPP ESTILO TEXTO
========================= */
.benefits-actions {
  margin-top: 48px;
  margin-bottom: 28px;     
  display: flex;
  justify-content: center;
}

.link-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 800;
  font-size: 1.25rem;       
  text-decoration: none;

  color: #59417f;
  transition: color .2s ease, transform .2s ease;
}

.link-wa:hover {
  color: #402d63;           
  transform: translateY(-1px);
}

.link-wa .chevron {
  font-size: 1.4rem;        
  line-height: 1;
}

/* =========================
   Móvil ≤768px: textos → imagen → botón
========================= */
@media (max-width: 768px) {
  .benefits-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"   /* 1) textos */
      "media";    /* 2) imagen */
    gap: 35px;
    text-align: left;
  }

  .benefits-content {
    text-align: left;
    margin-left: 55px;
    margin-right: 55px;
  }

  .section-header h2,
  .section-subtitle {
    text-align: left;
  }

  .benefits-list { 
    justify-items: start; 
  }

  .benefits-actions {
    margin-top: 24px;
    justify-content: flex-start;
    text-align: left;
    margin-left: 16px;
    margin-right: 16px;
  }

  .benefits-media {
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
  }

  .benefits-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}


/* =========================
   LINK WHATSAPP ESTILO TEXTO
========================= */
.benefits-actions {
  margin-top: 25px;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.link-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;

  color: #59417f;
  transition: color .2s ease, transform .2s ease;
}

.link-wa:hover {
  color: #402d63;
  transform: translateY(-1px);
}

.link-wa .chevron {
  font-size: 1.4rem;
  line-height: 1;
}

/* =========================
   CONVENIOS
========================= */

.convenios{
  background:#fff;
  padding: clamp(28px, 6vw, 64px) 0;
}

/* Encabezado centrado con margen inferior extra */
.convenios-head{
  max-width: var(--maxw);
  margin: 0 auto clamp(32px, 5vw, 48px); 
  text-align: center;
}
.convenios-head h2{
  margin: 0 16px 8px;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  color: var(--text);
}
.convenios-sub{
  margin: 0 16px;
  color: #334e57;
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
}

/* Carrusel full-width */
.logos-marquee{
  width: 100%;
  overflow: hidden;
}

.logos-track{
  display: flex;
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  list-style: none;
  margin: 0;
  padding: 10px 0;
  will-change: transform;
  transform: translateX(0);
}

/* Logos */
.logo{ flex: 0 0 auto; }
.logo img{
  display: block;
  height: clamp(42px, 6vw, 72px);
  width: auto;
  object-fit: contain;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .logos-track{ transform: none !important; }
}

/* =========================
   CONFIANZA
========================= */
.trust{
  background:#fff;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 24px);
}

.trust-container{
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

/* -------- Texto -------- */
.trust-content{
  margin-left: 55px;
  margin-right: 55px;
}

.trust-content .eyebrow{
  margin: 0 0 10px;
  font-size: .95rem;
  color: #3d3d3d;
  font-weight: 700;
}

.trust-content h2{
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: #111;
  letter-spacing: -0.5px;
}

.trust-lead{
  margin: 0 0 22px;
  color: #2b4b58;
  font-size: clamp(1rem, 1.5vw, 1.06rem);
  line-height: 1.65;
  max-width: 60ch;
}

.trust-bullets{
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: clamp(8px, 2vw, 28px);
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.trust-bullets li{
  color: #1a2730;
  font-size: 1.05rem;
}

/* -------- Acciones -------- */
.trust-actions{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 26px);
}

.btn.btn-primary{
  background: #4b3b91;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
}

.link-inline{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  color: #59417f;
  transition: color .2s ease, transform .2s ease;
}
.link-inline:hover{
  color: #402d63;
  transform: translateY(-1px);
}
.link-inline .chevron{ font-size: 1.2rem; line-height: 1; }

/* -------- Imagen -------- */
.trust-media{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trust-media img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ====== Responsive ====== */
@media (max-width: 992px){
  .trust-container{
    grid-template-columns: 1fr;
  }

  .trust-content{ order: 1; }
  .trust-media{ order: 2; }

  .trust-bullets{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px){
  .trust-media {
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
  }

  .trust-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 640px){
  .trust-bullets{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .trust-actions{
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

/* =========================
   SERVICIOS
========================= */
.services {
  background: #fff;
  padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 24px);
}

.services-head {
  text-align: center;
  margin: 0 auto clamp(32px, 5vw, 56px);
  max-width: 800px;
}
.services-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
}
.services-sub {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: #334e57;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 48px);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Card */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-content {
  padding: 20px 22px;
}
.service-content h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
}
.service-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2b4b58;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 90%;
  }
}

/*Enlaza "Nuestros creditos" al H1*/
#servicios {
  scroll-margin-top: 70px; 
}



