/* =========================================================
   CESEHSA - Header corporativo
   Bootstrap 5.3 + FontAwesome
   ========================================================= */

:root {
  /* Brand */
  --color-blue-900: #1e3056;
  --color-blue-800: #1a3768;
  --color-green-500: #00953A;
  --color-green-600: #028032;
  --color-orange-500: #ffa01e;
  --color-purple-500: #3c00b4;

  /* Text */
  --color-text: #515151;
  --color-muted: #687386;
  --color-white: #ffffff;

  /* Surfaces */
  --surface-page: #f6f7f9;
  --surface-section: #eef1f4;
  --surface-main: #ffffff;
  --surface-liquid: rgba(255, 255, 255, 0.72);
  --surface-liquid-strong: rgba(255, 255, 255, 0.88);
  --surface-hover: rgba(120, 120, 120, 0.1);
  --surface-blue-soft: rgba(18, 40, 76, 0.06);

  /* Borders */
  --border-soft: rgba(18, 40, 76, 0.1);
  --border-medium: rgba(18, 40, 76, 0.16);
  --border-glass: rgba(255, 255, 255, 0.72);
  --glass-highlight: rgba(255, 255, 255, 0.9);

  /* Shadows */
  --shadow-navbar: 0 18px 48px rgba(18, 40, 76, 0.12);
  --shadow-navbar-scrolled: 0 18px 54px rgba(18, 40, 76, 0.16);
  --shadow-dropdown: 0 24px 60px rgba(18, 40, 76, 0.15);
  --shadow-button: 0 12px 28px rgba(18, 40, 76, 0.22);

  /* Layout */
  --header-max-width: 1400px;
  --header-scrolled-width: 1376px;
  --header-side-space: clamp(14px, 2vw, 32px);
  --main-navbar-height: 76px;
  --main-navbar-height-scrolled: 72px;
  --top-header-height: 38px;
  --radius-large: 24px;
  --radius-medium: 18px;
  --radius-small: 12px;
  --radius-pill: 999px;

  /* Motion */
  --transition-header: 620ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 550ms ease;
  --transition-fast: 220ms ease;

  /* Tamaño menu para altura de ScrollTrigger Home*/
  --floating-menu-height: 95px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

@supports not (overflow: clip) {

  html,
  body {
    overflow-x: hidden;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background: var(--surface-page);
}

body {
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Ubuntu", sans-serif;
}

h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  font-weight: 450;
  color: var(--color-blue-900);
}

@media (max-width: 575.98px) {
    h2 {
        font-size: 30px;
        text-align: center;
    }
}

h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 450;
  color: var(--color-blue-900);
}

img {
  max-width: 100%;
}

/* =========================================================
   Header wrapper
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1050;
  padding: 16px var(--header-side-space) 0;
  transition:
    padding var(--transition-header),
    transform var(--transition-header);
}

.site-header>.top-header,
.site-header>.main-navbar {
  width: min(100%, var(--header-max-width));
  margin-inline: auto;
}

.header-container {
  max-width: 100%;
  padding-inline: clamp(14px, 1.5vw, 22px);
}

/* =========================================================
   Top header - Liquid Glass
   ========================================================= */

.top-header {
  max-height: var(--top-header-height);
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height var(--transition-header),
    opacity 420ms ease,
    transform var(--transition-header);
  will-change: max-height, opacity, transform;
}

.top-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--top-header-height);
  gap: 20px;
  padding: 5px 14px;
  color: var(--color-blue-900);
  border: 1px solid var(--border-glass);
  border-bottom: 0;
  border-radius: var(--radius-medium) var(--radius-medium) 0 0;
  background: var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 10px 26px rgba(18, 40, 76, 0.08);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.top-contact {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-blue-900);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.top-link:hover {
  color: var(--color-green-600);
  transform: translateY(-1px);
}

.top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-blue-900);
  border-radius: var(--radius-pill);
  background: var(--surface-blue-soft);
}

.top-icon-whatsapp {
  color: var(--color-green-600);
}

.top-divider {
  width: 1px;
  height: 18px;
  background: var(--border-medium);
}

/* =========================================================
   Top header - Login dropdown
   Misma lógica visual del menú principal
   ========================================================= */

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 12px;
}

.top-actions .top-link i {
  font-size: 0.95rem;
}

.top-login-dropdown {
  position: relative;
}

.top-login-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.top-login-toggle.dropdown-toggle::after {
  margin-left: 4px;
  border-top-color: currentColor;
  font-size: 0.72rem;
  transition: transform var(--transition-fast);
}

.top-login-dropdown:hover>.dropdown-toggle::after,
.top-login-dropdown:focus-within>.dropdown-toggle::after,
.top-login-toggle.show::after {
  transform: rotate(180deg);
}

/* Dropdown del menú secundario con el mismo estilo del menú principal */
.top-header .dropdown-menu {
  display: block;
  position: absolute;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--color-green-500);
  border-radius: 6px;
  background: var(--surface-main);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 190ms ease,
    visibility 190ms ease,
    transform 190ms ease;
  z-index: 9999;
}

/* Puente invisible igual que en el menú principal */
.top-header .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
  background: transparent;
}

/* Apertura por hover/focus igual que el menú principal */
.top-header .dropdown:hover>.dropdown-menu,
.top-header .dropdown:focus-within>.dropdown-menu,
.top-header .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.top-login-menu {
  min-width: 210px;
}

.top-login-menu .dropdown-item i {
  width: 16px;
  color: var(--color-green-600);
  font-size: 0.84rem;
}

/* Permite que el dropdown del top header se muestre por encima */
.top-header {
  position: relative;
  z-index: 40;
}

.main-navbar {
  position: relative;
  z-index: 50;
}

.top-header:has(.top-login-dropdown:hover),
.top-header:has(.top-login-dropdown:focus-within),
.top-header:has(.dropdown-menu.show) {
  overflow: visible;
  z-index: 2000;
}

.top-header:has(.top-login-dropdown:hover) .top-header-inner,
.top-header:has(.top-login-dropdown:focus-within) .top-header-inner,
.top-header:has(.dropdown-menu.show) .top-header-inner {
  position: relative;
  z-index: 2001;
}



/* =========================================================
   Main navbar
   ========================================================= */

.main-navbar {
  min-height: var(--main-navbar-height);
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  background: var(--surface-main);
  box-shadow: var(--shadow-navbar);
  transition:
    width var(--transition-header),
    min-height var(--transition-header),
    border-radius var(--transition-header),
    box-shadow var(--transition-header),
    transform var(--transition-header),
    background var(--transition-header);
  will-change: width, min-height, border-radius, box-shadow, transform;
}

.desktop-navbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: var(--main-navbar-height);
  gap: clamp(22px, 2.6vw, 46px);
  transition:
    min-height var(--transition-header),
    gap var(--transition-header);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: clamp(9px, 0.8vw, 16px);
}

.left-menu {
  justify-content: flex-start;
}

.right-menu {
  justify-content: flex-end;
}

/* Íconos del menú derecho más compactos */
.right-menu .icon-dropdown .nav-icon {
  padding-inline: 8px;
  min-width: 36px;
}

