:root {
  --primary-blue: #1f4a8a;
  --white: #ffffff;
  --text-light: #f5f7fa;
  --light-blue: #ecf3fd;
  --accent-blue: #4FA3D1;
  --border-light: #dce6f2;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: white;
}

/* Specific styles for the terms and conditions page */
body#terms .header {
  background-color: var(--primary-blue); /* Primary blue color */
}

#intro {
  position: fixed;
  inset: 0;
  background-color: #1f4a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.intro-logo {
/* Tamaño fluido */
  font-size: clamp(32px, 6vw, 64px);

  opacity: 0;
  transform: scale(0.98);

  animation:
    logoIntro 0.8s ease forwards,
    logoPulse 1.6s ease-in-out infinite;
}

@keyframes logoIntro {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#intro.fade-out {
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

#intro.fade-out .intro-logo {
  animation: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}


@media (max-width: 600px) {
  .intro-logo {
    animation:
      logoIntro 0.8s ease forwards,
      logoPulseMobile 2s ease-in-out infinite;
  }

  @keyframes logoPulseMobile {
    0% { transform: scale(1); }
    50% { transform: scale(1.015); }
    100% { transform: scale(1); }
  }
}

@media (max-width: 480px) {
  #intro {
    transition: opacity 0.6s ease;
  }

  #intro.fade-out {
    transition: opacity 0.6s ease;
  }
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  transition: all 0.4s ease-in-out;
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.log-img-azul {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.container {
  width: auto;
  margin: auto;
  padding: 35px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s ease-in-out;
}

.header.scrolled .container {
  padding: 13px 25px;
}

.header.scrolled .nav a {
  color: var(--primary-blue);
}

.header.scrolled .nav a:hover {
  color: var(--accent-blue);
}

.header.scrolled .btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.header.scrolled .btn-primary:hover {
  background-color: #153a5f;
}

.container .logo {
  width: 160px;
  height: 56px;
  position: relative;
  display: block;
  z-index: 1000;
}

.logo .log-img,
.logo .log-img-azul {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 800;
}

.log-img { opacity: 1; }
.log-img-azul { opacity: 0; pointer-events: none; }

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #4FA3D1;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-blue);
  padding: 10px 18px;
  border-radius: 15px; /* pill */
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #ffffff;
}

/* Hamburguesa oculta en desktop */
.nav-toggle {
  display: none;
  color: white;
  font-size: 24px;
  background: none;
  border: none;
  transition: color 0.2s ease;
  z-index: 1100;
}

/* Cuando el header cambia a fondo blanco, el toggle debe ser azul para mantenerse visible */
.header.scrolled .nav-toggle {
  color: var(--primary-blue);
}

/* Si el menú móvil está abierto (nav.active), el toggle debe ser blanco para contrastar */
.nav.active ~ .nav-toggle {
  color: var(--white);

}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari */

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 999; /* debajo del menú */
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Blur logos when mobile menu is open to push them visually behind the overlay */
@media (max-width: 992px) {
  .header.menu-open .logo .log-img,
  .header.menu-open .logo .log-img-azul {
    filter: blur(4px) saturate(0.95);
    opacity: 0.6;
    transition: filter 0.25s ease, opacity 0.25s ease;
  }
}

@media (max-width: 992px) {

  /* Reducimos padding del header */
  .container {
    padding: 30px 60px;
  }

  .header.scrolled .container {
    padding: 14px 22px;
  }

  /* Logo más pequeño */
  .container .logo {
    width: 130px;
    height: 46px;
  }

  .nav-cta{
    display: none;
  }

/* Language toggle button next to CTA */
.lang-toggle {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.06);
}

/* Active language button */
.lang-toggle.active,
.lang-toggle[aria-pressed="true"] {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
}

.lang-group { 
  display: flex; 
  gap: 6px; 
  align-items: center; 
  justify-content: center;
}

