/* ============================================================
   🧭 ESTILOS GENERALES - SHERPA HOME
   ============================================================ */

/* ----- Tipografía global ----- */
/*@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;700&display=swap');



body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  background: #fff;
  color: var(--text-body);
}

/* ============================================================
   🎯 BOTÓN PRIMARIO (SVG DE "EMPEZAR")
   ============================================================ */
.btn-primary {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 173px;
  height: 40px;
  padding: 0 10px 0 32px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 300;
  font-size: 1rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 116, 231, 0.25);
  white-space: nowrap;
}

/* Efecto hover con sombra azul */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45, 116, 231, 0.4);
  background: var(--primary-blue-hover);
}

.btn-primary2 {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 173px;
  height: 48px;
  padding: 0 8px 0 24px;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(45, 116, 231, 0.2);
  white-space: nowrap;
}

/* Efecto hover con sombra azul */
.btn-primary2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 116, 231, 0.35);
  background: var(--primary-blue-hover);
}

/* ============================================================
   ✨ TEXTO DESTACADO
   ============================================================ */
.highlight {
  background: var(--primary-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   🏔️ SECCIÓN HERO
   ============================================================ */
.hero {
  /* imagen + overlay oscuro desde la derecha */
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .3) 48.46%),
    url('../assets/Bck-Home.png') center/cover no-repeat;
  background-repeat: no-repeat;
  background-color: #D9D9D9;
  background-position: right center, center 38%;
  color: #fff;
  /* padding: 120px 80px; */
  padding: 1px 40px;
  /* Increased padding */
  text-align: left;
  display: flex;
  align-items: center;
  min-height: 60vh;
  /* Increased from 60vh for a more impactful hero */
  width: 100%;
  position: relative;
}

.hero-content {
  position: relative;
  max-width: 720px;
  /* Slightly wider for better text flow */
  z-index: 2;
}

.hero h1 {
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
  /* Adjusted from 100 for better readability */
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
}

.hero p {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 24px;
  max-width: 600px;
}



/* ============================================================
   📱 RESPONSIVE HERO SECTION
   ============================================================ */

/* ===== Tablets ===== */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 30px;
    min-height: 55vh;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.3;
    margin-top: 12px;
  }

  .btn-primary {
    width: 160px;
    height: 38px;
    font-size: 0.95rem;
  }
}

/* ===== Móviles grandes ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 80px 24px;
    min-height: 70vh;
    background-position: center top;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 10px;
  }

  .btn-primary {
    width: 193px;
    height: 60px;
    font-size: 0.9rem;
    margin-top: 20px;
  }
}

/* ===== Móviles pequeños ===== */
@media (max-width: 480px) {
  .hero {
    padding: 70px 20px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.5;
  }

  .btn-primary {
    width: 193px;
    height: 60px;
    font-size: 0.85rem;
  }
}










/* ============================================================
   📜 BANNER CREDENCIAL NOM-024
   ============================================================ */
.nom-banner {
  background: linear-gradient(90deg, #f8faff 0%, #ffffff 50%, #f8faff 100%);
  padding: 16px 40px;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nom-container {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1100px;
}

.nom-badge {
  background: var(--primary-blue);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(45, 116, 231, 0.2);
}

.nom-text {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
}

@media (max-width: 768px) {
  .nom-banner {
    padding: 20px 24px;
  }

  .nom-container {
    flex-direction: column;
    gap: 10px;
  }

  .nom-text {
    font-size: 0.85rem;
  }
}

/* ============================================================
   🤝 SECCIÓN LOGOS DE ALIADOS / CLIENTES (alineado horizontal)
   ============================================================ */
.logos {
  background: #fff;
  padding: 20px 40px;
  overflow: hidden;
}

/* Contenedor general */
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow: hidden;
}

/* Texto fijo a la izquierda */
.logos-row p {
  color: #9A9A9A;
  font-size: 1rem;
  font-weight: 300;
  white-space: nowrap;
  flex-shrink: 0;
  /* no se encoge */
  margin: 0;
}

.logos-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  /* ✅ scroll horizontal */
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Firefox */
}

