/* -------- Navbar base -------- */
.navbar {
  padding-block: 8px;
}



@media (max-width: 767.98px){
  .navbar-brand img{ height: 52px; }   /* antes 44px */
}
@media (min-width: 768px){
  .navbar-brand img{ height: 70px; }   /* antes 60px */
}
@media (min-width: 1200px){
  .navbar-brand img{ height: 84px; }   /* antes 72px */
}

/* Menú de navegación */
.main-nav .nav-link {
  color: #6b6b6b;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  position: relative;
  padding: .5rem .25rem;
  transition: color .2s ease;
}
.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: #000;
}
.main-nav .nav-link.active {
  color: #000;
  font-weight: 700;
}
.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 56px;
  height: 10px;
  background: #E90F63;
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 767.98px) {
  .main-nav {
    gap: 0.75rem;
  }
  .main-nav .nav-link.active::after {
    width: 36px;
    height: 6px;
    bottom: -4px;
  }
}
@media (max-width: 576px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Evitar scroll horizontal por seguridad */
html, body { overflow-x: hidden; }

/* Loader de página global */
body.is-loading {
  overflow: hidden;
}
.page-loader {
  position: fixed;
  inset: 0;
  background: #0E2238;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  transition: opacity .25s ease, visibility .25s ease;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: #E90F63;
  animation: loader-spin 1s linear infinite;
}
.page-loader__text {
  margin: 0;
  font-weight: 600;
  letter-spacing: .3px;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* --- Banderas --- */
.navbar-flags {
  margin-left: auto;           /* las empuja a la derecha en desktop */
  align-items: center;
}

.flag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-icon {
  height: 36px;   /* 🔥 más grandes (antes 24px / 28px) */
  width: auto;
  display: block;
  border-radius: 0;        /* sin esquinas redondeadas */
  box-shadow: none;        /* quita el fondo blanco/sombra */
  background: transparent; /* asegura que no haya fondo */
  transition: transform .15s ease, filter .15s ease;
}

.flag-link:hover .flag-icon {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* Desktop: separa un poco el menú de las banderas */
@media (min-width: 768px) {
  .main-nav { margin-right: 12px; }
}

/* Móvil: que se vean centradas y más grandes, con wrap limpio */
@media (max-width: 767.98px) {
  .navbar-flags {
    justify-content: center;
    gap: 10px;
  }
  .flag-icon {
    height: 28px;   /* un pelín más grande en móvil */
  }
  /* Quita la línea rosada bajo el activo en móvil si ya lo hacías */
  .main-nav .nav-link.active::after { content: none; }
}



/* ===== Encabezado de país en Contacto ===== */
.contacto-country {
  padding: 12px 0;
  background: #f6f6f7;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.pais-flag {
  height: 36px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.pais-name {
  color: #0E2238;
  font-weight: 700;
  letter-spacing: .2px;
}
@media (min-width: 768px) {
  .contacto-country { padding: 16px 0; }
  .pais-flag { height: 48px; }
}

/* ====== Contacto ====== */
.contacto-wrapper {
  padding: clamp(16px, 4vw, 40px);         /* margen lateral sutil */
}
.contacto-card {
  background: #1f2023;                     /* panel oscuro global */
  border-radius: 36px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;        /* izquierda logo | derecha form */
  min-height: 520px;
}

/* Panel izquierdo (logo) */
.contacto-left {
  background: #eeeeee;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 48px);
}
.contacto-logo {
  max-width: min(520px, 70%);
  height: auto;
}

/* Panel derecho (formulario) */
.contacto-right {
  background: #242428;
  color: #fff;
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contacto-title {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 18px;
}

/* Inputs estilo “pill” gris */
.contacto-input,
.contacto-textarea {
  background: #7a7a7a;
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
}
.contacto-input::placeholder,
.contacto-textarea::placeholder {
  color: #e5e5e5;
  opacity: .85;
}
.contacto-input:focus,
.contacto-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 15, 99, .35);
  background: #868686;
}
.contacto-textarea {
  min-height: 210px;
  resize: vertical;
}

/* Responsive: apilar paneles en móvil */
@media (max-width: 992px) {
  .contacto-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }
  .contacto-left { padding-block: 36px; }
  .contacto-logo { max-width: min(420px, 78%); }
}



/* Hero: imagen full-width */
/* Hero: imagen full-width */
.hero-image {
  width: 100%;
  overflow: hidden;
  border-radius: 40px; /* 🔥 bordes redondeados en todo el contenedor */
}

.hero-image img {
  width: 100%;
  height: auto;        /* mantiene proporción sin recortar */
  display: block;
  border-radius: 60px; /* 🔥 bordes redondeados en la imagen */
}


/* ===== Texto debajo del hero ===== */
.hero-text {
  padding: clamp(24px, 5vw, 60px) 0;
  background: #fff;
  color: #555;                  /* gris más claro */
  text-align: center;
}

.hero-text .container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-text p {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); /* 🔥 más grande */
  line-height: 1.9;
  margin-bottom: 1.75rem;
}



/* ====== CTA centro ====== */
.cta-activate {
  text-align: center;
  padding: clamp(28px, 6vw, 72px) 0;
  background: #fff;
}
.cta-activate .cta-lead {
  color: #555;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem); /* 🔥 más grande */
  line-height: 1.9;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

/* Botón pill rosado */
.btn-cta {
  display: inline-block;
  padding: clamp(12px, 1.5vw, 18px) clamp(28px, 5vw, 60px);
  border-radius: 999px;
  background: #FF007C;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(255,0,124,.26);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-cta:hover,
.btn-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,0,124,.35);
  filter: brightness(1.03);
}

/* ====== Título grande “Nuestras Soluciones” ====== */
.section-heading {
  text-align: center;
  padding: clamp(12px, 2vw, 20px) 0; /* pegado al botón */
  background: #fff;
}
.section-heading .section-title {
  color: #FF007C;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.5rem); /* 🔥 más grande que antes */
}

/* ===== Texto destacado debajo del hero ===== */
.hero-quote {
  text-align: center;
  padding: clamp(24px, 5vw, 48px) 20px;
  background: #fff;
}

.hero-quote p {
  font-size: clamp(1.25rem, 2vw, 1.6rem); /* tamaño similar al ejemplo */
  line-height: 1.8;
  color: #555;
  margin: 0;
  font-weight: 500;
}

.hero-quote .highlight {
  color: #E90F63;   /* rosado corporativo */
  font-weight: 700;
}



/* ====== Sección Misión, Visión, Valores ====== */
.mvv-section {
  background: #fff;
  padding: clamp(50px, 7vw, 100px) 0;
  text-align: center;
}

.mvv-card {
  border-radius: 20px;
  color: #fff;
  padding: 40px 28px;  /* 🔥 más padding interno */
  min-height: 360px;   /* 🔥 altura mínima para alargarlos */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.mvv-card h3 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.6rem;   /* 🔥 más grande */
}

.mvv-card p {
  margin: 0;
  line-height: 1.9;    /* 🔥 más espacio entre líneas */
  font-size: 1.2rem;   /* 🔥 más grande */
}

/* Colores personalizados */
.mision {
  background: #FF007D; /* rosado */
}
.vision {
  background: #31C8C3; /* celeste */
}
.valores {
  background: #FF7700; /* anaranjado */
}

/* Responsivo */
@media (max-width: 767.98px) {
  .mvv-card {
    padding: 32px 20px;
    min-height: auto;  /* en móvil dejamos que se adapten */
  }
  .mvv-card h3 {
    font-size: 1.4rem;
  }
  .mvv-card p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
}


.key-option {
  background: #fff;
  border-radius: 24px;
  padding: 28px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.key-option img {
  height: 48px;
  margin-bottom: 12px;
}
.key-option p {
  margin: 0;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
}
.key-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.key-option.active {
  background: #FF007D;
  color: #fff;
}
.key-option.active p {
  color: #fff;
}

.dynamic-title {
  color: #FF007D; /* rosado corporativo */
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1rem;
}

.dynamic-text {
  color: #555;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}



/* ===== Key360 hero ===== */
.key360-hero{
  background:#fff;
  text-align:center;
  padding: clamp(40px, 8vw, 96px) 0;
}

.key360-hero .container{
  max-width: 980px;
}

.key360-title{
  margin: 0 0 50px 0;
  font-weight: 800;
  color:#111;
  line-height:1.05;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.key360-subtitle{
  margin: 0 0 18px 0;
  color:#222;
  font-weight: 400; /* 👈 normal, no bold */
  line-height: 1.15;
  letter-spacing: .2px;
  font-size: clamp(1.6rem, 5vw, 3.4rem); /* 👈 mismo tamaño que antes */
}

.key360-lead{
  color:#555;                 /* mismo tono que usas en textos */
  line-height:1.9;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  margin: 0 auto clamp(18px, 3vw, 28px);
  max-width: 900px;
}




/* ===== Selector (solo logos) ===== */
/* ===== Selector (solo logos) ===== */
.keyswitch { 
  padding: clamp(18px, 4vw, 32px) 0; 
  background: #fff; 
}

.key-pill{
  width: 100%;
  aspect-ratio: 1 / 1;          /* cuadrado perfecto */
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;      /* sin fondo al inicio */
  border-radius: 24px;
  box-shadow: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.key-pill img{
  max-width: 70%;
  height: auto;
  display: block;
}

.key-pill:hover{ 
  transform: translateY(-2px); 
}

/* Estado seleccionado: recuadro blanco con sombra */
.key-pill.is-active{
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}

/* ===== Contenido dinámico (full width con esquinas redondeadas) ===== */
.keycontent{
  padding: 0;
  background: #fff;
}

.key-wrapper{
  width: 100%;
  display: none;              /* solo se muestra la activa */
  border-radius: 40px;        /* 🔥 controlas aquí qué tan redondeado */
  overflow: hidden;           /* asegura que la imagen respete el borde */
  margin: 20px auto;          /* opcional: espacio vertical */
}

.key-wrapper img{
  width: 100%;
  height: auto;
  display: block;
}

.key-wrapper.show{ 
  display: block; 
}

/* ===== Responsive: que los botones sean cómodos en móvil ===== */
@media (max-width: 575.98px){
  .keyswitch{ padding: 16px 12px; }

  .key-pill{ 
    border-radius: 18px; 
    min-height: 110px;          /* área táctil más grande */
  }

  .key-pill img{ 
    max-width: 78%; 
  }
}

@media (max-width: 360px){
  .key-pill{ min-height: 120px; }
  .key-pill img{ max-width: 82%; }
}







/* ===== Key360 debajo de la imagen (scoped) ===== */
:root{
  --pink:#E90F63;
  --title:#0E2238;
  --text:#666;
}

/* Espaciado suave respecto a la imagen de arriba */
.key360-intro{
  padding: clamp(34px, 5vw, 60px) 20px 0;
  background:#fff;
}
.key360-intro .k-wrap{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Título */
.key360-intro .k-title{
  margin: 0 0 22px;
  color: var(--title);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
}
.key360-intro .k-title strong{ font-weight: 800; }

/* Subtítulo fucsia SIN subrayado (⬆️ más grande) */
.key360-intro .k-subtitle{
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); /* antes: clamp(16px, 2.2vw, 22px) */
  margin-bottom: 20px;
  text-decoration: none;
}

/* Párrafo justificado con última línea centrada (⬆️ más grande) */
.key360-intro .k-text{
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(1.10rem, 1.8vw, 1.30rem); /* antes: clamp(15px, 1.6vw, 17px) */
  line-height: 1.95;                          /* antes: 1.9 */
  text-align: justify;
  text-align-last: center;
}

/* ===== Grilla de soluciones Key360 ===== */
.key360-soluciones{
  padding: clamp(34px, 5vw, 60px) 20px clamp(34px, 5vw, 70px);
  background:#fff;
}
.key360-soluciones .soluciones-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3.2vw, 36px); /* un poco más de aire para textos más grandes */
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;             /* ← centra cada tarjeta dentro del grid */
}

/* Tarjeta de solución (alineada al centro) */
.key360-soluciones .solucion-item{
  font-family: 'Urbanist', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;               /* ← centra h3 y p respecto al icono */
  text-align: center;                /* ← texto centrado visualmente */
  max-width: 520px;                  /* ancho cómodo para el párrafo */
}

/* Icono centrado real */
.key360-soluciones .solucion-icon{
  width: clamp(90px, 10vw, 140px);
  height: auto;
  display: block;
  margin: 0 auto 16px;               /* ← centra la imagen */
}

/* Título de cada item (⬆️ más grande) */
.key360-soluciones .solucion-item h3{
  font-size: clamp(1.10rem, 2.0vw, 1.40rem); /* antes: 16px */
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 10px; /* antes: 8px */
}

/* Párrafo de cada item (⬆️ más grande) */
.key360-soluciones .solucion-item p{
  font-size: clamp(1.00rem, 1.8vw, 1.20rem); /* antes: 14px */
  color: #555;
  line-height: 1.85;                          /* antes: 1.6 */
  text-align: justify;
  text-align-last: center;
}

/* Responsive */
@media (max-width: 991px){
  .key360-soluciones .soluciones-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .key360-soluciones .soluciones-grid{ grid-template-columns: 1fr; }
}

/* (opcional) separador sutil entre la imagen y el bloque siguiente */
.keycontent .key-wrapper.key360{
  margin-bottom: clamp(10px, 3vw, 20px);
}

/* Burbujas decorativas bajo el botón de CTA */
/* Burbujas decorativas bajo el botón de CTA */
/* Burbujas decorativas bajo el botón de CTA */
.cta-activate .cta-bubbles{
  margin-top: 18px;
  display: flex;
  justify-content: center; /* 👈 centradas como base */
  gap: 18px;
  transform: translateX(80px); /* 👉 muévelas un poco a la derecha */
}

.cta-activate .bubble{
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Círculo anaranjado (pequeño) */
.cta-activate .bubble-orange{
  background: #FF7700;
  width: clamp(38px, 5vw, 65px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* Pastilla celeste (más pequeña también) */
.cta-activate .bubble-teal{
  background: #31C8C3;
  height: clamp(28px, 4.5vw, 55px);
  width: clamp(80px, 16vw, 150px);
  border-radius: 999px;
}


/* ===== KeyTalent intro ===== */
.keytalent-intro{
  padding: clamp(34px, 5vw, 60px) 20px 0;
  background:#fff;
}
.keytalent-intro .kt-wrap{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Título principal */
.keytalent-intro .kt-title{
  margin: 0 0 22px;
  color: #0E2238; /* mismo que los títulos de Key360 */
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
}
.keytalent-intro .kt-title strong{ font-weight: 800; }

/* Subtítulo en celeste */
.keytalent-intro .kt-subtitle{
  display: inline-block;
  color: #31C8C3;   /* celeste en vez de rosado */
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  margin-bottom: 20px;
  text-decoration: none;
}

/* Texto */
.keytalent-intro .kt-text{
  max-width: 720px;
  margin: 0 auto;
  color: #666;
  font-size: clamp(1.10rem, 1.8vw, 1.30rem);
  line-height: 1.95;
  text-align: justify;
  text-align-last: center;
}

/* ===== Grid extra (Especialidades / Modalidades) ===== */
.keytalent-extra{
  padding: clamp(34px, 5vw, 60px) 20px clamp(34px, 5vw, 70px);
  background:#fff;
}
.keytalent-extra .extra-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3.2vw, 36px);
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.keytalent-extra .extra-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
}

.keytalent-extra .extra-icon{
  width: clamp(90px, 10vw, 140px);
  height: auto;
  margin: 0 auto 16px;
}

.keytalent-extra .extra-item h3{
  font-size: clamp(1.10rem, 2vw, 1.40rem);
  font-weight: 700;
  color: #31C8C3; /* títulos también en celeste */
  margin-bottom: 10px;
}

.keytalent-extra .extra-item p{
  font-size: clamp(1.00rem, 1.8vw, 1.20rem);
  color: #555;
  line-height: 1.85;
  text-align: justify;
  text-align-last: center;
}

/* Responsive */
@media (max-width: 767px){
  .keytalent-extra .extra-grid{ grid-template-columns: 1fr; }
}

/* ===== CTA final ===== */
.cta-section{
  text-align: center;
  padding: clamp(28px, 6vw, 72px) 0;
  background: #fff;
}
.cta-section .cta-text{
  color: #555;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.9;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.cta-section .cta-button{
  display: inline-block;
  padding: clamp(12px, 1.5vw, 18px) clamp(28px, 5vw, 60px);
  border-radius: 999px;
  background: #31C8C3;   /* celeste */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(49,200,195,.26);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cta-section .cta-button:hover,
.cta-section .cta-button:focus{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(49,200,195,.35);
  filter: brightness(1.03);
}


/* ===== KeyFinance soluciones ===== */
.keyfinance-soluciones{
  padding: clamp(34px, 5vw, 60px) 20px clamp(34px, 5vw, 70px);
  background:#fff;
}
.keyfinance-soluciones .kf-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3.2vw, 36px);
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* Item */
.keyfinance-soluciones .kf-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
}

/* Icono */
.keyfinance-soluciones .kf-icon{
  width: clamp(90px, 10vw, 140px);
  height: auto;
  margin: 0 auto 16px;
}

/* Texto en anaranjado */
.keyfinance-soluciones .kf-item p{
  font-size: clamp(1.00rem, 1.8vw, 1.20rem);
  color: #FF7700;   /* 🔥 anaranjado */
  line-height: 1.85;
  font-weight: 600;
}
  
/* Responsive */
@media (max-width: 991px){
  .keyfinance-soluciones .kf-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .keyfinance-soluciones .kf-grid{ grid-template-columns: 1fr; }
}

/* ===== KeyFinance Intro ===== */
.keyfinance-intro{
  padding: clamp(34px, 5vw, 60px) 20px 0;
  background:#fff;
}
.keyfinance-intro .kf-wrap{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Título principal */
.keyfinance-intro .kf-title{
  margin: 0 0 22px;
  color: #0E2238; /* mismo azul oscuro que Key360/KeyTalent */
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
}
.keyfinance-intro .kf-title strong{ font-weight: 800; }

/* Subtítulo en anaranjado */
.keyfinance-intro .kf-subtitle{
  display: inline-block;
  color: #FF7700;   /* 🔥 anaranjado corporativo */
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  margin-bottom: 20px;
  text-decoration: none;
}

/* Texto descriptivo */
.keyfinance-intro .kf-text{
  max-width: 720px;
  margin: 0 auto 18px;
  color: #666;
  font-size: clamp(1.10rem, 1.8vw, 1.30rem);
  line-height: 1.95;
  text-align: justify;
  text-align-last: center;
}

/* “Incluye:” destacado */
.keyfinance-intro .kf-include{
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #FF7700;
  font-weight: 700;
  margin-top: 12px;
}

/* ===== Imagen de proceso / roadmap ===== */
.proceso { 
  padding: clamp(12px, 3vw, 24px) 0; 
  background: #fff; 
}

.proceso-img{
  display: block;
  width: 100%;
  max-width: 1100px;      /* límite de ancho para que no se haga demasiado grande en desktop */
  height: auto;
  margin: 0 auto;         /* centrada */
  border-radius: 28px;    /* esquinas redondeadas */
  box-shadow: none;
}

/* ===== Footer v2 ===== */
.tk-footer-v2{ font-family: 'Urbanist', sans-serif; }

/* TOP blanco */
.tk-footer-v2 .footer-top{
  background:#fff;
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.tk-footer-v2 .ft-container{
  max-width:1400px;
  margin:0 auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(20px, 4vw, 50px);
  display:grid;
  grid-template-columns: 1fr auto; /* logos | nav */
  align-items:center;
  gap: clamp(18px, 2.5vw, 40px);
}

/* Logos */
.tk-footer-v2 .ft-logos{
  display:flex;
  align-items:center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap:wrap;
}
.tk-footer-v2 .ft-logos img{
  height: clamp(55px, 6vw, 85px);
  width:auto;
  object-fit:contain;
  display:block;
}

/* Navegación */
.tk-footer-v2 .ft-nav{
  display:flex;
  align-items:center;
  gap: clamp(10px, 1.5vw, 16px);
  white-space:nowrap;
  justify-self:end;
}
.tk-footer-v2 .ft-nav a{
  text-decoration:none;
  color:#111;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-size: clamp(15px, 1.6vw, 20px);
  transition: color .2s ease;
}
.tk-footer-v2 .ft-nav a:hover{ color:#000; }
.tk-footer-v2 .ft-sep{ opacity:.45; user-select:none; font-size: clamp(15px, 1.6vw, 20px); }

/* Responsive TOP */
@media (max-width: 820px){
  .tk-footer-v2 .ft-container{
    grid-template-columns: 1fr;
    text-align:center;
  }
  .tk-footer-v2 .ft-nav{ justify-self:center; flex-wrap:wrap; }
  .tk-footer-v2 .ft-logos{ justify-content:center; }
}

/* BOTTOM negro */
.tk-footer-v2 .footer-bottom{
  background:#404042;
  color:#fff;
}
.tk-footer-v2 .fb-container{
  max-width:1400px;
  margin:0 auto;
  padding: clamp(16px, 2.5vw, 28px) clamp(20px, 4vw, 50px);
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

/* Redes sociales */
.tk-footer-v2 .fb-social{
  display:flex;
  align-items:center;
  gap: clamp(18px, 2vw, 28px);
}
.tk-footer-v2 .fb-social img{
  width: clamp(45px, 5vw, 70px);
  height: clamp(45px, 5vw, 70px);
  object-fit:contain;
  display:block;
  transition: transform .15s ease, filter .2s ease;
  filter: brightness(100%);
}
.tk-footer-v2 .fb-social img:hover{
  transform: scale(1.08);
  filter: brightness(112%);
}

/* Copyright */
.tk-footer-v2 .footer-copy{
  max-width:1400px;
  margin: 0 auto;
  padding: 0 50px 22px;
  text-align:center;
  font-size: 14px;
  color:#ccc;
}



.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 40px auto;
}

@media (max-width: 1200px){
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px){
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 28px;
  transition: transform 0.4s ease;
}

/* Overlay rosado */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(233, 15, 99, 0.75); /* rosa corporativo */
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 28px;
}

/* Animación al pasar el cursor */
.service-card:hover img {
  transform: scale(1.05);
}
.service-card:hover::after {
  opacity: 1;
}

/* Texto/Icono centrado */
.service-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.service-label img {
  width: 48px;
  height: auto;
  margin-bottom: 10px;
}

.service-label p {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}


/* ===== Variables + base aislada ===== */
:root{
  --k4-pink:#E90F63;
  --k4-title:#0E2238;
  --k4-text:#6A6A6A;
}

body{ font-family: 'Urbanist', system-ui, -apple-system, sans-serif; }
.k4-wrap, .k4-intro, .k4-blocks { box-sizing: border-box; }

/* ===== Wrappers ===== */
.k4-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.k4-wrap--xl{ max-width: 1100px; }

/* ===== Subtítulo fucsia centrado ===== */
.k4-intro{
  background:#fff;
  padding: clamp(34px, 5vw, 56px) 0 0;
  text-align:center;
}
.k4-subtitle{
  display:block;
  color: var(--k4-pink);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  margin-bottom: clamp(12px, 1.8vw, 16px);
}

/* ===== Párrafo maestro (arriba y abajo) ===== */
.k4-text{
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.95;
  color: var(--k4-text);
  margin: 0 auto clamp(18px, 3vw, 26px);
  max-width: 780px;
  text-align: justify;
  text-align-last: center;
}
.k4-text--left{ text-align: left; text-align-last: auto; }
.k4-text--muted{ color:#8A8A8A; }

/* ===== Bloques ===== */
.k4-blocks{
  background:#fff;
  padding: clamp(26px, 5vw, 60px) 0 clamp(34px, 6vw, 70px);
}
.k4-block-title{
  color: var(--k4-title);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  margin: clamp(24px, 4vw, 28px) 0 clamp(8px, 1.6vw, 10px);
  text-align: left;
}

/* Lista tipo definición */
.k4-list{
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(10px, 2vw, 16px);
}
.k4-list li{ margin: clamp(12px, 2vw, 16px) 0; padding-left: 28px; }
.k4-list li strong{
  display:block;
  font-weight: 700;
  color:#4b4b4b;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  margin-bottom: 6px;
}
.k4-list li span{
  display:block;
  color:#8A8A8A;
  font-size: clamp(1.00rem, 1.6vw, 1.1rem);
  line-height: 1.85;
}

/* Responsivo mínimo para texto */
@media (max-width: 600px){
  .k4-wrap{ padding: 0 16px; }
  .k4-text{ max-width: 100%; }
}

/* ===== Selector de servicios (solo logos GRANDES) ===== */
.k4-switch{
  background:#fff;
  padding: clamp(20px, 5vw, 44px) 0;
}

.k4-switch-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 20px);
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr)); /* ↑ columnas más anchas */
  gap: clamp(20px, 4vw, 48px);
  justify-items: center;
  align-items: center;
}

/* Botón base: solo logo (grande) */
.k4-logo{
  display: grid;
  place-items: center;
  width: clamp(180px, 20vw, 240px);   /* ↑ MUCHO más grande */
  aspect-ratio: 1/1;
  cursor: pointer;
  border-radius: 32px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration: none;
  outline: none;
}
.k4-logo img{
  width: clamp(90px, 12vw, 140px);   /* ↑ logo interno grande */
  height: auto;
  display: block;
}

/* Activo (primero) con tarjeta blanca y sombra */
.k4-logo--card{
  background:#fff;
  box-shadow: 0 10px 32px rgba(0,0,0,.14);
  cursor: default;
}

/* Hover/Focus: que se note que son botones */
.k4-logo:hover:not(.k4-logo--card),
.k4-logo:focus-visible:not(.k4-logo--card){
  transform: translateY(-6px);
  filter: brightness(1.07);
}
.k4-logo:active:not(.k4-logo--card){
  transform: translateY(-2px) scale(0.97);
}

/* Anillo accesible */
.k4-logo:focus-visible{
  box-shadow: 0 0 0 4px rgba(0, 86, 210, .25);
}

/* Responsive de la grilla y tamaños */
@media (max-width: 900px){
  .k4-switch-grid{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: clamp(18px, 5vw, 60px);
  }
}
@media (max-width: 520px){
  .k4-logo{ width: clamp(150px, 42vw, 200px); }
  .k4-logo img{ width: clamp(78px, 22vw, 120px); }
}
@media (max-width: 380px){
  .k4-logo{ width: 140px; }
  .k4-logo img{ width: 70px; }
}


/* ===== Variables + base ===== */
:root{
  --k5-teal:#31C8C3;     /* celeste pedido */
  --k5-title:#0E2238;
  --k5-text:#6A6A6A;
}

body{ font-family: 'Urbanist', system-ui, -apple-system, sans-serif; margin:0; }
.k5-wrap, .k5-intro, .k5-blocks { box-sizing: border-box; }

/* ===== Wrappers ===== */
.k5-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.k5-wrap--xl{ max-width: 1100px; }

/* ===== Subtítulo (celeste) y párrafo superior ===== */
.k5-intro{
  background:#fff;
  padding: clamp(34px, 5vw, 56px) 0 0;
  text-align:center;
}
.k5-subtitle{
  display:block;
  color: var(--k5-teal);       /* celeste */
  font-weight: 800;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  margin-bottom: clamp(12px, 1.8vw, 16px);
}

/* Párrafo maestro (arriba y abajo mismo estilo) */
.k5-text{
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.95;
  color: var(--k5-text);
  margin: 0 auto clamp(18px, 3vw, 26px);
  max-width: 780px;
  text-align: justify;
  text-align-last: center;
}
.k5-text--left{ text-align:left; text-align-last:auto; }

/* ===== Bloques ===== */
.k5-blocks{
  background:#fff;
  padding: clamp(26px, 5vw, 60px) 0 clamp(34px, 6vw, 70px);
}
.k5-block-title{
  color: var(--k5-title);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  margin: clamp(24px, 4vw, 28px) 0 clamp(8px, 1.6vw, 10px);
  text-align: left;
}

/* Responsivo mínimo */
@media (max-width: 600px){
  .k5-wrap{ padding: 0 16px; }
  .k5-text{ max-width: 100%; }
}

/* ===== Imagen de proceso / roadmap (misma que usas en otras páginas) ===== */
.proceso { 
  padding: clamp(12px, 3vw, 24px) 0; 
  background: #fff; 
}
.proceso-img{
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: none;
}


/* ===== Variables + base ===== */
:root{
  --k6-orange:#FF7700;   /* anaranjado */
  --k6-title:#0E2238;
  --k6-text:#6A6A6A;
}

body{ font-family: 'Urbanist', system-ui, -apple-system, sans-serif; margin:0; }
.k6-wrap, .k6-intro, .k6-blocks { box-sizing: border-box; }

/* ===== Wrappers ===== */
.k6-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}
.k6-wrap--xl{ max-width: 1100px; }

/* ===== Subtítulo anaranjado ===== */
.k6-intro{
  background:#fff;
  padding: clamp(34px, 5vw, 56px) 0 0;
  text-align:center;
}
.k6-subtitle{
  display:block;
  color: var(--k6-orange);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  margin-bottom: clamp(12px, 1.8vw, 16px);
}

/* ===== Párrafos ===== */
.k6-text{
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.95;
  color: var(--k6-text);
  margin: 0 auto clamp(18px, 3vw, 26px);
  max-width: 780px;
  text-align: justify;
  text-align-last: center;
}
.k6-text--left{ text-align:left; text-align-last:auto; }

/* ===== Bloques ===== */
.k6-blocks{
  background:#fff;
  padding: clamp(26px, 5vw, 60px) 0 clamp(34px, 6vw, 70px);
}
.k6-block-title{
  color: var(--k6-title);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  margin: clamp(24px, 4vw, 28px) 0 clamp(8px, 1.6vw, 10px);
  text-align: left;
}

/* ===== Proceso (imagen) ===== */
.proceso { 
  padding: clamp(12px, 3vw, 24px) 0; 
  background: #fff; 
}
.proceso-img{
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: none;
}

/* ===== Responsive ===== */
@media (max-width: 600px){
  .k6-wrap{ padding: 0 16px; }
  .k6-text{ max-width: 100%; }
}


/* ===== Overlay selector de país para CTAs ===== */
.cta-country-menu[hidden]{ display:none; }
.cta-country-menu{
  position: fixed; inset: 0; z-index: 1080;
  display: grid; place-items: center;
}
.cta-country-backdrop{
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.cta-country-card{
  position: relative;
  width: min(620px, 92vw);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  padding: clamp(18px, 3vw, 28px);
}
.cta-country-title{
  margin: 0 0 14px;
  font-size: clamp(18px, 2.6vw, 22px);
  color: #0E2238;
  text-align: center;
  font-weight: 800;
}
.cta-country-close{
  position: absolute; top: 10px; right: 14px;
  border: 0; background: transparent; font-size: 28px; line-height: 1;
  cursor: pointer; color: #6A6A6A;
}
.cta-country-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
@media (min-width: 520px){
  .cta-country-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.cta-country-item{
  width: 100%;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-weight: 700;
  color: #0E2238;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .1s ease, border-color .15s ease;
}
.cta-country-item:hover{
  border-color: #E90F63;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.hero-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px; /* mismo estilo que tu imagen hero */
}




/* ===== KeyShoring (Nearshoring) ===== */
.keyshoring-intro{
  padding: clamp(34px, 5vw, 60px) 20px 0;
  background:#fff;
}
.keyshoring-intro .ks-wrap{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.keyshoring-intro .ks-title{
  margin: 0 0 22px;
  color: #0E2238;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.3;
}
.keyshoring-intro .ks-title strong{ font-weight: 800; }

/* Subtítulo en anaranjado (como KeyFinance) */
.keyshoring-intro .ks-subtitle{
  display: inline-block;
  color: #FF7700;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  margin-bottom: 16px;
}

/* Texto descriptivo */
.keyshoring-intro .ks-text{
  max-width: 780px;
  margin: 0 auto 18px;
  color: #666;
  font-size: clamp(1.05rem, 1.65vw, 1.25rem);
  line-height: 1.95;
  text-align: justify;
  text-align-last: center;
}

/* “Incluye:” */
.keyshoring-intro .ks-include{
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #FF7700;
  font-weight: 700;
  margin-top: 12px;
}

/* ===== Grid 3 + 2 centrado ===== */
.keyshoring-soluciones{
  padding: clamp(34px, 5vw, 60px) 20px clamp(34px, 5vw, 70px);
  background:#fff;
}
.keyshoring-soluciones .ks-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* 6 columnas → 3 items por fila */
  gap: clamp(22px, 3.2vw, 36px);
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* Cada item ocupa 2 columnas */
.keyshoring-soluciones .ks-item{
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
}
.keyshoring-soluciones .ks-icon{
  width: clamp(90px, 10vw, 140px);
  height: auto;
  margin: 0 auto 16px;
}
.keyshoring-soluciones .ks-item p{
  font-size: clamp(1.00rem, 1.8vw, 1.20rem);
  color: #FF7700;         
  line-height: 1.85;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 991px){
  .keyshoring-soluciones .ks-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .keyshoring-soluciones .ks-item{ grid-column: auto; }
}
@media (max-width: 600px){
  .keyshoring-soluciones .ks-grid{
    grid-template-columns: 1fr;
  }
}


/* ===== NAV: banderas anti-amontonamiento (laptop pequeña) ===== */
@media (min-width: 992px) and (max-width: 1280px){
  nav.navbar .navbar-flags{
    display: flex;
    flex-wrap: nowrap !important;     /* evita salto de línea en esta franja */
    overflow-x: auto;                  /* scroll horizontal si no caben */
    -webkit-overflow-scrolling: touch; /* scroll suave */
    gap: 8px;
    padding-bottom: 6px;
    /* fundido lateral sutil para indicar scroll */
    mask-image: linear-gradient(to right,
      transparent, black 16px, black calc(100% - 16px), transparent);
  }
  nav.navbar .navbar-flags .flag-link{ flex: 0 0 auto; }
  nav.navbar .flag-icon{ height: 30px; } /* un poco más pequeñas en esta franja */
}

/* Un pelín más compactas cerca de ~1100px */
@media (max-width: 1100px){
  nav.navbar .flag-icon{ height: 28px; }
}

/* ===== FOOTER v2: que los logos nunca se monten ===== */
.tk-footer-v2 .ft-logos{
  display: flex;
  align-items: center;
  justify-content: center;           /* centrados por defecto */
  gap: clamp(14px, 2.5vw, 28px);
  flex-wrap: wrap;                   /* clave: permite varias filas */
}

.tk-footer-v2 .ft-logos a{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 160px;                   /* ancho base flexible por item */
  min-width: 140px;                  /* evita que se encojan demasiado */
}

.tk-footer-v2 .ft-logos img{
  max-width: 100%;
  height: clamp(40px, 6vw, 80px);    /* altura adaptable sin romper layout */
  width: auto;
  object-fit: contain;
}

/* Sube el breakpoint para apilar NAV del footer antes (mejor en laptops mini) */
@media (max-width: 1024px){
  .tk-footer-v2 .ft-container{
    grid-template-columns: 1fr !important; /* logos arriba, nav abajo */
    text-align: center;
  }
  .tk-footer-v2 .ft-nav{
    justify-self: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* Extra pequeño (teléfonos angostos o ventanas muy chicas) */
@media (max-width: 420px){
  .tk-footer-v2 .ft-logos a{ min-width: 120px; }
  .tk-footer-v2 .ft-logos img{ height: 36px; } /* más compacto aún */
}

/* Redes: que también hagan wrap si falta espacio */
.tk-footer-v2 .fb-container{
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center; /* centrado cuando hacen wrap */
}

@media (max-width: 420px){
  .tk-footer-v2 .fb-social img{
    width: 36px; height: 36px;
  }
}

/* ===========================
   NAVBAR COMPACTO (laptops pequeñas)
   =========================== */

/* Compacto fuerte: 768–1100px */
@media (min-width: 768px) and (max-width: 1100px){
  .navbar{ padding-block: 4px; }
  .navbar .container{ gap: 8px; }

  /* Logo más chico */
  .navbar-brand img{ height: 52px !important; }

  /* Menú más compacto */
  .main-nav{ gap: 8px; }
  .main-nav .nav-link{
    font-size: .85rem;
    padding: .35rem .25rem;
    letter-spacing: .015em;
  }
  .main-nav .nav-link.active::after{
    width: 40px;
    height: 6px;
    bottom: -6px;
  }

  /* Botón EN más pequeño */
  #langBtn{
    padding: .2rem .5rem;
    font-size: .8rem;
    line-height: 1.1;
    border-width: 1px;
  }

  /* Banderas más pequeñas y con menor gap */
  .navbar-flags{ gap: 6px; }
  .navbar-flags .flag-icon{ height: 24px; }

  /* Red de seguridad: scroll solo en banderas si no caben */
  .navbar-flags{
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  }
  .navbar-flags .flag-link{ flex: 0 0 auto; }
}

/* Suavizado: 1100–1280px */
@media (min-width: 1100px) and (max-width: 1280px){
  .navbar{ padding-block: 6px; }
  .navbar-brand img{ height: 60px !important; }
  .main-nav{ gap: 10px; }
  .main-nav .nav-link{
    font-size: .95rem;
    padding: .4rem .3rem;
  }
  #langBtn{
    padding: .25rem .6rem;
    font-size: .85rem;
  }
  .navbar-flags{ gap: 8px; }
  .navbar-flags .flag-icon{ height: 26px; }

  /* Si falta espacio, scroll en banderas aquí también */
  .navbar-flags{
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .navbar-flags .flag-link{ flex: 0 0 auto; }
}

/* ===== NAVBAR MÁS PEGADO (laptops pequeñas) ===== */
/* ===== NAVBAR MINI (laptops pequeñas) ===== */
@media (min-width: 768px) and (max-width: 1100px){
  .navbar{ padding-block: 2px; }
  .navbar .container{ gap: 0; }

  /* Logo mini */
  .navbar-brand img{ height: 38px !important; }

  /* Links súper compactos */
  .main-nav{ gap: 2px; }
  .main-nav .nav-link{
    font-size: .7rem;
    padding: .15rem .15rem;
    letter-spacing: 0;
  }
  .main-nav .nav-link.active::after{
    width: 24px;
    height: 3px;
    bottom: -3px;
  }

  /* Botón EN reducido */
  #langBtn{
    padding: .1rem .3rem;
    font-size: .65rem;
  }

  /* Banderas muy juntas */
  .navbar-flags{ gap: 2px; }
  .navbar-flags .flag-icon{ height: 18px; }
}

/* ===== Standalone Servicios Generales ===== */
.sg-appbar{
  padding-block: 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.sg-appbar .navbar-brand img{
  height: 68px;
}
.sg-flags{
  gap: 12px !important;
}
.sg-flag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 14px;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.sg-flag img{
  height: 32px;
  width: auto;
}

.sg-hero-image{
  padding: clamp(40px, 8vw, 80px) 0;
  background: #f5f7fb;
}
.sg-hero-image img{
  border-radius: 48px;
}

.sg-pdf{
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
  background: #fff;
  display: grid;
  gap: 48px;
}
.sg-pdf-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
}
.btn-ghost{
  display: inline-block;
  padding: clamp(12px, 1.5vw, 18px) clamp(28px, 5vw, 60px);
  border-radius: 999px;
  border: 2px solid #FF007C;
  color: #FF007C;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-ghost:hover,
.btn-ghost:focus{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255,0,124,.18);
  background: #FF007C;
  color: #fff;
}
.sg-pdf-frame{
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  padding-top: 56.25%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(14,34,56,.18);
  background: #0E2238;
}
.sg-pdf-frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 991.98px){
  .sg-appbar .navbar-brand img{ height: 56px; }
  .sg-flag img{ height: 28px; }
  .sg-hero-image img{ border-radius: 36px; }
  .sg-pdf-frame{ border-radius: 24px; }
}

@media (max-width: 575.98px){
  .sg-appbar{
    padding-block: 14px;
  }
  .sg-appbar .navbar-brand img{ height: 46px; }
  .sg-flag{
    padding: 4px;
    border-radius: 10px;
  }
  .sg-flag img{ height: 24px; }
  .sg-pdf-frame{
    padding-top: 75%;
  }
}

/* ===== Modal Agradecimiento ===== */
.tk-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 16, 35, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s ease, visibility .12s ease;
  z-index: 1100;
}
.tk-modal.is-visible{
  opacity: 1;
  visibility: visible;
}
.tk-modal-dialog{
  position: relative;
  width: min(720px, 94%);
  border-radius: 36px;
  background: #fff;
  padding: clamp(52px, 9vw, 90px) clamp(44px, 7vw, 76px);
  min-height: 520px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
  transform: translateY(8px) scale(.98);
  transition: transform .15s ease;
  text-align: center;
}
.tk-modal.is-visible .tk-modal-dialog{
  transform: translateY(0) scale(1);
}
.tk-modal-body h3{
  font-weight: 700;
  margin-bottom: 1rem;
  color: #06122c;
  font-size: clamp(1.8rem, 4.2vw, 2.4rem);
}
.tk-modal-body p{
  color: #4a5672;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
}
.tk-modal-body{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 320px;
  gap: 1.2rem;
}
.tk-modal-body .btn{
  padding-block: 1.15rem;
  font-size: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #ff5ca8, #ff2d7a);
  border: none;
  box-shadow: 0 15px 35px rgba(255, 45, 122, 0.35);
  color: #fff;
  letter-spacing: .02em;
}
.tk-modal-body .btn:hover,
.tk-modal-body .btn:focus{
  filter: brightness(1.05);
  box-shadow: 0 20px 40px rgba(255, 45, 122, 0.4);
}
.tk-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 18, 44, 0.08);
  color: #06122c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.tk-modal-close:hover,
.tk-modal-close:focus{
  background: rgba(6, 18, 44, 0.16);
  transform: translateY(-1px);
}
body.tk-modal-open{
  overflow: hidden;
}

@media (max-width: 575.98px){
  .tk-modal-dialog{
    border-radius: 16px;
  }
}

/* ===== Botón WhatsApp flotante ===== */
.floating-whatsapp{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none;
  z-index: 1200;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-whatsapp:hover,
.floating-whatsapp:focus{
  transform: translateY(-2px) scale(1.03);
  box-shadow: none;
}
.floating-whatsapp img{
  width: 128px;
  height: 128px;
}
@media (max-width: 575.98px){
  .floating-whatsapp{
    bottom: 16px;
    right: 16px;
  }
  .floating-whatsapp img{
    width: 96px;
    height: 96px;
  }
}