/* On desktop show nav-cta inline, keep current mobile behavior */
@media (min-width: 993px) {
  .nav-cta { display: flex; align-items: center; gap: 8px; }
}

  /* Mostrar hamburguesa */
  .nav-toggle {
    display: block;
  }

  /* Convertir nav en panel lateral */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: rgba(0, 0, 0, 0.637);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    z-index: 1050;
  }

  /* Activar menú */
  .nav.active {
    right: 0;
  }

  .nav a {
    color: white;
    font-size: 16px;
  }

  .nav a:hover {
    color: var(--accent-blue);
  }

  /* En mobile, si el header está scrolled (fondo blanco en desktop),
  mantener los enlaces del panel lateral en blanco para contraste */
  .header.scrolled .nav a {
    color: white;
  }

  /* Botón dentro del menú */
  .btn-primary {
    width: 100%;
    text-align: center;
  }

}

@media (max-width: 992px) {
  /* hide the header copy of the lang group on small screens (when it's still in header) */
  .container > .lang-group { display: none; }

  /* when the .lang-group is moved into the side .nav panel, style it so it appears below links */
  .nav .lang-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    flex-wrap: nowrap;
  }

  /* make mobile lang buttons touch-friendly when inside nav */
  .nav .lang-group #lang-es,
  .nav .lang-group #lang-en {
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
  }
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 90px; /* espacio para header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  background-image: url("../img/hero.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 53, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: 0 24px;
  color: white;
}

.hero-log {
  margin-bottom: 24px;
}

.hero-log-img {
  width: clamp(180px, 30vw, 340px);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
}

.hero h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-demo,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 400;
  transition: all 0.2s ease;
}

.btn-demo {
  padding: 13px 32px;
  border-radius: 10px;
  background-color: #4FA3D1;
  color: white;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.2s ease;
}

.btn-demo:hover {
  background: #4289af;
}

.btn-secondary {
  padding: 13px 32px;
  border-radius: 10px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-weight: 300;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}


@media (max-width: 768px) {

  .hero {
    padding-top: 70px;
    min-height: 100vh;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-demo,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

}

.caracteristicas {
  padding: 70px 20px;
  background-color: #ffffff;
}

.caracteristicas-container {
  max-width: 1200px;
  margin: auto;
}

.caracteristicas-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}

.caracteristicas-header h1 {
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.caracteristicas-header p {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text-muted);
  line-height: 1.6;
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.caracteristicas-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: left;
  transition: all 0.25s ease;
}

.caracteristicas-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.caracteristicas-card:hover {
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.caracteristicas p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.caracteristicas-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.caracteristicas-card:hover .caracteristicas-detail {
  max-height: 200px; /* suficiente para el texto */
  opacity: 1;
}

.caracteristicas-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.caracteristicas-card:hover {
  transform: translateY(-4px);
}
    
.caracteristicas-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 20px;
  transition: background-color 0.2s ease;
}

.caracteristicas-card:hover .caracteristicas-icon {
  background-color: #c8e3fa;
}

.caracteristicas-icon .icon-img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  display: block;
}

@media (max-width: 1100px) {

  .caracteristicas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

}

@media (max-width: 768px) {

  .caracteristicas-detail {
    max-height: none;
    opacity: 1;
  }

}

@media (max-width: 640px) {

  .caracteristicas {
    padding: 60px 20px;
  }

  .caracteristicas-header {
    margin-bottom: 50px;
  }

  .caracteristicas-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .caracteristicas-card {
    padding: 26px 20px;
  }

  .caracteristicas-card h3 {
    font-size: 18px;
  }

}

@media (max-width: 640px) {

  .caracteristicas-icon {
    width: 50px;
    height: 50px;
  }

  .caracteristicas-icon .icon-img {
    width: 30px;
    height: 30px;
  }

}

.video-section {
  padding: 100px 20px;
  background-color: var(--light-blue);
}

.video-container {
  max-width: 1100px;
  margin: auto;
}

.video-header {
  text-align: center;
  margin-bottom: 48px;
}

.video-header h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: #1f4a8a;
  margin-bottom: 12px;
}

.video-header p {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #6b7280;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #132f5c;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-wrapper {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {

  .video-section {
    padding: 70px 20px;
        margin-top: 10px;
  }

  .video-header {
    margin-bottom: 32px;
  }

  .video-wrapper {
    border-radius: 12px;
  }

}

.network-section {
  padding: 80px 20px 20px 20px;
  background-color: #ffffff;
}

.network-container {
  max-width: 1200px;
  margin: auto;
}

.network-header {
  text-align: center;
  margin-bottom: 30px;
}

.network-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.network-header p {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
}


#coverage-map {
  width: 100%;
  height: clamp(260px, 45vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.20);
}