/* Reduce el espacio solo entre íconos consecutivos */
.right-menu .icon-dropdown+.icon-dropdown {
  margin-left: -25px;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 7px;
  padding: 0 15px;
  color: var(--color-text);
  font-size: 0.93rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  background: var(--color-green-500);
  opacity: 0;
  transform: scaleX(0.25);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show,
.navbar-nav .nav-link:focus-visible {
  color: var(--color-blue-900);
  transform: translateY(-1px);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.show::before,
.navbar-nav .nav-link:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.dropdown-toggle::after {
  margin-left: 2px;
  border-top-color: currentColor;
  transition: transform var(--transition-fast);
}

.dropdown:hover>.dropdown-toggle::after,
.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* =========================================================
   Logo
   ========================================================= */

.navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  text-decoration: none;
}

.desktop-brand {
  justify-self: center;
  padding: 0 20px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 50px;
  max-width: 220px;
  object-fit: contain;
  transition:
    height var(--transition-header),
    max-width var(--transition-header),
    transform var(--transition-header);
}

.mobile-brand .brand-logo,
.offcanvas-brand .brand-logo {
  height: 43px;
  max-width: 178px;
}

/* =========================================================
   Icons and CTA
   ========================================================= */

.nav-icon {
  width: 42px;
  padding-inline: 0 !important;
}

.nav-icon i {
  font-size: 0.98rem;
}

.cta-item {
  margin-left: 2px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 53px;
  gap: 9px;
  padding: 0 19px;
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid var(--color-blue-900);
  border-radius: var(--radius-small);
  background: var(--color-blue-900);
  box-shadow: var(--shadow-button);
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-contact i {
  font-size: 0.82rem;
  transition: transform var(--transition-fast);
}

.btn-contact:hover,
.btn-contact:focus-visible {
  color: white;
  border-color: var(--color-green-500);
  background: var(--color-green-500);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(103, 179, 46, 0.22);
}

.btn-contact:hover i,
.btn-contact:focus-visible i {
  transform: translateX(2px);
}

/* =========================================================
   Dropdowns
   ========================================================= */

.main-navbar .dropdown-menu {
  display: block;
  position: absolute;
  margin-top: 20px;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--color-green-500);
  border-radius: 6px;
  background: var(--surface-main);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 190ms ease,
    visibility 190ms ease,
    transform 190ms ease;
}

/* Puente invisible para que el dropdown no se cierre al bajar el cursor */
.main-navbar .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: transparent;
}

.main-navbar .dropdown:hover>.dropdown-menu,
.main-navbar .dropdown:focus-within>.dropdown-menu,
.main-navbar .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.clean-dropdown {
  min-width: 236px;
}

.language-dropdown {
  min-width: 160px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-small);
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  color: var(--color-blue-900);
  background: var(--surface-hover);
  transform: translateX(2px);
}

.dropdown-item.active {
  font-weight: 800;
}

/* =========================================================
   Products cascading mega menu
   ========================================================= */

.products-nav {
  position: relative;
}

/* Puente invisible fuera del dropdown.
   Este NO se recorta con overflow hidden. */
.products-nav::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 20px;
  display: none;
  background: transparent;
}

.products-nav:hover::after,
.products-nav.is-open::after {
  display: block;
}

.main-navbar .products-nav>.products-mega {
  --product-col: 270px;
  --product-gap: 18px;
  --preview-col: 400px;
  --products-dropdown-width: calc(var(--product-col) + 28px);

  left: -80px;
  top: 100%;
  width: min(var(--products-dropdown-width), calc(100vw - 48px));
  min-width: 0;
  margin-top: 20px;
  padding: 14px;
  overflow: hidden;
  transition:
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 190ms ease,
    visibility 190ms ease,
    transform 190ms ease;
}

.main-navbar .products-nav.is-open>.products-mega,
.main-navbar .products-nav:hover>.products-mega,
.main-navbar .products-nav:focus-within>.products-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Anchos por profundidad */

.main-navbar .products-nav>.products-mega.is-depth-1 {
  --products-dropdown-width: calc(var(--product-col) + 28px);
}

.main-navbar .products-nav>.products-mega.is-depth-2,
.main-navbar .products-nav>.products-mega:has(.product-level-one > .product-node.is-active > .product-level-two) {
  --products-dropdown-width: calc((var(--product-col) * 2) + var(--product-gap) + 28px);
}

.main-navbar .products-nav>.products-mega.is-depth-3,
.main-navbar .products-nav>.products-mega:has(.product-level-two > .product-node.is-active > .product-level-three) {
  --products-dropdown-width: calc((var(--product-col) * 3) + (var(--product-gap) * 2) + 28px);
}

.main-navbar .products-nav>.products-mega.is-depth-4,
.main-navbar .products-nav>.products-mega:has(.product-preview-panel.is-active) {
  --products-dropdown-width: calc((var(--product-col) * 3) + (var(--product-gap) * 3) + var(--preview-col) + 28px);
}



.product-menu {
  position: relative;
  min-height: 372px;
  width: calc((var(--product-col) * 3) + (var(--product-gap) * 3) + var(--preview-col));
}

.product-level {
  display: grid;
  align-content: start;
  gap: 0;
  width: var(--product-col);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-level-one {
  position: relative;
  z-index: 4;
}

.product-level-two,
.product-level-three {
  position: absolute;
  top: 0;
  min-height: 100%;
  padding-left: var(--product-gap);
  border-left: 1px solid var(--border-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 170ms ease 70ms,
    visibility 170ms ease 70ms,
    transform 170ms ease 70ms;
}

.product-level-two {
  left: calc(var(--product-col) + var(--product-gap));
  z-index: 3;
}

.product-level-three {
  left: calc(var(--product-col) + var(--product-gap));
  z-index: 2;
}

.product-node,
.product-leaf {
  position: static;
}

.product-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 11px;
  padding: 16px 18px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  -webkit-text-stroke: 0.15px currentColor;
  border-radius: 5px;
  background: transparent;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.product-link:hover,
.product-node:hover>.product-link,
.product-node:focus-within>.product-link,
.product-leaf:hover>.product-link,
.product-leaf:focus-within>.product-link,
.product-node.is-active>.product-link,
.product-leaf.is-active>.product-link {
  color: var(--color-blue-900);
  background: var(--surface-hover);
  transform: translateX(2px);
}

.product-leaf strong {
  font-weight: 600;
  color: var(--color-blue-900)
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: var(--color-blue-800);
  border: 1px solid rgba(26, 55, 104, 0.24);
  border-radius: 11px;
  background: rgba(26, 55, 104, 0.1);
}

.product-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.product-node:hover>.product-link .product-icon img,
.product-node:focus-within>.product-link .product-icon img,
.product-node.is-active>.product-link .product-icon img {
  filter: brightness(0) invert(1);
}

.product-arrow {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 0.72rem;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.product-node:hover>.product-link .product-arrow,
.product-node:focus-within>.product-link .product-arrow,
.product-node.is-active>.product-link .product-arrow {
  color: var(--color-green-600);
  transform: translateX(2px);
}

/* =========================================================
   Megamenú de Productos: icono azul al activarse
   ========================================================= */

/* Animación del contenedor del icono */
.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu>.product-link>.product-icon {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Hover, foco y categoría activa */
.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu:hover>.product-link>.product-icon,

.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu:focus-within>.product-link>.product-icon,

.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu.is-active>.product-link>.product-icon {
  color: #fff;
  border-color: var(--color-blue-800);
  background: var(--color-blue-800);
  transform: scale(1.04);
  box-shadow: 0 5px 13px rgba(18, 40, 76, 0.16);
}

/* Fondo azul suave para la categoría activa */
.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu.is-active>.product-link {
  background: color-mix(in srgb,
      var(--color-blue-800) 8%,
      transparent);
}

/* =========================================================
   Fondo activo: megamenú de Productos
   Columnas 1, 2 y 3
   ========================================================= */

.product-menu:not(.projects-menu) .product-level> :is(.product-node, .product-leaf).is-active>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      var(--color-blue-800) 9%,
      transparent);
}


/* =========================================================
   Fondo activo: megamenú de Proyectos
   Columnas 1 y 2
   ========================================================= */

.projects-menu .product-level> :is(.product-node, .product-leaf).is-active>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      var(--color-green-600) 7%,
      transparent);
}