.logos-track::-webkit-scrollbar {
  display: none;
  /* Chrome / Safari */
}


/* Cada logo */
.logo-item {
  background: #f9f9f9;
  border-radius: 1rem;
  width: 160px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.05);
}

.logo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
}

/* Imagen */
.logo-item img {
  width: 80%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-item:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================================
   📱 RESPONSIVE — LOGOS (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .logos {
    padding: 40px 20px;
    text-align: center;
  }

  .logos-row {
    flex-direction: column;
    /* 🔹 texto arriba */
    align-items: center;
    gap: 24px;
  }

  .logos-row p {
    font-size: 0.95rem;
    white-space: normal;
    max-width: 90%;
  }

  .logos-track {
    display: flex;
    flex-wrap: wrap;
    /* 🔹 ahora los logos hacen salto de línea */
    justify-content: center;
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
  }

  .logo-item {
    width: 130px;
    height: 70px;
  }

  .logo-item img {
    width: 70%;
    opacity: 0.8;
  }
}

/* ============================================================
   📱 Versión móvil (≤ 480px / 420px)
   ============================================================ */
@media (max-width: 480px) {
  .logos {
    padding: 30px 0;
    text-align: center;
  }

  .logos-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .logos-row p {
    font-size: 0.9rem;
    max-width: 85%;
    margin: 0 auto;
  }

  /* 🔹 Carrusel horizontal */
  .logos-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    /* 🚫 anula el wrap del modo tablet */
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 16px;
  }

  .logos-track::-webkit-scrollbar {
    display: none;
  }

  .logo-item {
    scroll-snap-align: center;
    flex: 0 0 80%;
    /* cada logo ocupa 80% del ancho */
    width: auto;
    height: 90px;
    margin-right: 8px;
  }

  .logo-item img {
    width: 70%;
    opacity: 0.9;
  }

  /* 🔹 Puntos dinámicos */
  .logos-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }

  .logos-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d7ff;
    transition: all 0.3s ease;
  }

  .logos-dots .dot.active {
    background: #2979ff;
    transform: scale(1.3);
  }
}


/* ============================================================
   🧩 SECCIÓN PLATFORM / CARACTERÍSTICAS
   ============================================================ */
.platform {
  text-align: center;
  padding: 120px 20px;
  background: var(--bg-light);
}

.platform h2 {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 50px;
}

/* ============================================================
   📌 TABS DE PLATAFORMA
   ============================================================ */
/* ===== TABS NUEVO DISEÑO + COLORES DE TEXTO ===== */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* Botones inactivos */
.tabs button {
  background: #f6f7fb;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
  color: #287FF2;
  /* azul corporativo */
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Botón activo */
.tabs button.active {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(45, 116, 231, 0.3);
  transform: translateY(-1px);
}

/* Hover en botones inactivos */
.tabs button:hover:not(.active) {
  background: rgba(41, 121, 255, 0.08);
  color: #1565c0;
  /* azul corporativo */
  transform: translateY(-1px);
}

/* Pequeña mejora en móviles */
@media (max-width: 768px) {
  .tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    flex: 0 0 auto;
  }
}

/* ============================================================
   🧱 CONTENEDOR DE TARJETAS DE FEATURES
   ============================================================ */
.feature-container {
  position: relative;
  width: 92%;
  max-width: 1140px;
  margin: 0 auto;
  perspective: 1500px;
  min-height: 560px;
  font-family: "Montserrat", sans-serif;
  overflow: visible;
}

/* ============================================================
   💡 TARJETAS DE FEATURES
   ============================================================ */
.feature-card {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 50px;
  border-radius: 40px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);

  /* Stacking Logic */
  --offset: 48px;
  --scale-step: 0.04;
  transform: translateX(calc(var(--stack) * var(--offset))) scale(calc(1 - var(--stack) * var(--scale-step)));
  z-index: calc(100 - var(--stack));
  opacity: calc(1 - var(--stack) * 0.12);
  filter: brightness(calc(1 - var(--stack) * 0.04));
  pointer-events: none;
  visibility: visible;
}

