/* ============================================================
   🧭 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 24px;
    text-align: center;
  }

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

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

  .logos-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    overflow: visible;
    padding: 0;
    width: 100%;
    flex-wrap: unset;
  }

  .logo-item {
    width: 100%;
    height: 72px;
    margin: 0;
  }

  .logo-item img {
    width: 75%;
    opacity: 0.85;
  }
}

/* ============================================================
   📱 Versión móvil pequeño (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .logos {
    padding: 30px 16px;
  }

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

  .logos-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* El 5to logo: centra solo en su fila */
  .logo-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 160px;
    margin: 0 auto;
    width: 100%;
  }

  .logo-item {
    height: 68px;
  }

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

  /* Ocultar dots — ya no hay carousel */
  .logos-dots {
    display: none !important;
  }
}


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

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

@media (max-width: 768px) {
  .platform {
    padding: 80px 16px;
  }

  .platform h2 {
    font-size: 1.7rem;
    margin-bottom: 32px;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  .platform {
    padding: 60px 12px;
  }

  .platform h2 {
    font-size: 1.45rem;
    margin-bottom: 24px;
  }
}

/* ============================================================
   📌 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: 24px;
  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.1, 0.9, 0.2, 1);
  /* Quick start, gets out of the way fast */

  /* Stacking Logic */
  --offset: 24px;
  --scale-step: 0.04;
  transform-origin: right center;
  transform: translateX(calc(var(--stack) * var(--offset))) scale(calc(1 - var(--stack) * var(--scale-step)));
  z-index: calc(100 - var(--stack));
  opacity: 1;
  filter: brightness(calc(1 - var(--stack) * 0.08));
  cursor: pointer;
  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;
  cursor: default;
  transition: all 0.7s cubic-bezier(0.6, 0.05, 0.8, 0.5) !important;
  /* Starts slower, letting back cards slide out */
}

/* ============================================================
   🖼️ 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;
}










@media (max-width: 900px) {
  .feature-container {
    --card-w: clamp(280px, 88vw, 500px);
    --card-h: 720px;
    --media-h: 320px;
    --gap-b: 16px;
    position: relative;
    width: 100%;
    margin: 0 auto 160px;
    min-height: calc(var(--card-h) + 80px);
  }

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

  .feature-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    position: relative;
    z-index: 2;
  }

  .feature-text h3 {
    font-size: clamp(20px, 4.2vw, 28px);
    line-height: 1.2;
    margin-bottom: 0;
  }

  .feature-text p {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.5;
    margin-bottom: 0;
  }

  .feature-text .btn-sherpa,
  .feature-text .btn-primary2 {
    margin-top: 12px;
    align-self: flex-start;
  }

  .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: cover;
    object-position: top center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: block;
  }

  .feature-card {
    --offset-y: 18px;
    --offset-x: 0px;
    --scale-step: 0.02;
    transform: translate(calc(var(--stack) * var(--offset-x) - 50%), calc(var(--stack) * var(--offset-y))) scale(calc(1 - var(--stack) * var(--scale-step)));
    opacity: 1;
    filter: brightness(calc(1 - var(--stack) * 0.07));
  }

  /* Override the desktop active state to keep centering */
  .feature-card.active {
    transform: translate(-50%, 0) scale(1) !important;
  }
}

@media (max-width: 600px) {
  .feature-container {
    --card-w: clamp(260px, 94vw, 380px);
    --card-h: 640px;
    --media-h: 260px;
    --gap-b: 12px;
    margin-bottom: 140px;
  }

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

@media (max-width: 400px) {
  .feature-container {
    --card-w: clamp(250px, 96vw, 340px);
    --card-h: 600px;
    --media-h: 240px;
    --gap-b: 10px;
    margin-bottom: 120px;
  }
}



@media (max-width: 900px) {
  .feature-container {
    --shrink-per-level: 24px;
  }

  .feature-card {
    width: calc(var(--card-w) - (var(--stack) * var(--shrink-per-level)));
  }
}


/* =========================================================
   🔹 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;
  }
}