/* Mostrar subniveles */

.product-node.is-active>.product-level-two,
.product-node.is-active>.product-level-three {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* =========================================================
   Product third level scroll + global preview panel
   ========================================================= */

.product-level-three {
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.product-level-three::-webkit-scrollbar {
  width: 6px;
}

.product-level-three::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 40, 76, 0.22);
}

.product-level-three::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 40, 76, 0.34);
}

.product-level-three::-webkit-scrollbar-track {
  background: transparent;
}

.product-preview-panel {
  position: absolute;
  top: 0;
  left: calc((var(--product-col) * 3) + (var(--product-gap) * 3));
  z-index: 5;
  display: block;
  width: var(--preview-col);
  min-height: 100%;
  padding-left: var(--product-gap);
  border-left: 1px solid var(--border-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition:
    opacity 170ms ease 80ms,
    visibility 170ms ease 80ms,
    transform 170ms ease 80ms;
}

.product-preview-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--product-gap) * -1);
  width: var(--product-gap);
  background: transparent;
}

.product-preview-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.product-preview-panel-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-page);
}

.product-preview-panel-title {
  display: block;
  margin-bottom: 7px;
  color: var(--color-blue-900);
  font-size: 1rem;
  line-height: 1.25;
}

.product-preview-panel-text {
  display: block;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}


@media (max-width: 1399.98px) {
  .main-navbar .products-nav>.products-mega {
    --product-col: 250px;
    --product-gap: 14px;
    --preview-col: 260px;

    width: min(var(--products-dropdown-width), calc(100vw - 32px));
  }

  .product-link {
    font-size: 0.86rem;
    padding-inline: 10px;
  }

  .product-icon {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
}

/*********************** Scroll para la columna 2 del megamenú de Proyectos **************************/
.projects-menu .product-level-two {
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 40, 76, 0.22) transparent;
}

.projects-menu .product-level-two::-webkit-scrollbar {
  width: 6px;
}

.projects-menu .product-level-two::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 40, 76, 0.22);
}

.projects-menu .product-level-two::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 40, 76, 0.34);
}

.projects-menu .product-level-two::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================================================
   Megamenú de Proyectos: diferenciación visual
   ========================================================= */

/* Etiqueta de la primera columna */
.projects-menu .projects-column-heading {
  list-style: none;
  padding: 2px 18px 11px;
  color: var(--color-green-600);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Iconos de las seis áreas de ingeniería */
.projects-menu .product-level-one>.product-node.has-submenu>.product-link>.product-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;

  color: var(--color-green-600);
  border: 1px solid var(--color-green-600);
  border-radius: 50%;
  background: transparent;

  box-shadow: none;

  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

/* Tamaño del símbolo interior */
.projects-menu .product-level-one>.product-node.has-submenu>.product-link>.product-icon i {
  font-size: 0.92rem;
}

/* Hover, foco y categoría activa */
.projects-menu .product-level-one>.product-node.has-submenu:hover>.product-link>.product-icon,

.projects-menu .product-level-one>.product-node.has-submenu:focus-within>.product-link>.product-icon,

.projects-menu .product-level-one>.product-node.has-submenu.is-active>.product-link>.product-icon {
  color: #fff;
  border-color: var(--color-green-500);
  background: var(--color-green-500);
  transform: scale(1.04);
  box-shadow: 0 5px 13px rgba(18, 40, 76, 0.14);
}

/* Suavizar el fondo de la categoría activa */
.projects-menu .product-level-one>.product-node.has-submenu.is-active>.product-link {
  background: color-mix(in srgb,
      var(--color-green-600) 8%,
      transparent);
}

/* Acceso final: Ver todos los proyectos */
.projects-menu .projects-all-link {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.projects-menu .projects-all-link>.product-link>.product-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;

  color: #fff;
  border-color: var(--color-blue-900);
  border-radius: 50%;
  background: var(--color-blue-900);

  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.projects-menu .projects-all-link:hover>.product-link>.product-icon,

.projects-menu .projects-all-link:focus-within>.product-link>.product-icon {
  border-color: var(--color-green-600);
  background: var(--color-green-600);
  transform: translate(1px, -1px);
}


/* Ruta actual: Productos */
.product-menu:not(.projects-menu) .product-level> :is(.product-node, .product-leaf).is-current>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      var(--color-blue-800) 8%,
      transparent);
}

/* Ruta actual: Proyectos */
.projects-menu .product-level> :is(.product-node, .product-leaf).is-current>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      var(--color-green-600) 8%,
      transparent);
}

/* Resalta ligeramente la opción final de la ruta */
.product-menu .product-level>.is-current-page>.product-link {
  font-weight: 600;
}

.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu.is-current>.product-link>.product-icon {
  color: #fff;
  border-color: var(--color-blue-800);
  background: var(--color-blue-800);
  box-shadow: 0 5px 13px rgba(18, 40, 76, 0.16);
}

.projects-menu .product-level-one>.product-node.has-submenu.is-current>.product-link>.product-icon {
  color: #fff;
  border-color: var(--color-green-600);
  background: var(--color-green-600);
  box-shadow: 0 5px 13px rgba(18, 40, 76, 0.14);
}

/* =========================================================
   Productos: diferencia entre hover y ruta actual
   ========================================================= */

/* Hover y exploración temporal */
.product-menu:not(.projects-menu) .product-level> :is(.product-node, .product-leaf):not(.is-current):is( :hover,
  :focus-within,
  .is-active)>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      var(--color-blue-800) 7%,
      transparent);
  transform: translateX(1px);
}

/* Categorías que forman parte de la ruta actual */
.product-menu:not(.projects-menu) .product-level> :is(.product-node, .product-leaf).is-current>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      var(--color-blue-800) 12%,
      transparent);
  transform: translateX(2px);
}

/* Página actual específica */
.product-menu:not(.projects-menu) .product-level> :is(.product-node, .product-leaf).is-current-page>.product-link {
  background: color-mix(in srgb,
      var(--color-blue-800) 16%,
      transparent);
  font-weight: 600;
}

/* Icono durante hover o exploración temporal */
.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu:not(.is-current):is( :hover,
  :focus-within,
  .is-active)>.product-link>.product-icon {
  color: white;
  border-color: rgba(26, 55, 104, 0.34);
  background: rgba(30, 48, 86, 0.845);
  transform: scale(1.02);
  box-shadow: none;
}