/* Active Card State */
.feature-card.active {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
  filter: brightness(1) !important;
  z-index: 100 !important;
  pointer-events: auto;
}

/* ============================================================
   🖼️ CONTENIDO DE LAS TARJETAS (TEXTO E IMAGEN)
   ============================================================ */
.feature-text {
  flex: 1;
  min-width: 320px;
  text-align: left;
}

.feature-icon {
  margin-bottom: 15px;
}

.feature-icon svg,
.feature-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.feature-text h3 {
  color: #1565c0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 300;
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

/* Contenedor de imagen */
.feature-image {
  flex: 1;
  min-width: 350px;
  border-radius: 15px;
  display: flex;
  justify-content: flex-end;
}

/* Imagen dentro de la tarjeta */
.image-layers img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

/* Hover con leve aumento */
.image-layers img:hover {
  transform: scale(1.05);
}

/* ============================================================
   🎨 VARIANTES DE COLOR SEGÚN TEMA (DARK / LIGHT)
   ============================================================ */
.feature-card.light .feature-text h3,
.feature-card.light .feature-text p {
  color: #333;
}

.feature-card.dark .feature-text h3,
.feature-card.dark .feature-text p {
  color: #fff;
}

.feature-card.dark .btn-primary {
  background-color: #fff;
  color: #0f1d40;
}

.feature-card.light .btn-primary {
  background-color: #1565c0;
  color: #fff;
}

/* Removed redundant feature-card definitions */

/* ============================================================
   🖼️ CONTENIDO DE LAS TARJETAS
   ============================================================ */
.feature-text {
  flex: 1;
  min-width: 320px;
  text-align: left;
}

.feature-icon {
  margin-bottom: 15px;
}

.feature-icon svg,
.feature-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.feature-text h3 {
  color: #1565c0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 300;
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.feature-image {
  flex: 1;
  min-width: 350px;
  border-radius: 15px;
  display: flex;
  justify-content: flex-end;
}

.image-layers img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease;
}

.image-layers img:hover {
  transform: scale(1.05);
}

/* ============================================================
   🎨 VARIANTES DE COLOR
   ============================================================ */
.feature-card.light .feature-text h3,
.feature-card.light .feature-text p {
  color: #333;
}

.feature-card.dark .feature-text h3,
.feature-card.dark .feature-text p {
  color: #fff;
}

.feature-card.dark .btn-primary {
  background-color: #fff;
  color: #0f1d40;
}

.feature-card.light .btn-primary {
  background-color: #1565c0;
  color: #fff;
}



.logos-dots {
  display: none;
}

/* ============================================================
   📱 LOGOS — micro (≤420px): 3 logos por vista + dots visibles
   ============================================================ */
@media (max-width: 420px) {
  .logos {
    padding: 24px 0;
  }

  .logos-row {
    flex-direction: column;
    gap: 16px;
  }

  .logos-track {
    /* Carrusel por "pantallas" de ancho completo */
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    gap: 12px;
    /* importante para el cálculo de widths */
    padding: 8px 12px;
  }

  .logo-item {
    /* 3 por viewport: (100% - 2 gaps) / 3 */
    flex: 0 0 calc((100% - (2 * 12px)) / 3);
    height: 64px;
    /* un poco más bajo para caber cómodos */
    scroll-snap-align: center;
  }

  .logo-item img {
    width: 72%;
    opacity: 0.9;
  }

  /* Asegura que los dots estén visibles en este breakpoint */
  .logos-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }

  .logos-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d7ff;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .logos-dots {
    display: flex !important;
  }

  .logos-dots .dot.active {
    background: #2979ff;
    transform: scale(1.25);
  }
}











/* =========================================
   📱 Stack con overlap + imagen full-width
   ========================================= */