.map-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

/* Oficinas */
.map-pin.office {
  background: #4fa3d1;
  border: 3px solid #1f4a8a;
  box-shadow:
    0 0 0 4px rgba(79,163,209,0.15),
    0 8px 16px rgba(0,0,0,0.15);
}

/* Presencia */
.map-pin.presence {
  background: #1f4a8a;
  border: 2px solid #ffffff;
  box-shadow:
    0 0 0 8px rgba(31,74,138,0.15);
}

.network-card {
  background-color: var(--bg-soft);
  border-radius: 16px;
  padding: 20px 32px;
}

.network-map {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.network-map img {
  max-width: 100%;
  height: auto;
  opacity: 0.9;
}

.network-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 32px;
  margin-bottom: 20px;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 37px);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.stat span {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {

  .network-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
    .network-section {
    padding: 30px 20px;
  }

  .network-card {
    padding: 24px;
  }

  .network-map {
    margin-bottom: 30px;
  }

}

.benefits-section {
  padding: 80px 20px;
  background: rgb(31, 74, 138);
}

.benefits-grid {
  max-width: 1350px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas:
    "intro intro b01 b02 b03"
    "b04   b05   b06 results results";
  gap: 20px;
}

.benefits-btn-primary,
.benefits-btn-secondary {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.benefits-btn-primary {
  background-color: var(--white);
  color: var(--primary-blue);
  border: solid 1px var(--white);
}
.benefits-btn-primary:hover {
  background-color: transparent;
  color: white;
}
.benefits-btn-secondary {
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
}
.benefits-btn-secondary:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.benefit-big-2 .benefits-btn-secondary {
  position: relative;
  z-index: 2;
}

.intro   { grid-area: intro; }
.results{ grid-area: results; }

.b01 { grid-area: b01; }
.b02 { grid-area: b02; }
.b03 { grid-area: b03; }
.b04 { grid-area: b04; }
.b05 { grid-area: b05; }
.b06 { grid-area: b06; }

.benefit-card {
  border-radius: 16px;
  padding: 35px 32px;
  background: #fff;
}

.benefit-card.benefit-big-1 {
  border: none;
  background: transparent;
  color: var(--primary-blue);
  padding: 10px 36px;
}

.benefit-card.benefit-big-1 h2 {
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.benefit-card.benefit-big-1 h2 span {
  color: var(--accent-blue);
}

.benefit-card.benefit-big-1 p {
  color: var(--white);
  margin-bottom: 10px;
}

.benefit-card.benefit-big-1 .benefits-btn-primary {
  background-color: var(--accent-blue);
  color: white;
  border: none;
}

.benefit-card.benefit-big-1 .benefits-btn-primary:hover {
  background-color: transparent;
  border: solid 1px var(--white);
}

.benefit-big-2 {
  position: relative;
  background-image: url("../img/resultado-comprobados.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-size: 105%;
}

.big2-overlay {
  position: absolute;
  inset: 0;
  background: rgba(54, 54, 54, 0.375);
  z-index: 1;
  border-radius: 16px;
}

.benefit-big-2 h2 {
  position: relative;
  color: var(--white);
  z-index: 2;
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
}
.benefit-big-2 p {
  color: var(--white);
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.benefit-card.small {
  height: 100%;
}

.benefit-card.small span {
  font-size: 30px;
  font-weight: 600;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 8px;
}

.benefit-card.small h3 {
  font-size: 16px;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.benefit-card.small p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Hover: sombra y movimiento hacia arriba */
.benefit-card.small {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, box-shadow;
  cursor: pointer;
}

.benefit-card.small:hover {
  transform: translateY(-8px);
}

@media (max-width: 1100px) {

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "intro intro"
      "b01 b02"
      "b03 b04"
      "b05 b06"
      "results results";
  }

}

@media (max-width: 768px) {

  .benefits-section {
    padding: 50px 20px;
  }

  .benefit-card {
    padding: 26px;
  }

}

@media (max-width: 600px) {

  .benefits-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "b01"
      "b02"
      "b03"
      "b04"
      "b05"
      "b06"
      "results";
  }

}

.sectors-section {
  padding: 40px 20px 80px;
  background: rgb(31, 74, 138);
}

.sectors-container {
  max-width: 1200px;
  margin: auto;
} 

.sectors-header {
  text-align: center;
  margin-bottom: 50px;
}

.sectors-header h2 {
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.sectors-menu {
  display: inline-flex;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 999px;
  justify-content: center;
  white-space: nowrap; /* evitar que los botones hagan wrap */
  -webkit-overflow-scrolling: touch; /* scroll más suave en iOS */
}

.sectors-menu button {
  border: none;
  background: transparent;
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.sectors-menu button.active {
  background: var(--accent-blue);
}

.sectors-menu button:hover {
  background: rgba(255,255,255,0.2);
}

.sectors-carousel {
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.sectors-track {
  display: flex;
  transition: transform 0.5s ease;
}

.sectors-card {
  flex: 0 0 100%;
  height: 560px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  color: white;
}

.sectors-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.sectors-bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.25);
}

.sectors-overlay {
  position: absolute;
  width: 100%;
  inset: 0;
  z-index: 2;
  background: rgba(31, 74, 138, 0.45);
}

.sectors-inner {
  position: relative;
  z-index: 3;
}

.sectors-tag {
  font-size: 20px;
  background: var(--accent-blue);
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 90px;
}

.sectors-content {
  max-width: 600px;
  margin-left: 60px;
}

.sectors-content h3 {
  font-size: clamp(32px, 6vw, 70px);
  margin-bottom: 15px;
}

.sectors-content p {
  font-size: clamp(15px, 2vw, 22px);
  opacity: 0.9;
}

.btn-sectors {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-sectors:hover {
  background: #3a8fc0;
}


@media (max-width: 768px) {

  section .sectors-section {
    padding: 20px 40px;
  }
  
  .sectors-content {
    margin-left: 0;
    max-width: 100%;
  }

    .sectors-card {
    height: 420px;
    padding: 30px;
  }

    .sectors-tag {
    font-size: 14px;
    padding: 8px 14px;
    margin-bottom: 30px;
  }

    .sectors-menu {
      display: flex;
      overflow-x: auto;
      gap: 6px;
      padding: 6px 8px; /* pequeño padding horizontal para respirar */
      max-width: 100%;
      scrollbar-width: none;
      justify-content: flex-start; /* alinear inicio para que no se centren y se oculten */
    }

  .sectors-menu::-webkit-scrollbar {
    display: none;
  }

  .sectors-menu button {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 6px 12px;
    white-space: nowrap;
  }

}


.modules-section {
  padding: 50px 20px;
  background-color: #ffffff;
}

.modules-container {
  max-width: 900px;
  margin: auto;
}

.modules-header {
  text-align: center;
  margin-bottom: 48px;
}

.modules-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.modules-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.modules-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-item {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.25s ease, transform 0.18s ease, border-color 0.2s ease;
}

/* Estilo cuando el item está abierto: borde azul, sombra y elevación */
.module-item.active {
  border-color: var(--primary-blue);
  box-shadow: 0 12px 30px rgba(31, 74, 138, 0.08);
  transform: translateY(-4px);
}

.module-header {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease, color 0.15s ease;
}

.module-item.active .module-header {
  /* sutil fondo para separar del contenido */
  background: linear-gradient(180deg, rgba(79,163,209,0.03), rgba(255,255,255,0));
}

.module-info {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.module-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  flex: 0 0 45px; /* no crecer ni encoger: forzar ancho fijo */
  background-color: #e9f2fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 18px;
}

.module-icon .icon-img {
  width: 24px; /* tamaño pequeño deseado */
  height: 24px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.module-tag {
  display: block;
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 2px;
}

.module-info strong {
  font-size: 15px;
  color: var(--primary-blue);
}

.module-arrow {
  font-size: 18px;
  color: var(--primary-blue);
  transition: transform 0.3s ease, color 0.2s ease;
}

.module-content {
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: var(--bg-soft);
  /* Animar solo max-height y usar easing más suave para evitar sensación de 'paro' al final */
  transition: max-height 0.36s cubic-bezier(0.22, 0.9, 0.35, 1);
}

.module-content .btn-more {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 12px; /* espacio inferior para evitar que se pegue al límite */
}

.module-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 12px 0;
}

/* Ajustes visuales cuando el contenido está abierto */
.module-item.active .module-content {
  /* max-height por JS se ajustará al contenido; esta regla sirve como fallback */
  max-height: 999px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(31, 74, 138, 0.04);
}

.module-item.active .module-arrow {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

/* Botón 'Ver más' dentro del contenido */
.module-content .btn-more {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.module-content .btn-more:hover {
  background: rgba(79,163,209,0.06);
}


.carrusel-c {
  width: 100%;
  margin: 30px auto 60px auto;
  padding: 0 2vw;
}

.carrusel-c h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--primary-blue);
}

.carrusel-c p {
  margin: auto;
  width: 80%;
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.slider-partners {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 1.5rem 0;
}

.slide-track-partners {
  display: flex;
  width: 100%; /* 5 logos × 2 repeticiones, 200px cada uno */
  animation: scroll-carrusel 25s linear infinite;
  gap: 0;
}

.slide-p {
  width: 200px; /* ajusta al tamaño real de tus imágenes */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.slide-p img {
  width: 130px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}

.slide-p img:hover {
  filter: grayscale(0) drop-shadow(0 2px 8px #40a8c5aa);
  opacity: 1;
}

@keyframes scroll-carrusel {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-3400px); } /* 200px  */
}

.contact-demo-section {
  padding: 60px 20px;
  background: var(--light-blue);
}

.contact-demo-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-card {
  background: linear-gradient(135deg, #1f4a8a, #335f9e);
  border-radius: 20px;
  padding: 40px;
    height: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.info-block {
  margin-bottom: 20px;
}

.info-block h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.info-block p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

.info-social span {
  font-size: 14px;
  display: block;
  margin-bottom: 12px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.social-circle:hover {
  background: var(--accent-blue);
}

.contact-calendar-area {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(31, 74, 138, 0.08);
}

.contact-title .mini-label {
  font-size: 13px;
  color: var(--accent-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.contact-title h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
  color: var(--primary-blue);
}

.contact-title h2 span {
  color: var(--accent-blue);
}

.contact-title p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.calendly-wrapper {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  background: #f1f6fb;
}

.calendly-inline-widget {
  width: 100%;
  height: 500px;
}

@media (max-width: 1024px) {

  .contact-demo-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {

  .contact-demo-section {
    padding: 70px 20px;
  }

  .contact-info-card {
    padding: 30px;
  }

  .contact-calendar-area {
    padding: 30px;
  }

}

@media (max-width: 600px) {

  .calendly-inline-widget {
    height: 420px;
  }

}

.footer {
  background-color: #1f4a8a;
  color: #ffffff;
  padding: 80px 20px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
}

.footer-ientry{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-ientry img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.8;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #dbe6f5;
  text-decoration: none;
  font-size: 14px;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.politicas-seccion {
  max-width: 1000px;
  margin: 120px auto 60px auto;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #222;
}

.contenedor-politicas h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: #111;
  font-weight: 700;
  text-align: center;
}

.contenedor-politicas p {
  padding: 1rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.contenedor-politicas strong {
  color: #000;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Language buttons: white border and horizontal grouping */
.lang-group, .lang-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

#lang-es, #lang-en, .lang-toggle .lang {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

#lang-es:hover, #lang-en:hover, .lang-toggle .lang:hover {
  background: rgba(255,255,255,0.06);
}

#lang-es.active, #lang-en.active, .lang-toggle .lang.active,
#lang-es[aria-pressed="true"], #lang-en[aria-pressed="true"] {
  background: #ffffff;
  color: var(--primary-blue);
  border-color: #ffffff;
}

@media (max-width: 992px) {
  .lang-group, .lang-toggle { justify-content: flex-start; }
  #lang-es, #lang-en { padding: 8px 12px; border-radius: 999px; }
}

.header.scrolled #lang-es,
.header.scrolled #lang-en,
.header.scrolled .lang-toggle .lang {
  color: var(--primary-blue);
  border-color: rgba(31,74,138,0.12);
  background: transparent;
}

.header.scrolled #lang-es.active,
.header.scrolled #lang-en.active,
.header.scrolled #lang-es[aria-pressed="true"],
.header.scrolled #lang-en[aria-pressed="true"] {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* If the lang group is inside the nav panel but header is scrolled (rare), keep nav styles (dark panel) */
.header.scrolled .nav .lang-group #lang-es,
.header.scrolled .nav .lang-group #lang-en {
  color: #ffffff;
  border-color: rgba(255,255,255,0.12);
}