/* Icono perteneciente a la ruta actual */
.product-menu:not(.projects-menu) .product-level-one>.product-node.has-submenu.is-current>.product-link>.product-icon {
  color: #fff;
  border-color: var(--color-blue-800);
  background: var(--color-blue-800);
  transform: scale(1.04);
  box-shadow: 0 5px 13px rgba(18, 40, 76, 0.16);
}

/* =========================================================
   Proyectos: diferencia entre hover y ruta actual
   Color principal: #00953A
   ========================================================= */

/* Hover o exploración temporal */
.projects-menu .product-level> :is(.product-node, .product-leaf):not(.is-current):is( :hover,
  :focus-within,
  .is-active)>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      #00953A 7%,
      transparent);
  transform: translateX(1px);
}


/* Elementos que forman parte de la ruta actual */
.projects-menu .product-level> :is(.product-node, .product-leaf).is-current>.product-link {
  color: var(--color-blue-900);
  background: color-mix(in srgb,
      #00953A 12%,
      transparent);
  transform: translateX(2px);
}


/* Página actual específica */
.projects-menu .product-level> :is(.product-node, .product-leaf).is-current-page>.product-link {
  background: color-mix(in srgb,
      #00953A 16%,
      transparent);
  font-weight: 500;
}


/* Icono durante hover o exploración temporal */
.projects-menu .product-level-one>.product-node.has-submenu:not(.is-current):is( :hover,
  :focus-within,
  .is-active)>.product-link>.product-icon {
  color: #00953A;
  border-color: rgba(0, 149, 58, 0.34);
  background: rgba(0, 149, 58, 0.18);
  transform: scale(1.02);
  box-shadow: none;
}


/* Icono perteneciente a la ruta actual */
.projects-menu .product-level-one>.product-node.has-submenu.is-current>.product-link>.product-icon {
  color: #fff;
  border-color: #00953A;
  background: #00953A;
  transform: scale(1.04);
  box-shadow: 0 5px 13px rgba(0, 149, 58, 0.18);
}

.product-menu
.product-level-one
> .product-node.has-submenu:is(
    :hover,
    :focus-within,
    .is-active,
    .is-current,
    .is-current-page
)
> .product-link
> .product-icon img {
    filter: brightness(0) invert(1);
}

.projects-menu
.product-level-one
> .product-node.has-submenu:not(.is-current):is(
    :hover,
    :focus-within,
    .is-active
)
> .product-link
> .product-icon {
    color: #fff;
    border-color: rgba(0, 149, 57, 0.8);
    background: rgba(0, 149, 57, 0.8);
    transform: scale(1.02);
    box-shadow: none;
}

/* =========================================================
   Scrolled state
   ========================================================= */

.site-header.is-scrolled {
  padding-top: 25px;
}

.site-header.is-scrolled .top-header {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.site-header.is-scrolled .main-navbar {
  width: min(100%, var(--header-scrolled-width));
  min-height: var(--main-navbar-height-scrolled);
  border-radius: var(--radius-large);
  background: var(--surface-main);
  box-shadow: var(--shadow-navbar-scrolled);
  transform: translateY(-1px);
}

.site-header.is-scrolled .desktop-navbar {
  min-height: var(--main-navbar-height-scrolled);
}

.site-header.is-scrolled .desktop-brand .brand-logo {
  height: 47px;
  max-width: 208px;
  transform: translateY(-1px);
}

/*** Traductor ****/
.flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  object-fit: cover;
  border-radius: 2px;
}

.language-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gt-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   Projects cascading mega menu
   Dos columnas de navegación + vista previa
   ========================================================= */

.projects-nav {
  position: relative;
}

/* Puente entre el enlace y el dropdown */
.projects-nav::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 20px;
  display: none;
  background: transparent;
}

.projects-nav:hover::after,
.projects-nav.is-open::after {
  display: block;
}

/* Dropdown principal */
.main-navbar .projects-nav>.projects-mega {
  --product-col: 270px;
  --project-second-col: 310px;
  --product-gap: 18px;
  --preview-col: 600px;
  --projects-menu-height: 540px;
  --projects-menu-height-collapsed: 270px;

  --projects-dropdown-width: calc(var(--product-col) + 28px);

  left: 0;
  top: 100%;
  width: min(var(--projects-dropdown-width),
      calc(100vw - 48px));
  min-width: 0;
  margin-top: 20px;
  padding: 14px;
  overflow: hidden;

  transition:
    width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 190ms ease,
    visibility 190ms ease,
    transform 190ms ease;
}

/* Abrir megamenú */
.main-navbar .projects-nav.is-open>.projects-mega,
.main-navbar .projects-nav:hover>.projects-mega,
.main-navbar .projects-nav:focus-within>.projects-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* =========================================================
   Anchos por profundidad
   ========================================================= */
.main-navbar .projects-nav>.projects-mega:where(.is-depth-1) {
  --projects-dropdown-width:
    calc(var(--product-col) + 28px);
}

/* Categorías + proyectos */
.main-navbar .projects-nav>.projects-mega:where(.is-depth-2,
  :has(.product-level-one > .product-node.is-active > .product-level-two)) {
  --projects-dropdown-width:
    calc(var(--product-col) + var(--project-second-col) + var(--product-gap) + 28px);
}

/* Categorías + proyectos + vista previa */
.main-navbar .projects-nav>.projects-mega:where(.is-depth-3,
  .is-depth-4,
  :has(.product-preview-panel.is-active)) {
  --projects-dropdown-width:
    calc(var(--product-col) + var(--project-second-col) + (var(--product-gap) * 2) + var(--preview-col) + 28px);
}


/* =========================================================
   Geometría interior de Proyectos
   ========================================================= */