@media (max-width: 900px) {
  .feature-container {
    --card-w: clamp(280px, 78vw, 450px);
    --card-h: 850px;
    /* ⬅️ MÁS ALTO */
    --media-h: 400px;
    /* ⬅️ imagen más alta */
    --gap-b: 16px;
    /* franja visible */
    position: relative;
    width: 100%;
    margin: 0 auto 180px;
    min-height: calc(var(--card-h) + 110px);
  }

  .feature-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--card-w);
    height: var(--card-h);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    /* un pelín más de aire */
    padding-bottom: calc(var(--media-h) + var(--gap-b) + 28px);
    overflow: hidden;
    transform-origin: center;
    transition: transform .4s ease, opacity .4s ease;
  }

  .feature-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
  }

  .feature-text h3 {
    font-size: clamp(22px, 4.6vw, 30px);
    line-height: 1.15;
  }

  .feature-text p {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.45;
  }

  .feature-text .btn-primary2 {
    margin-top: auto;
  }

  .feature-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--gap-b);
    height: var(--media-h);
    pointer-events: none;
    z-index: 0;
  }

  .feature-image .image-layers {
    position: absolute;
    inset: 0;
  }

  .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: var(--fit, cover);
    object-position: var(--pos, center);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 16px;
    display: block;
  }

  /* Escalera usando --stack */
  .feature-card {
    --offset-y: 20px;
    --offset-x: 0px;
    --scale-step: 0.025;
    transform: translate(calc(var(--stack) * var(--offset-x) - 50%), calc(var(--stack) * var(--offset-y))) scale(calc(1 - var(--stack) * var(--scale-step)));
    opacity: calc(1 - var(--stack) * 0.1);
  }
}

@media (max-width: 480px) {
  .feature-container {
    --card-w: clamp(260px, 92vw, 330px);
    --card-h: 800px;
    --media-h: 400px;
    --gap-b: 14px;
    margin-bottom: 160px;
  }

  .feature-card {
    padding: 20px 16px;
    padding-bottom: calc(var(--media-h) + var(--gap-b) + 20px);
  }
}



@media (max-width: 900px) {
  .feature-container {
    /* cuánto se angosta por nivel (ajústalo a gusto) */
    --shrink-per-level: 35px;
  }

  /* ancho por nivel usando --stack (0 = carta de arriba) */
  .feature-card {
    width: calc(var(--card-w) - (var(--stack) * var(--shrink-per-level)));
  }

  /* opcional: si te gusta mantener un pelín de escala para profundidad: */
  /* .feature-card:nth-child(2){ transform: translate(-50%,26px) scale(.992); } */
}

/* ============================================================
   🧭 ESTILOS GENERALES - SHERPA HOME
   ============================================================ */

/* ----- Tipografía global ----- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: "Galano Grotesque", "Poppins", "Manrope", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: #fff;
  color: #333;
}



/* =========================================================
   🔹 RIESGO DE LA INACCIÓN
   ========================================================= */
.inertia-risk {
  --radius: 22px;
  position: relative;

  /* ✅ céntralo horizontalmente y unifica márgenes */
  margin: 140px auto 20px;

  /* ✅ ancho fluido con gutters de 20px cuando la pantalla es chica */
  max-width: 1200px;
  width: min(1200px, calc(100% - 40px));

  min-height: 360px;
  border-radius: var(--radius);
  background: #000 center/cover no-repeat;
  overflow: hidden;
  box-sizing: border-box;
}


.inertia-risk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  pointer-events: none;
  z-index: 0;
}

.risk-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 36px;
  min-height: 360px;
}

.risk-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
}

.risk-left h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

/* --- BOTÓN "INICIA AHORA" --- */
/* --- BOTÓN "INICIA AHORA" (PNG OPTIMIZADO) --- */
.risk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 157px;
  height: 48px;
  border: none;
  cursor: pointer;
  background: url("../assets/botoniniciar.png") center/contain no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.risk-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.risk-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- TARJETAS SVG --- */
