/* Reset scopeado al header (antes era * global y rompía la página) */
  .main-header, .main-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
  }

  .float_header {
    transition: all 5s ease;
    /* <- transición suave */
  }

  .active_stiky {
    left: 0px;
    position: fixed;
    z-index: 8;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Estilos del Header (base para mobile) */
  .main-header {
    background-color: #001542;
    /* Navy de la LP de Inglés */
    color: white;
    padding: 0;
    width: 100%;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    height: 84px;
  }

  /* --- LOGO (base para mobile) --- */
  .logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 200px;
  }

  .logo-container img {
    display: block;
    margin: auto;
    padding: 0;
    max-width: 100%;
    height: 64px;
    width: auto;
    flex: none;
  }

  .logo-icon {
    width: 45px;
    height: 45px;
    fill: white;
    /* Esto es solo un placeholder, aquí iría la imagen real del logo */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 5px;
  }

  .logo-text-group {
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.1;
  }

  .logo-title {
    font-weight: 600;
    /* Semi-bold */
    text-align: right;
    /* Alineación visual */
    padding-right: 12px;
  }

  .logo-divider {
    width: 1px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.5);
    /* Línea vertical sutil */
    margin-right: 12px;
  }

  .logo-subtitle {
    font-weight: 600;
  }

  /* --- NAVEGACIÓN (base para mobile) --- */
  .nav-container {
    display: flex;
    align-items: center;
    gap: 0;
    /* Gap 0 en mobile */
  }

  .nav-links ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
  }

  .nav-links .hs-menu-children-wrapper {
    display: none !important;
    /* Ocultar submenús por defecto con !important para override inline */
  }

  /* CAMBIO: Posicionamiento relativo para items con hijos */
  .nav-links li.hs-item-has-children {
    position: relative;
  }

  /* Estilos generales para items en submenús (aplican a todos) */
  .nav-links ul li ul.hs-menu-children-wrapper li {
    font-family: 'Outfit', sans-serif;
    color: #0d1d95 !important;
    padding: 10px 10px !important;
    transition: 0.3s;
  }

  .nav-links ul li ul.hs-menu-children-wrapper li a {
    color: #0d1d95 !important;
    font-family: 'Outfit', sans-serif;
  }

  .nav-links ul li ul.hs-menu-children-wrapper li:hover {
    border-top: 1px solid #d0d5de;
    border-bottom: 1px solid #d0d5de;
  }

  .nav-links ul li ul.hs-menu-children-wrapper li:first-child:hover {
    border-top: 0;
    border-radius: 12px 12px 0 0;
    background-color: transparent !important;
  }

  .nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 10px;
    transition: opacity 0.2s;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
  }

  .nav-links ul li.hs-menu-item.hs-menu-depth-1>a:hover {
    opacity: 0.8;
    background-color: var(--bg-color-btn-menu);
    border-radius: 50px;
    padding: 10px 20px;
  }

  /* --- BOTÓN VERDE (CTA) (base para mobile) --- */
  .cta-button {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color-btn, #7BE24A);
    /* Verde de la LP; editable vía campo btn_color */
    color: #001542;
    /* Texto azul oscuro */
    padding: 10px 15px;
    /* Padding más pequeño en mobile */
    text-decoration: none;
    font-weight: 600;
    /* Tamaño más pequeño en mobile */
    font-size: 12px;
    /* Tamaño más pequeño en mobile */
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    /* Evita que el texto se rompa en dos líneas */
  }

  .cta-button:hover {
    background-color: #92db63;
    /* Un poco más oscuro al pasar el mouse */
  }

  .cta-button .arrow {
    font-size: 18px;
    font-weight: bold;
  }

  /* ===== MENÚ MOBILE (base: visible en mobile) ===== */
  /* Esconde el menú desktop en mobile */
  .nav-links:not(.mobile) {
    display: none;
  }

  /* Simplificar logo en mobile */
  .logo-title,
  .logo-divider {
    display: none;
  }

  /* Ocultar CTA en mobile (asumiendo que se mueve o esconde) */
  .cta-button {
    display: none;
  }

  /* Mostrar toggle en mobile */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 99999;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: .3s;
  }

  /* Animación hamburguesa */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Menú mobile contenedor */
  .nav-links.mobile {
    display: none;
    /* Oculto por defecto, se muestra con JS */
  }

  .nav-links.mobile.open {
    display: block !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: #001542;
    padding: 80px 20px;
    transition: right .3s ease;
    z-index: 9999;
    overflow-y: auto;
    /* ¡CAMBIO! Habilitar scroll vertical si el contenido excede la altura */
  }

  .nav-links.mobile ul {
    list-style: none;
    padding: 0;
    flex-direction: column;
    gap: 0;
  }

  .nav-links.mobile a {
    font-size: 20px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    text-align: left;
    padding: 0;
  }

  .nav-links.mobile ul li.hs-menu-item.hs-menu-depth-1 {
    position: relative;
    display: block;
    margin: 0 0 10px;
    padding: 0;
    font-size: 15px;
  }

  .nav-links.mobile ul li.hs-menu-item.hs-menu-depth-1 a {
    font-size: 15px;
    color: #fff !important;
  }

  .nav-links.mobile ul li ul.hs-menu-children-wrapper {
    margin: 20px 0 0;
    padding-left: 20px;
    display: none !important;
    /* Ocultar por defecto en mobile con !important */
  }

  .nav-links.mobile ul li.open ul.hs-menu-children-wrapper {
    display: block !important;
    /* Mostrar cuando open */
  }

  .nav-links.mobile ul li ul.hs-menu-children-wrapper li {
    margin: 0;
  }

  .nav-links.mobile ul li ul.hs-menu-children-wrapper li a {
    font-size: 15px;
    text-align: left;
    padding: 0 !important;
    color: #fff !important;
  }

  .nav-links ul li.hs-item-has-children:hover>ul.hs-menu-children-wrapper,
  .nav-links ul ul li.hs-item-has-children:hover>ul.hs-menu-children-wrapper .nav-links ul li ul.hs-menu-children-wrapper li:hover {
    background-color: none !important;
  }

  .nav-links ul li.open ul li.hs-item-has-children>ul.hs-menu-children-wrapper {
    display: none !important;
    visibility: hidden;
  }

  .nav-links ul li.open ul li.hs-item-has-children>ul.hs-menu-children-wrapper.open {
    display: block !important;
    visibility: visible;
  }

  /* Overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9998;
  }

  .mobile-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* ===== AJUSTES PARA PANTALLAS MÁS GRANDES (min-width) ===== */
  /* Para desktops base (>900px) */
  @media (min-width: 901px) {

    /* Mostrar menú desktop */
    .nav-links:not(.mobile) {
      display: block;
    }

    /* Ocultar toggle y mobile menu */
    .menu-toggle {
      display: none;
    }

    .nav-links.mobile {
      display: none !important;
    }

    /* Mostrar CTA full (medidas del nav de la LP) */
    .cta-button {
      font-family: 'Outfit', sans-serif;
      display: flex;
      padding: 11px 26px;
      font-size: 18px;
      border-radius: 10px;
    }

    /* Mostrar logo full */
    .logo-title,
    .logo-divider {
      display: block;
    }

    /* Nav general para desktop */
    .nav-container {
      gap: 30px;
    }

    .nav-links ul {
      display: flex;
      {#gap: 22px;#}
      flex-direction: row;
    }

    {#.nav-links ul li.hs-menu-item.hs-menu-depth-1 {
      padding: 20px;
    }#}

    /* Submenús en desktop (hover) */
    .nav-links ul li ul.hs-menu-children-wrapper li:hover {
      border-top: 1px solid #d0d5de;
      border-bottom: 1px solid #d0d5de;
      background-color: #f6f7fa;
    }

    .nav-links ul li.hs-item-has-children:hover>ul.hs-menu-children-wrapper {
      display: flex !important;
      /* Flex para columnas (Industrias y Áreas) */
      background-color: #fff !important;
      gap: 0;
      flex-direction: column;
      border: 1px solid #d1d5de;
      border-radius: 12px;
      position: absolute;
      z-index: 1;
      top: 60px;
      /* Ajusta según altura del nav */
      left: 50%;
      transform: translateX(-50%);
      /* Centrado */
      width: auto;
      min-width: 250px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      justify-content: space-around;
      /* Espacia las columnas */
    }

    .nav-links ul ul li.hs-item-has-children:hover>ul.hs-menu-children-wrapper {
      display: block !important;
      background-color: #fff !important;
      border: 1px solid #d1d5de;
      border-radius: 12px;
      position: absolute;
      z-index: 2;
      top: 0;
      left: 90%;
      /* Al lado derecho */
      transform: translateX(0%);
      /* left */
      width: 100%;
      max-width: 400px;
      padding: 0px;
    }

    .nav-links ul ul li.hs-item-has-children:hover>ul.hs-menu-children-wrapper li a {
      padding: 0px;
    }
  }

  /* Ajustes para >1100px */
  @media (min-width: 1101px) {
    {#.nav-links ul li.hs-menu-item.hs-menu-depth-1 {
      padding: 20px;
    }#}
  }

  /* Ajustes para >1200px */
  @media (min-width: 1201px) {
    {#.nav-links ul {
      gap: 22px;
    }#}

    .nav-links ul li.hs-menu-item.hs-menu-depth-1 {
      display: inline-flex;
      align-items: center;
    }

    .nav-container {
      gap: 30px;
    }
  }