.projects-menu {
  position: relative;
  width:
    calc(var(--product-col) + var(--project-second-col) + (var(--product-gap) * 2) + var(--preview-col));
  height: var(--projects-menu-height);
  min-height: var(--projects-menu-height);
  transition:
    height 260ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Altura reducida cuando solo se muestra la primera columna */
.main-navbar .projects-nav>.projects-mega.is-depth-1 .projects-menu {
  height: var(--projects-menu-height-collapsed);
  min-height: var(--projects-menu-height-collapsed);
}

.projects-menu .product-level-one {
  height: var(--projects-menu-height-collapsed);
  min-height: var(--projects-menu-height-collapsed);
  max-height: var(--projects-menu-height-collapsed);
}

/* Dar el nuevo ancho únicamente a la segunda columna */
.projects-menu .product-level-two {
  width: var(--project-second-col);
  min-width: var(--project-second-col);
  max-width: var(--project-second-col);
  height: var(--projects-menu-height);
  min-height: var(--projects-menu-height);
  max-height: var(--projects-menu-height);

  overflow-x: hidden;
  overflow-y: auto;

  box-sizing: border-box;
}

/*
 * En Productos el panel comienza después de tres columnas.
 * En Proyectos debe comenzar después de dos.
 */
.projects-menu .product-preview-panel {
  left:
    calc(var(--product-col) + var(--project-second-col) + (var(--product-gap) * 2));
}


/* =========================================================
   Ajuste para pantallas desktop medianas
   ========================================================= */

@media (max-width: 1399.98px) {
  .main-navbar .projects-nav>.projects-mega {
    --product-col: 250px;
    --project-second-col: 280px;
    --product-gap: 14px;
    --preview-col: 340px;

    --projects-menu-height: 420px;
    --projects-menu-height-collapsed: 265px;

    width:
      min(var(--projects-dropdown-width),
        calc(100vw - 32px));
  }
}

/* =========================================================
   Mobile
   ========================================================= */

.menu-toggler {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-blue-900);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-blue-soft);
  box-shadow: none;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.menu-toggler i {
  font-size: 1.15rem;
  line-height: 1;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.menu-toggler:hover,
.menu-toggler:focus-visible {
  color: var(--color-green-600);
  border-color: rgba(0, 149, 58, 0.28);
  background: rgba(0, 149, 58, 0.08);
  transform: translateY(-1px);
}

.menu-toggler:hover i,
.menu-toggler:focus-visible i {
  transform: scale(1.08);
}

.menu-toggler:focus {
  box-shadow: 0 0 0 4px rgba(0, 149, 58, 0.18);
}

.mobile-brand {
  padding-block: 12px;
}

.mobile-offcanvas {
  max-width: 390px;
  border: 0;
  border-radius: 26px 0 0 26px;
  background: var(--surface-main);
  box-shadow: -20px 0 70px rgba(18, 40, 76, 0.18);
}

.mobile-offcanvas .offcanvas-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 24px 26px;
}

/**** Buscador Mobiles ****/
.mobile-search {
  display: grid;
  gap: 10px;
  width: min(100%, 460px);
  margin: 0;
}

.mobile-search .search-box {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 5px 14px;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px rgba(18, 40, 76, 0.06);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.mobile-search .search-box:focus-within {
  border-color: rgba(0, 149, 58, 0.42);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 0 0 4px rgba(0, 149, 58, 0.08),
    0 12px 26px rgba(18, 40, 76, 0.07);
}

.mobile-search .search-box i {
  flex: 0 0 auto;
  color: rgba(104, 115, 134, 0.78);
  font-size: 0.88rem;
}

.mobile-search .search-box input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  color: var(--color-blue-900);
  font-size: 0.9rem;
  font-weight: 500;
  border: 0;
  outline: 0;
  background: transparent;
}

.mobile-search .search-box input::placeholder {
  color: rgba(104, 115, 134, 0.78);
}

.mobile-search .search-box input::-webkit-search-cancel-button {
  cursor: pointer;
}

/*** Buscador Mobiles Final ****/

.mobile-nav {
  gap: 4px;
}

.mobile-nav .nav-link {
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--color-text);
  background: transparent;
}

.mobile-nav .nav-link::before {
  display: none;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.show {
  background: var(--surface-hover);
}

/* Accordeon */
.mobile-toggle,
.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  border: 0;
  border-radius: 12px;
  background: transparent;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible,
.mobile-submenu-toggle:hover,
.mobile-submenu-toggle:focus-visible {
  color: var(--color-blue-900);
  background: var(--surface-hover);
}

.mobile-toggle i,
.mobile-submenu-toggle i {
  color: var(--color-muted);
  font-size: 0.72rem;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.mobile-toggle[aria-expanded="true"] i,
.mobile-submenu-toggle[aria-expanded="true"] i {
  color: var(--color-green-600);
  transform: rotate(180deg);
}

.mobile-submenu {
  margin: 4px 0 10px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-page);
}

.mobile-submenu-level {
  margin: 4px 0 8px;
  padding: 4px 0 4px 10px;
  border-left: 2px solid rgba(0, 149, 58, 0.18);
}

.mobile-submenu-level-child {
  margin-left: 8px;
}

.mobile-submenu-toggle-child {
  min-height: 42px;
  padding-left: 12px;
  font-size: 0.88rem;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 11px;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus-visible {
  color: var(--color-blue-900);
  background: var(--surface-hover);
  transform: translateX(2px);
}

/* El panel exterior controla únicamente la altura */
#mobileMenu .mobile-submenu,
#mobileMenu .mobile-submenu-level {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

/* Presentación de los menús principales */
#mobileMenu .mobile-submenu > .mobile-collapse-inner {
  margin: 4px 0 10px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-page);
}

/* Presentación de las categorías internas */
#mobileMenu .mobile-submenu-level > .mobile-collapse-inner {
  margin: 4px 0 8px;
  padding: 4px 0 4px 10px;
  border-left: 2px solid
    color-mix(in srgb, var(--color-green-500) 18%, transparent);
}

/* Sangría de los niveles más profundos */
#mobileMenu .mobile-submenu-level-child > .mobile-collapse-inner {
  margin-left: 8px;
}

/* Apertura y cierre */
#mobileMenu .collapsing {
  transition: height 280ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  #mobileMenu .collapsing {
    transition: none !important;
  }
}

.mobile-offcanvas .dropdown-menu {
  position: static !important;
  margin: 2px 0 8px;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-page);
  box-shadow: none;
  transform: none !important;
}

.mobile-offcanvas .dropdown-item {
  min-height: 38px;
  font-size: 0.88rem;
}

.mobile-contact-btn {
  width: 100%;
  min-height: 46px;
}

.mobile-contact {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.mobile-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue-900);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-contact i {
  color: var(--color-green-600);
}

/* =========================================================
   Responsive
   ========================================================= */
   