.risk-card {
  background: none;
  padding: 0;
  box-shadow: none;
}

.risk-card::after {
  display: none;
}

.risk-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 680px;
  border-radius: 14px;
}


/* =========================================================
   📱 RESPONSIVE - RIESGO DE LA INACCIÓN
   ========================================================= */
@media (max-width: 768px) {
  .inertia-risk {
    margin-top: 120px;
    /* 🔹 mantiene separación con cartas apiladas */
    min-height: 480px;
    margin: 20px;
  }

  .risk-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 32px;
  }

  .risk-left {
    align-items: center;
  }

  .risk-left h2 {
    font-size: 1.6rem;
  }

  .risk-right {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .risk-svg {
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .inertia-risk {
    margin-top: 100px;
    border-radius: 16px;
  }

  .risk-content {
    padding: 24px 16px;
    gap: 24px;
  }

  .risk-left h2 {
    font-size: 1.4rem;
  }

  .risk-svg {
    max-width: 260px;
  }
}


/* ============================================================
   🧱 FIX FINAL - ESPACIO REAL ENTRE PLATFORM Y RIESGO DE LA INACCIÓN
   ============================================================ */

/* Aplica cuando las cartas son absolutas (móvil y tablet) */
@media (max-width: 900px) {
  .feature-container {
    /* Mantiene su posición, pero agrega un margen inferior real */
    margin-bottom: 180px;
    /* 🔹 crea espacio visible bajo las cartas */
  }
}

/* Ajuste para móviles pequeños */
@media (max-width: 480px) {
  .feature-container {
    margin-bottom: 140px;
    /* 🔹 un poco menos en pantallas chicas */
  }
}

/* =========================================================
   🔹 DIFERENCIA SHERPA
   ========================================================= */
.sherpa-difference {
  text-align: center;
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.sherpa-difference h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 300;
  color: #222;
  line-height: 1.2;
  margin-bottom: 50px;
}

.highlight-blue {
  color: #287FF2;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.difference-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.difference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-header h3 {
  font-size: 1.1rem;
  color: #222;
  font-weight: 400;
  margin: 0;
}

.card-header .icon {
  font-size: 1.4rem;
  color: #287FF2;
}

.difference-card p {
  color: #777;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- Botón inferior --- */
.center-btn {
  text-align: center;
}

.center-btn .btn-primary {
  width: 157px;
  height: 48px;
  background: url('../assets/botoniniciar.png') center/contain no-repeat;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.center-btn .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 121, 255, 0.4);
}


.card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* --- Botón DEMO --- */
.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 40px;
  background: url('../assets/botondemo.svg') center/contain no-repeat;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* =========================================================
   📱 RESPONSIVE - DIFERENCIA SHERPA
   ========================================================= */
@media (max-width: 768px) {
  .sherpa-difference {
    padding: 80px 24px;
  }

  .sherpa-difference h2 {
    font-size: 1.6rem;
    margin-bottom: 40px;
    line-height: 1.4;
  }

  .difference-grid {
    gap: 20px;
    margin-bottom: 40px;
    grid-template-columns: 1fr;
  }

  .difference-card {
    padding: 22px 20px;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .difference-card p {
    font-size: 0.9rem;
  }

  .btn-demo {
    width: 180px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .sherpa-difference {
    padding: 60px 16px;
  }

  .sherpa-difference h2 {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }

  .difference-grid {
    gap: 16px;
  }

  .difference-card {
    padding: 20px 18px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-icon {
    width: 32px;
    height: 32px;
  }

  .difference-card p {
    font-size: 0.85rem;
  }

  .btn-demo {
    width: 170px;
    height: 36px;
  }
}

/* =========================================================
   🔹 BLOG / INVESTIGACIÓN
   ========================================================= */
.blog-section {
  text-align: center;
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-section h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin-bottom: 60px;
}

/* --- Layout general --- */
.blog-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: start;
}

/* --- Principal --- */
.blog-featured {
  background: #F9F9F9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.blog-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-text {
  padding: 20px 24px 32px;
}

.blog-text .tag {
  color: #287FF2;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-text h3 {
  color: #333;
  font-weight: 600;
  line-height: 1.5;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* --- Lado derecho --- */
.blog-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  /* ✅ nunca se pierde un hijo */
  gap: 20px;
  align-items: stretch;
  /* ✅ mantiene alturas balanceadas */
}

.blog-card {
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* ✅ distribuye texto + botón */
  min-height: 200px;
  max-height: 320px;
  /* ✅ evita que se estire demasiado */
  padding-bottom: 10px;
}

.blog-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Colores */
.blog-side .blog-card:nth-child(1) {
  background: #26406F;
}

.blog-side .blog-card:nth-child(2) {
  background: #3D74AD;
}

.blog-side .blog-card:nth-child(3) {
  background: #287FF2;
}

/* Card wide */
.blog-card.wide {
  grid-column: 1 / 3;
  flex-direction: row;
  align-items: center;
}

.blog-card.wide img {
  width: 40%;
  height: 100%;
  object-fit: cover;
}

.blog-card .info {
  padding: 16px 20px;
}

.blog-card .date {
  font-size: 0.85rem;
  color: #d9e5ff;
  margin-bottom: 6px;
}

.blog-card h4 {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

/* --- Botones Blog --- */
.btn-blog,
.btn-blog2 {
  display: inline-flex;
  width: 157px;
  height: 40px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-top: 12px;
}

.btn-blog {
  background: url('../assets/botonleerbl.svg') center/contain no-repeat;
}

.btn-blog2 {
  background: url('../assets/botonleerng.svg') center/contain no-repeat;
}

.btn-blog:hover,
.btn-blog2:hover {
  transform: translateY(-2px);
}

/* =========================================================
   📱 RESPONSIVE - BLOG / INVESTIGACIÓN
   ========================================================= */

/* --- Tablets (hasta 1024px) --- */
@media (max-width: 1024px) {
  .blog-section {
    padding: 100px 32px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    /* ✅ pasa a una columna */
    gap: 40px;
  }

  .blog-featured {
    max-width: 700px;
    margin: 0 auto;
  }

  .blog-side {
    grid-template-columns: 1fr 1fr;
    /* ✅ mantiene dos columnas en tablet */
    gap: 24px;
  }

  .blog-card.wide {
    grid-column: 1 / -1;
  }
}

/* --- Móviles grandes (hasta 768px) --- */
@media (max-width: 768px) {
  .blog-section {
    padding: 80px 24px;
  }

  .blog-section h2 {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-side {
    grid-template-columns: 1fr;
    /* ✅ una sola columna */
    gap: 20px;
  }

  .blog-featured img {
    max-height: 300px;
    object-fit: cover;
  }

  .blog-card {
    max-height: none;
  }

  .blog-card.wide {
    flex-direction: column;
  }

  .blog-card.wide img {
    width: 100%;
    height: 180px;
  }

  .blog-card .info {
    padding: 18px;
  }

  .btn-blog,
  .btn-blog2 {
    width: 150px;
    height: 38px;
  }
}

/* --- Móviles pequeños (hasta 480px) --- */
@media (max-width: 480px) {
  .blog-section {
    padding: 60px 16px;
  }

  .blog-section h2 {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }

  .blog-text h3 {
    font-size: 1rem;
  }

  .blog-card h4 {
    font-size: 0.9rem;
  }

  .blog-side {
    gap: 16px;
  }

  .blog-card {
    padding-bottom: 12px;
  }

  .blog-card img {
    height: 130px;
  }

  .blog-card.wide img {
    height: 150px;
  }

  .btn-blog,
  .btn-blog2 {
    width: 140px;
    height: 36px;
  }
}


/* ============================================
   📱 Riesgo de la inacción — Carrusel móvil
   ============================================ */

/* Desktop/Tablet (>768px): nada cambia; mostramos todas las imágenes */
.risk-slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-slide {
  position: relative;
}

/* Móvil (≤768px): mostrar 1×1 + flechas + puntos */
@media (max-width: 768px) {
  .risk-slider {
    position: relative;
    width: 100%;
    max-width: 320px;
    /* ajusta si quieres más ancho en móvil */
    height: auto;
  }

  /* Oculta todas por defecto y muestra solo la activa */
  .risk-slide {
    display: none;
  }

  .risk-slide.active {
    display: block;
  }

  /* Flechas de navegación en bordes de la imagen */
  .risk-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #2979ff;
    /* azul corporativo */
    border: 1px solid #e6e9ee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .risk-nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: #f6f9ff;
    border-color: #d9e4fb;
  }

  .risk-nav.prev {
    left: -6px;
  }

  .risk-nav.next {
    right: -6px;
  }

  /* Puntos de selección debajo de la imagen */
  .risk-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .risk-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfe0ff;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .risk-dots .dot.active {
    background: #2979ff;
    transform: scale(1.25);
  }
}

/* Móviles pequeños (≤480px): un poco más compacto */
@media (max-width: 480px) {
  .risk-slider {
    max-width: 280px;
  }

  .risk-nav {
    width: 34px;
    height: 34px;
  }
}

/* ============================
   Desktop/Tablet (>768px)
   Ocultar carrusel, flechas y dots
   ============================ */
@media (min-width: 769px) {
  .risk-slider {
    gap: 16px;
    max-width: 100%;
    margin: 0;
  }

  .risk-slide {
    display: block !important;
    /* muestra todas */
    position: relative;
  }

  .risk-nav,
  .risk-dots {
    display: none !important;
    /* oculta flechas y puntos */
  }
}


/* ============================================
   Riesgo de la inacción — Ajuste de anchos
   ============================================ */

/* 1) Variables de control (puedes cambiar valores sin tocar reglas) */
.risk-content {
  /* cuánto ancho recibe cada columna en desktop */
  --risk-left-fr: 1fr;
  /* columna izquierda */
  --risk-right-fr: 1.25fr;
  /* columna derecha (más ancha) */

  /* límites máximos de ancho del bloque derecho */
  --risk-right-max: 760px;
  /* tope en desktop/tablet */
  --risk-right-max-m: 560px;
  /* tope en móviles */
}

/* 2) Dale más ancho a la columna derecha en desktop/tablet */
.risk-content {
  display: grid;
  /* (ya lo tienes, esto no rompe) */
  grid-template-columns: var(--risk-left-fr) var(--risk-right-fr);
  /* opcional: asegura que nada se salga visualmente */
  overflow: hidden;
  box-sizing: border-box;
}

/* 3) El bloque derecho puede crecer, pero no pasarse del contenedor */
.risk-right {
  width: 100%;
  max-width: min(100%, var(--risk-right-max));
  justify-self: stretch;
  /* ocupa su columna completa */
  box-sizing: border-box;
}

/* Asegura que las imágenes dentro respeten el ancho del bloque */
.risk-right img,
.risk-right .risk-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* 4) En móviles (≤768px): una sola columna, centrado y ancho generoso */
@media (max-width: 768px) {
  .risk-content {
    grid-template-columns: 1fr;
    /* stack */
  }

  .risk-right {
    max-width: min(100%, var(--risk-right-max-m));
    margin-inline: auto;
    /* centrado */
    margin-top: 160px;
  }

}

.risk-right,
.risk-content,
.risk-right * {
  box-sizing: border-box;
}

/* ============================================
   Riesgo de la inacción — Modo "wide" SOLO ≤768
   ============================================ */

/* 🔒 Desktop/Tablet >768px: sin modo wide */
@media (min-width: 769px) {
  .risk-right.risk-wide {
    grid-column: auto;
    /* vuelve al layout normal de 2 columnas */
    max-width: none;
    padding: 0;
  }
}

/* 📱 Móvil ≤768px: activar wide y proteger bordes */
@media (max-width: 768px) {
  .risk-right.risk-wide {
    grid-column: 1 / -1;
    /* ocupa todo el ancho de risk-content */
    --risk-gutter: clamp(12px, 2.5vw, 24px);
    /* margen interno para no tocar bordes */
  }

  /* El track del carrusel/stack usa todo el ancho disponible */
  .risk-right.risk-wide .risk-slider {
    max-width: 100%;
    margin-inline: 0;
  }

  /* Separación interior para que la imagen no pegue a los bordes */
  .risk-right.risk-wide .risk-slide {
    padding: var(--risk-gutter);
  }

  /* La imagen se adapta sin deformarse (flechas del SVG mantienen forma) */
  .risk-right .risk-svg {
    display: block;
    width: 100%;
    height: auto;
    /* mantiene proporción */
    max-width: none;
    object-fit: contain;
    /* no recorta ni aplasta */
    border-radius: 14px;
    /* opcional */
  }

  /* Si usas flechas absolutas, compénsalas con el gutter para que no choquen */
  .risk-right.risk-wide .risk-nav.prev {
    left: calc(var(--risk-gutter) - 6px);
  }

  .risk-right.risk-wide .risk-nav.next {
    right: calc(var(--risk-gutter) - 6px);
  }
}

/* Alinear h2 y botón en fila */
.risk-left .risk-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  /* si no caben, se van a la siguiente línea */
  margin-bottom: 12px;
  /* separación con el resto */
}

.risk-left .risk-title-row h2 {
  margin: 0;
}

/* Ajusta el selector del botón a tu clase real: .btn-start, .btn-primary, etc. */
.risk-left .risk-title-row .btn-start {
  white-space: nowrap;
  align-self: center;
}

/* En pantallas muy pequeñas, si quieres forzar que se apilen: */
@media (max-width: 420px) {
  .risk-left .risk-title-row {
    flex-wrap: wrap;
  }
}

/*Esto es una reverenda mmda, pero funciona asi que shhh*/
.Activoless420 {
  display: none;
}

.Activomore420 {
  display: block;
}

/* =========================================================
   📱 RIESGO DE LA INACCIÓN — layout especial ≤420px
   ========================================================= */
@media (max-width: 420px) {

  .inertia-risk {
    border-radius: 14px;
    overflow: hidden;
  }

  .risk-right.risk-wide {
    margin-top: 0;
  }

  .risk-content {
    display: block;
    /* stack vertical */
    padding: 20px 14px;
  }

  /* Altura "hero" sobre la imagen de fondo para alojar el h2 + botón */
  .risk-left {
    min-height: 220px;
    /* ajusta si quieres más/menos alto el área con fondo */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* texto y botón pegados a la parte baja del fondo */
    gap: 12px;
    text-align: left;
  }

  /* 2) Título y botón uno debajo del otro dentro de inertia-risk */
  .risk-title-row {
    display: flex;
    flex-direction: column;
    /* ➜ vertical */
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
  }

  .risk-title-row h2 {
    margin: 0;
  }

  .risk-cta {
    align-self: center;
  }

  .Activoless420 {
    display: block;
  }

  .Activomore420 {
    display: none;
  }

}

.hero-buttons {
  display: flex;
  gap: 30px;
}

/* Localized Risk Section Glass Cards */
.risk-glass-card {
  width: 100%;
  max-width: 493px;
  height: 160px;
  /* Slightly taller to allow spacing */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Liquid Glass Border Shine Effect */
.risk-glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: rotate(30deg);
  pointer-events: none;
  z-index: 1;
}

.risk-glass-card-inner {
  background: rgba(255, 255, 255, 0.85);
  /* Slightly transparent inner */
  border-radius: 18px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  box-sizing: border-box;
  z-index: 2;
  text-align: left;
}

.risk-glass-card-inner h4 {
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.2;
}

.risk-glass-card-inner p {
  color: #555;
  font-size: 1rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .risk-glass-card {
    height: auto;
    min-height: 120px;
  }
}