/* Megamenús: escritorio con poca altura disponible */
@media (min-width: 992px) and (max-height: 680px) {

  /* Compactar las categorías de la primera columna */
  .main-navbar .product-level-one > * > .product-link {
    padding-block: 12px;
  }

  /* Proyectos: ajustar el contenedor a sus categorías
     cuando solamente está abierta la primera columna */
  .main-navbar .projects-nav > .projects-mega.is-depth-1
  .projects-menu {
    height: auto;
    min-height: 0;
  }

  /* Eliminar el límite que recorta la primera columna */
  .main-navbar .projects-mega .projects-menu
  .product-level-one {
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 1399.98px) {
  .navbar-nav .nav-link {
    padding-inline: 12px;
  }

  .desktop-menu {
    gap: 8px;
  }

  .desktop-navbar {
    gap: 24px;
  }

  .btn-contact {
    padding-inline: 17px;
  }
}

@media (max-width: 1199.98px) {
  .site-header {
    padding: 12px 12px 0;
  }

  .top-header {
    display: none;
  }

  .main-navbar,
  .site-header.is-scrolled .main-navbar {
    width: min(100%, var(--header-max-width));
    min-height: 70px;
    border-radius: 22px;
  }

  .header-container {
    padding-inline: 15px;
  }

  .preview-section {
    min-height: calc(100vh - 96px);
  }

  .mobile-offcanvas {
    z-index: 1105;
  }

  .offcanvas-backdrop {
    z-index: 1100;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    padding-inline: 10px;
  }

  .main-navbar,
  .site-header.is-scrolled .main-navbar {
    min-height: 66px;
    border-radius: 20px;
  }

  .mobile-brand .brand-logo,
  .offcanvas-brand .brand-logo {
    height: 38px;
    max-width: 158px;
  }

  .menu-toggler {
    width: 42px;
    height: 42px;
  }

  .mobile-offcanvas {
    max-width: 92vw;
    border-radius: 22px 0 0 22px;
  }

  .preview-section {
    min-height: calc(100vh - 88px);
    padding: 52px 0;
  }
}


/* =========================================================
   Buscador flotante en Header
   ========================================================= */

.site-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(18, 40, 76, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.site-search-overlay {
  --search-panel-top: 120px;

  position: fixed;
  top: var(--search-panel-top);
  left: 0;
  right: 0;
  z-index: 1060;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 240ms ease,
    visibility 240ms ease,
    transform 240ms ease;
}

body.is-search-open .site-search-backdrop,
body.is-search-open .site-search-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.is-search-open .site-search-overlay {
  transform: translateY(0);
}

body.is-search-open {
  overflow: hidden;
}

.site-search-panel {
  position: relative;
  width: 100%;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--color-green-500);
  border-radius: 0 0 30px 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 30px 80px rgba(18, 40, 76, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.site-search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-blue-900);
  border: 1px solid rgba(18, 40, 76, 0.12);
  border-radius: 999px;
  background: #ffffff;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.site-search-close:hover {
  color: #ffffff;
  border-color: var(--color-green-600);
  background: var(--color-green-600);
  transform: rotate(90deg);
}

.site-search-close i {
  font-size: 1rem;
}

.site-search-content {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.site-search-content h2 {
  margin: 0 0 24px;
  color: var(--color-blue-800);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.site-search-form {
  margin: 0;
}

.site-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(18, 40, 76, 0.12);
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 18px 42px rgba(18, 40, 76, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-search-field>i {
  color: var(--color-green-600);
  font-size: 1rem;
}

.site-search-field input {
  width: 100%;
  min-width: 0;
  color: var(--color-blue-900);
  font-size: 1rem;
  font-weight: 500;
  border: 0;
  outline: 0;
  background: transparent;
}

.site-search-field input::placeholder {
  color: rgba(81, 81, 81, 0.52);
}

.site-search-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 22px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: var(--color-blue-900);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.site-search-field button:hover {
  background: var(--color-green-600);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 149, 58, 0.2);
}

.site-search-field button i {
  font-size: 0.78rem;
}

.site-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.site-search-suggestions span {
  color: rgba(81, 81, 81, 0.7);
  font-size: 0.86rem;
  font-weight: 600;
}

.site-search-suggestions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--color-blue-900);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 999px;
  background: rgba(18, 40, 76, 0.04);
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.site-search-suggestions a:hover {
  color: var(--color-green-600);
  border-color: rgba(0, 149, 58, 0.28);
  background: rgba(0, 149, 58, 0.08);
}

/* Responsive */

@media (max-width: 767.98px) {
  .site-search-panel {
    padding: 30px 18px 24px;
    border-radius: 0 0 24px 24px;
  }

  .site-search-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }

  .site-search-content {
    padding-top: 18px;
  }

  .site-search-field {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 58px;
    padding: 8px 16px;
    border-radius: 22px;
  }

  .site-search-field button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
  }

  .site-search-suggestions {
    justify-content: flex-start;
    text-align: left;
  }
}


/* =========================================================
     Botones flotantes - Liquid Glass
     ========================================================= */

.floating-contact-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1035;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 54px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.floating-contact-buttons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--color-blue-900);
  font-size: 1.22rem;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  border-right: 0;
  border-bottom: 0;
  background: var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 10px 26px rgba(18, 40, 76, 0.08);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition:
    width var(--transition-slow),
    color var(--transition-slow),
    box-shadow var(--transition-slow);
}

.floating-contact-buttons a:first-child {
  border-radius: 16px 0 0 0;
}

.floating-contact-buttons a:last-child {
  border-bottom: 1px solid var(--border-glass);
  border-radius: 0 0 0 16px;
}

.floating-contact-buttons a:hover {
  width: 62px;
  color: var(--color-blue-900);
  background: var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 14px 30px rgba(18, 40, 76, 0.12);
}

.floating-contact-buttons i {
  transition: transform var(--transition-slow);
}

.floating-contact-buttons a:hover i {
  transform: translateX(-3px) scale(1.04);
}

.floating-contact-buttons span {
  display: none;
}

/** Formulario CAD **/

/* Botón CAD como button */
.floating-contact-buttons>.floating-cad-trigger {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Aplicar el mismo diseño a links y botón CAD */
.floating-contact-buttons>a,
.floating-contact-buttons>.floating-cad-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--color-blue-900);
  font-size: 1.22rem;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  border-right: 0;
  border-bottom: 0;
  background: var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 10px 26px rgba(18, 40, 76, 0.08);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition:
    width var(--transition-slow),
    color var(--transition-slow),
    box-shadow var(--transition-slow);
}

.floating-contact-buttons>a:hover,
.floating-contact-buttons>.floating-cad-trigger:hover,
.floating-contact-buttons>.floating-cad-trigger.is-active {
  width: 62px;
  color: var(--color-blue-900);
  background: var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 14px 30px rgba(18, 40, 76, 0.12);
}

.floating-contact-buttons>a:hover i,
.floating-contact-buttons>.floating-cad-trigger:hover i,
.floating-contact-buttons>.floating-cad-trigger.is-active i {
  transform: translateX(-3px) scale(1.04);
}

/* =========================================================
   Atención visual - Chat Tidio
   ========================================================= */

@media (min-width: 576px) {

  #tidio-custom-button.is-attention span {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }

}

@media (min-width: 576px) {

  .floating-contact-buttons>.floating-cad-trigger:hover span,
  .floating-contact-buttons>.floating-cad-trigger.is-active span {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }
}

/* Mobile */
@media (max-width: 575.98px) {

  .floating-contact-buttons>a,
  .floating-contact-buttons>.floating-cad-trigger {
    flex: 1;
    width: auto;
    height: 58px;
    flex-direction: column;
    gap: 5px;
    color: var(--color-blue-900);
    font-size: 1.05rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .floating-contact-buttons>a:hover,
  .floating-contact-buttons>.floating-cad-trigger:hover,
  .floating-contact-buttons>.floating-cad-trigger.is-active {
    width: auto;
    background: transparent;
    box-shadow: none;
  }

  .floating-contact-buttons>.floating-cad-trigger {
    border-right: 1px solid rgba(18, 40, 76, 0.12);
  }

  .floating-contact-buttons>.floating-cad-trigger:hover i,
  .floating-contact-buttons>.floating-cad-trigger.is-active i {
    transform: translateY(-2px) scale(1.04);
  }

  .cad-floating-panel {
    position: fixed;
    top: auto;
    right: 14px;
    bottom: 86px;
    left: 14px;
    width: auto;
    transform: translateY(12px);
  }

  .cad-floating-panel.is-open {
    transform: translateY(0);
  }

  .cad-floating-form {
    padding: 16px;
    border-radius: var(--radius-medium);
  }

  .floating-contact-buttons.is-mobile-compact~.cad-floating-panel {
    bottom: 74px;
  }
}

/* Nombre visible solo en desktop al hacer hover */
@media (min-width: 576px) {
  .floating-contact-buttons span {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    color: var(--color-blue-900);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    background: var(--surface-liquid);
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      0 10px 26px rgba(18, 40, 76, 0.10);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(8px, -50%);
    transition:
      opacity var(--transition-slow),
      visibility var(--transition-slow),
      transform var(--transition-slow);
  }

  .floating-contact-buttons a:hover span {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }
}

@media (max-width: 575.98px) {
  .floating-contact-buttons {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-top: 1px solid rgba(18, 40, 76, 0.08);
    border-radius: 22px 22px 0 0;
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
      0 -10px 28px rgba(18, 40, 76, 0.10);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
      width 320ms ease,
      bottom 320ms ease,
      padding 320ms ease,
      border-radius 320ms ease,
      background 320ms ease,
      box-shadow 320ms ease;
  }

  .floating-contact-buttons a {
    flex: 1;
    width: auto;
    height: 58px;
    flex-direction: column;
    gap: 5px;
    color: var(--color-blue-900);
    font-size: 1.05rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition:
      height 360ms ease,
      font-size 360ms ease,
      gap 360ms ease,
      transform var(--transition-fast);
  }

  .floating-contact-buttons a:not(:last-child) {
    border-right: 1px solid rgba(18, 40, 76, 0.12);
  }

  .floating-contact-buttons a:first-child,
  .floating-contact-buttons a:last-child {
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
  }

  .floating-contact-buttons a:hover {
    width: auto;
    color: var(--color-blue-900);
    background: transparent;
    box-shadow: none;
  }

  .floating-contact-buttons a:active {
    transform: scale(0.96);
    background: transparent;
    box-shadow: none;
  }

  .floating-contact-buttons a:hover i {
    transform: translateY(-2px) scale(1.04);
  }

  .floating-contact-buttons i {
    font-size: 1.08rem;
  }

  .floating-contact-buttons span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
  }

  .floating-contact-buttons.is-mobile-compact {
    width: min(calc(100% - 84px), 280px);
    padding: 5px;
    border: 1px solid rgba(18, 40, 76, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
      0 -8px 24px rgba(18, 40, 76, 0.12);
    bottom: 14px;
  }

  .floating-contact-buttons.is-mobile-compact a {
    height: 42px;
    gap: 2px;
    font-size: 0.92rem;
  }

  .floating-contact-buttons.is-mobile-compact i {
    font-size: 0.95rem;
  }

  .floating-contact-buttons.is-mobile-compact span {
    font-size: 0.56rem;
  }

  .floating-contact-buttons.is-mobile-compact a:not(:last-child) {
    border-right: 1px solid rgba(18, 40, 76, 0.08);
  }
}

/* =========================================================
   Botón volver arriba
   ========================================================= */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--color-blue-900);
  font-size: 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  background: var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 14px 32px rgba(18, 40, 76, 0.14);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 260ms ease,
    visibility 260ms ease,
    transform 260ms ease,
    box-shadow var(--transition-fast);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-3px) scale(1);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 18px 38px rgba(18, 40, 76, 0.18);
}

.scroll-top-btn i {
  transition: transform var(--transition-fast);
}

.scroll-top-btn:hover i {
  transform: translateY(-2px);
}

/* Móvil: lo subimos para no chocar con la barra inferior */
@media (max-width: 575.98px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 92px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.92rem;
  }
}

/********************* Seccion 1 Productos Hero *********************/
.product-detail-page {
  position: relative;
  background: var(--surface-page);
  --brand-accent: var(--color-green-500);
  --brand-accent-soft: rgba(0, 149, 58, 0.08);
  --brand-accent-medium: rgba(0, 149, 58, 0.16);
  --brand-accent-border: rgba(0, 149, 58, 0.34);
}

.product-hero-banner {
  position: relative;
  min-height: clamp(340px, 46vh, 550px);
  display: flex;
  align-items: flex-end;
  padding: clamp(180px, 18vh, 190px) 0 clamp(52px, 7vw, 130px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(7, 16, 29, 0.18), rgba(7, 16, 29, 0)),
    var(--product-hero-bg) center / cover no-repeat;
  overflow: hidden;
  isolation: isolate;
}

.product-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.61) 0%,
      transparent 42%),
    linear-gradient(0deg,
      rgb(255, 255, 255) 0%,
      transparent 30%);
}

/* Diagonal inferior */
.product-hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: clamp(44px, 6vw, 86px);
  background: var(--surface-page);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.product-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(26, 55, 104, 0.76) 0%,
      rgba(26, 55, 104, 0.44) 44%,
      rgba(26, 55, 104, 0.16) 68%,
      rgba(26, 55, 104, 0.06) 100%),
    radial-gradient(circle at 16% 68%,
      rgba(0, 149, 58, 0.18),
      transparent 34%);
}

.product-hero-container {
  position: relative;
  z-index: 4;
}

.product-hero-content {
  max-width: 760px;
}

.product-hero-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-hero-content h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.3rem, 3.7vw, 3.5rem);
  font-weight: 560;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.product-hero-content p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.90rem, 1.08vw, 1.04rem);
  font-weight: 400;
  line-height: 1.68;
}

.product-intro-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 150px;
  padding-top: 6px;
}

.product-intro-brand-logo img {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 34px;
  object-fit: contain;
}

.page-breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
}

.page-breadcrumb-inner.has-brand-logo .page-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
}

.page-breadcrumb-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 150px;
}

.page-breadcrumb-brand img {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 34px;
  object-fit: contain;
}

/* Responsive */

@media (max-width: 991.98px) {
  .product-hero-banner {
    min-height: 410px;
    padding-top: 140px;
  }

  .product-hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(18, 40, 76, 0.86) 0%,
        rgba(18, 40, 76, 0.68) 58%,
        rgba(18, 40, 76, 0.34) 100%),
      radial-gradient(circle at 22% 70%,
        rgba(0, 149, 58, 0.22),
        transparent 38%);
  }
}

@media (max-width: 575.98px) {
  .product-hero-banner {
    min-height: 420px;
    padding: 116px 0 100px;
    background-position: center;
  }

  .product-hero-content {
    text-align: center;
  }

  .product-hero-label {
    justify-content: center;
    width: 100%;
    font-size: 0.72rem;
  }

  .product-hero-content h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .product-hero-content p {
    font-size: 0.94rem;
  }
}

/********************* Ruta de navegación *********************/
.page-breadcrumb-section {
  position: relative;
  padding-top: 10px;
  background: var(--surface-page);
  border-bottom: 1px solid rgba(18, 40, 76, 0.06);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.4;
}

.page-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-green-600);
  text-decoration: none;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
  color: var(--color-blue-900);
  transform: translateY(-1px);
}

.page-breadcrumb i {
  font-size: 0.92rem;
}

.breadcrumb-separator {
  color: rgba(18, 40, 76, 0.42);
  font-weight: 500;
}

.breadcrumb-current {
  color: var(--color-blue-800);
  opacity: 0.58;
}

/* Responsive */
@media (max-width: 575.98px) {
  .page-breadcrumb-section {
    padding: 18px 0;
  }

  .page-breadcrumb-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-height: auto;
  }

  .page-breadcrumb {
    order: 1;
    gap: 7px;
    font-size: 0.82rem;
  }

  .page-breadcrumb-brand {
    order: 2;
    justify-content: center;
    align-self: center;
    width: 100%;
    max-width: 160px;
    margin-top: 15px;
  }

  .page-breadcrumb-brand img {
    max-width: 125px;
    max-height: 35px;
    margin-bottom: 0px;
  }

  .breadcrumb-current {
    max-width: 100%;
  }
}

/******************************************************************************************/
/************************************ CTA final *******************************************/
/*****************************************************************************************/



.about-final-cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 20%, var(--brand-accent-soft), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.46)),
    var(--surface-liquid);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 44px rgba(18, 40, 76, 0.06);
}

.about-final-cta-card h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--color-blue-900);
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.about-final-cta-card p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: rgba(104, 115, 134, 0.96);
  font-size: 1rem;
  line-height: 1.68;
}

.about-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.about-final-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  border-radius: 14px;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.about-final-btn-primary {
  color: #ffffff;
  border: 1px solid var(--color-blue-900);
  background: var(--color-blue-900);
}

.about-final-btn-primary:hover {
  color: #ffffff;
  border-color: #0c1d38;
  background: #0c1d38;
  transform: translateY(-1px);
}

.about-final-btn-secondary {
  color: var(--color-blue-900);
  border: 1px solid rgba(18, 40, 76, 0.14);
  background: rgba(255, 255, 255, 0.58);
}

.about-final-btn-secondary:hover {
  color: var(--color-blue-900);
  border-color: var(--brand-accent-border);
  background: var(--brand-accent-soft);
  transform: translateY(-1px);
}

/********************* Responsive *********************/

@media (max-width: 575.98px) {

  .about-final-cta-card {
    border-radius: 24px;
  }

  .about-final-actions {
    flex-direction: column;
  }

  .about-final-btn {
    width: 100%;
  }
}


/******************** Re-captchat oculto *******************************/
.grecaptcha-badge {
  transform: scale(0.65);
  transform-origin: bottom right;
  right: -120px !important;
  bottom: 2px !important;
}

/** =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  padding: clamp(48px, 6vw, 82px) clamp(16px, 3vw, 42px) 20px;
  background: var(--surface-page);
}

.footer-container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.footer-shell {
  position: relative;
  padding: clamp(18px, 3vw, 42px);
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 24px 70px rgba(18, 40, 76, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  overflow: hidden;
}

.footer-shell>.footer-top-bar,
.footer-shell>.row,
.footer-shell>.footer-bottom {
  width: min(100%, var(--header-max-width));
  margin-inline: auto;
}

.footer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 4vw, 48px);
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(18, 40, 76, 0.08);
}

/* Columna marca */

.footer-brand-block {
  max-width: 390px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: auto;
  max-width: 205px;
  max-height: 58px;
  object-fit: contain;
}

/* Newsletter */

.footer-newsletter {
  display: grid;
  gap: 10px;
  width: min(100%, 460px);
  margin-top: 0;
}

.footer-newsletter label {
  color: rgba(18, 40, 76, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-newsletter-box {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 5px;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px rgba(18, 40, 76, 0.06);
}

.footer-newsletter-box input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  color: var(--color-blue-900);
  font-size: 0.9rem;
  font-weight: 500;
  border: 0;
  outline: 0;
  background: transparent;
}

.footer-newsletter-box input::placeholder {
  color: rgba(104, 115, 134, 0.78);
}

.footer-newsletter-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 38px;
  gap: 8px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: var(--color-blue-900);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.footer-newsletter-box button:hover {
  background: var(--color-green-500);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 149, 58, 0.22);
}

.footer-newsletter-box button i {
  font-size: 0.76rem;
}

/* Columnas */

.footer-column h3 {
  margin: 0 0 15px;
  color: rgba(18, 40, 76, 0.88);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
}

.footer-links,
.footer-contact-list,
.footer-platforms {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-platforms a,
.footer-contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(81, 81, 81, 0.86);
  font-size: 0.9rem;
  font-weight: 430;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.footer-links a:hover,
.footer-platforms a:hover,
.footer-contact-list a:hover {
  color: var(--color-green-600);
  transform: translateX(2px);
}

.footer-contact-column {
  display: grid;
  gap: 24px;
}

.footer-mini-group {
  min-width: 0;
}

/* Redes sociales */

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--color-blue-900);
  text-decoration: none;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    0 10px 24px rgba(18, 40, 76, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-slow),
    transform var(--transition-slow),
    box-shadow var(--transition-slow);
}

.footer-social a:hover {
  color: #ffffff;
  border-color: var(--color-green-500);
  background: var(--color-green-500);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 149, 58, 0.22);
}

/** Rastreo de envios de Paquetexpress **/

.footer-shipping-col {
  margin-top: 10px !important;
  padding-top: 0;
}

.footer-shipping-track {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  padding-right: clamp(212px, 26vw, 320px);
}

.enlace-derechos {
  color: var(--color-text);
  text-decoration: none;
}

.footer-shipping-track a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 12px 6px 7px;
  color: rgba(18, 40, 76, 0.9);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid rgba(18, 40, 76, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(18, 40, 76, 0.05);
}

.footer-shipping-track a:hover,
.footer-shipping-track a:focus-visible {
  background: rgba(255, 255, 255, 0.86);
}

.footer-shipping-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #ffffff;
  font-size: 0.78rem;
  border-radius: 50%;
  background: var(--color-blue-900);
}

.footer-shipping-track a:hover .footer-shipping-icon,
.footer-shipping-track a:focus-visible .footer-shipping-icon {
  background: var(--color-green-500);
}

.footer-shipping-track a>i:last-child {
  color: rgba(104, 115, 134, 0.75);
  font-size: 0.68rem;
}

@media (max-width: 991.98px) {
  .footer-shipping-track {
    justify-content: flex-start;
    margin-top: 4px;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .footer-shipping-track a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 16px;
  }
}

/* Bottom */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(18px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid rgba(18, 40, 76, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(104, 115, 134, 0.9);
  font-size: 0.86rem;
  font-weight: 400;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a {
  color: rgba(81, 81, 81, 0.84);
  font-size: 0.86rem;
  font-weight: 450;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-green-600);
}

/* Responsive */

@media (max-width: 991.98px) {
  .site-footer {
    padding-inline: 14px;
  }

  .footer-shell {
    border-radius: 26px;
  }

  .footer-brand-block {
    max-width: 100%;
  }

  .footer-top-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-newsletter {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .site-footer {
    padding-top: 42px;
    padding-bottom: 62px;
  }

  .footer-shell {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .footer-logo img {
    max-width: 178px;
    max-height: 52px;
  }

  .footer-top-bar {
    margin-bottom: 30px;
    padding-bottom: 22px;
  }

  .footer-newsletter-box {
    align-items: stretch;
    flex-direction: column;
    border-radius: 18px;
  }

  .footer-newsletter-box button {
    width: 100%;
    height: 42px;
  }

  .footer-newsletter-box input {
    height: 42px;
  }

  .footer-column h3 {
    margin-bottom: 12px;
  }

  .footer-links,
  .footer-contact-list,
  .footer-platforms {
    gap: 7px;
  }

  .footer-column {
    text-align: center;
    padding-block: 8px;
  }

  .footer-social {
    padding-top: 15px;
    justify-content: center;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .footer-bottom {
    align-items: center;
    flex-direction: column;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-legal {
    gap: 10px 16px;
  }
}