/* ============================================
   PRODENAV - Sitio Web Estático
   Migración completa desde WordPress
   ============================================ */

:root {
  --color-primary: #4c8fa9;
  --color-primary-teal: #5196B0;
  --color-primary-dark: #3d7390;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8f9fa;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
  --transition: 0.3s ease;
  /* Escala tipográfica */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: 2rem;
  /* Breakpoints responsive */
  --bp-pc: 1920px;
  --bp-macbook: 1440px;
  --bp-notebook: 1366px;
  --bp-ipad: 1024px;
  --bp-tablet: 768px;
  --bp-phablet: 600px;
  --bp-iphone: 480px;
  --bp-celular: 375px;
  /* Tipografía unificada: usar estos tokens en nuevas reglas y migrar poco a poco */
  --font-weight-heading: 700;
  --font-weight-heading-soft: 600;
  --line-height-body: 1.65;
  --color-heading: var(--color-text);
  --color-heading-accent: var(--color-primary);
  /* Jerarquía interior (main / page-section), distinta del hero carrusel */
  --title-page: var(--text-3xl);
  --subtitle-page: var(--text-xl);
  --title-section: var(--text-lg);
  --title-block: var(--text-base);
  /* Título centrado de bandas (home: productos, proceso, etc.) */
  --title-band: 2.95rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Iconos SVG */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
.icon--sm {
  width: 16px;
  height: 16px;
}
.icon--xs {
  width: 12px;
  height: 12px;
  margin-right: 0.25rem;
}

/* ============================================
   HEADER - Formato alto estándar
   ============================================ */

/* Top Bar */
.top-bar {
  background: var(--color-primary-teal);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-bar .container,
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.top-bar__contact {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar__separator {
  opacity: 0.6;
  font-weight: 300;
}

.top-bar__link {
  color: inherit !important;
}

.top-bar__right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.top-bar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  transition: background 0.2s;
}

.top-bar__social-link .icon {
  width: 14px;
  height: 14px;
}

.top-bar__social-link:hover {
  background: rgba(255, 255, 255, 0.35);
}

.top-bar__search {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff !important;
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.top-bar__search:hover {
  background: rgba(255, 255, 255, 0.15);
}

.top-bar__link,
.top-bar__hours {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar__contact-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.top-bar__contact-values {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
}

.top-bar__middot {
  opacity: 0.55;
  user-select: none;
  font-weight: 300;
}

/* Teléfonos y correos en columna (footer, CTAs, bloques de contacto) */
.contact-links-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1.45;
}

.contact-links-stack a {
  font-weight: 500;
  text-decoration: none;
}

.contact-links-stack a:hover {
  text-decoration: underline;
}

.footer .contact-links-stack a {
  color: var(--color-text);
}

.footer .contact-links-stack a:hover {
  color: var(--color-primary);
}

.main-footer .contact-links-stack a {
  color: rgba(236, 240, 241, 0.95);
}

.main-footer .contact-links-stack a:hover {
  color: #fff;
}

.main-footer__contact-links {
  margin-top: 0.45rem;
}

.contacto-block .contact-links-stack {
  margin-top: 0.15rem;
}

.contacto-block .contact-links-stack a {
  color: var(--color-primary);
}

.contacto-block .contact-links-stack a:hover {
  color: var(--color-primary-dark);
}

.contact-snippet {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.top-bar-left,
.top-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.top-bar-left span,
.top-bar-left a,
.top-contact span,
.top-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-right,
.top-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.top-bar a,
.top-bar a:visited,
.top-contact a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.top-bar a:hover,
.top-bar a:focus-visible,
.top-contact a:hover {
  color: #fff;
  opacity: 1;
}

.top-bar a:focus-visible,
.top-bar-right a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.top-bar-right a,
.top-social a {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-bar-right a:hover,
.top-social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Main Header */
.header,
.header-main {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container,
.header-main .container,
.header-content,
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img,
.logo picture img {
  height: 60px;
  width: auto;
  max-height: none;
  object-fit: contain;
  shape-rendering: geometricPrecision;
}

.logo img[src$=".svg"] {
  shape-rendering: geometricPrecision;
}

.logo .header__logo-svg {
  display: block;
  height: 60px;
  width: auto;
  max-height: none;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

@media (min-width: 993px) {
  .logo img,
  .logo picture img {
    height: 76px;
  }
  .logo .header__logo-svg {
    height: 76px;
    max-height: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.125rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
  background: rgba(76, 143, 169, 0.08);
}

.main-nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Header BEM */
.header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.header__logo picture img,
.header__logo img {
  height: 60px;
  width: auto;
  max-height: none;
  object-fit: contain;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
}
@media (min-width: 993px) {
  .header__logo picture img,
  .header__logo img {
    height: 76px;
  }
}
/* Logo inline SVG: misma fuente y colores que el sitio (el img+SVG aparte suele verse borroso) */
.header__logo-svg {
  display: block;
  height: 60px;
  width: auto;
  max-height: none;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 993px) {
  .header__logo-svg {
    height: 76px;
  }
}
.header__logo-svg .logo-mark__navy {
  fill: #152a38;
}
.header__logo-svg .logo-mark__teal {
  fill: var(--color-primary);
}
.header__logo-svg .logo-type-main {
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.04em;
  fill: #152a38;
}
.header__logo-svg .logo-type-tag {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--color-primary-dark);
}
.header__logo img[src$=".svg"] {
  shape-rendering: geometricPrecision;
}
.header__nav-list { list-style: none; display: flex; gap: 0.25rem; flex-wrap: wrap; margin: 0; padding: 0; }
.header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.header__nav-link:hover { color: var(--color-primary); background: rgba(76, 143, 169, 0.08); }
.header__nav-link--active {
  background: var(--color-primary-teal) !important;
  color: #fff !important;
}
.header .container.header__inner {
  position: relative;
}
.header__nav-item--dropdown {
  position: relative;
}
/* Puente invisible para no perder el hover entre el botón y el panel */
.header__nav-item--dropdown .header__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.header__nav-item--dropdown:hover .header__submenu,
.header__nav-item--dropdown:focus-within .header__submenu,
.header__nav-item--dropdown.header__nav-item--dropdown--open .header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* PRODUCTOS resaltado como botón principal mientras el panel está activo */
.header__nav-item--dropdown:hover > .header__nav-link,
.header__nav-item--dropdown:focus-within > .header__nav-link,
.header__nav-item--dropdown.header__nav-item--dropdown--open > .header__nav-link {
  background: var(--color-primary-teal) !important;
  color: #fff !important;
}
.header__nav-item--dropdown:hover > .header__nav-link .icon,
.header__nav-item--dropdown:focus-within > .header__nav-link .icon,
.header__nav-item--dropdown.header__nav-item--dropdown--open > .header__nav-link .icon {
  color: #fff;
}
.header__submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  min-width: 220px;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  z-index: 1200;
  list-style: none;
}
.header__submenu a { display: block; padding: 0.5rem 1.25rem; color: var(--color-text); font-size: 0.9rem; }
.header__submenu a:hover { background: rgba(76, 143, 169, 0.08); color: var(--color-primary); }

/* Submenú PRODUCTOS: nivel 1 + flyout nivel 2 (desktop hover / móvil acordeón) */
.header__submenu--grouped.header__submenu--tiered {
  min-width: 240px;
  max-width: min(280px, calc(100vw - 1.5rem));
  padding: 0.35rem 0 0.45rem;
}
.header__submenu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__submenu-item--flyout {
  position: relative;
}
.header__submenu-parent {
  display: flex;
  align-items: center;
  width: calc(100% - 0.6rem);
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 1.2rem;
  margin: 0 0.3rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}
.header__submenu-parent:hover,
.header__submenu-parent:focus-visible {
  background: rgba(76, 143, 169, 0.1);
  color: var(--color-primary);
  outline: none;
}
.header__submenu-parent__text {
  flex: 1;
  min-width: 0;
}
.header__submenu-parent__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--color-text);
}
.header__submenu-item--nested {
  position: relative;
}
.header__submenu-parent__chev {
  flex-shrink: 0;
  opacity: 0.45;
  color: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s;
}
.header__submenu-item--flyout:hover .header__submenu-parent__chev,
.header__submenu-item--flyout:focus-within .header__submenu-parent__chev,
.header__submenu-item--flyout.is-open .header__submenu-parent__chev {
  opacity: 0.75;
  color: var(--color-primary);
  transform: translateX(3px);
}
.header__submenu-flyout {
  position: absolute;
  left: calc(100% - 6px);
  top: 0;
  min-width: 248px;
  max-width: min(300px, calc(100vw - 3rem));
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1210;
  pointer-events: none;
}
/* Puente para mantener hover entre fila y panel lateral */
.header__submenu-flyout::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: 14px;
}
.header__submenu-item--flyout:hover > .header__submenu-flyout,
.header__submenu-item--flyout:focus-within > .header__submenu-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
/* Táctil / pointer grueso en escritorio: mismo panel que con hover */
.header__submenu-item--flyout.is-open > .header__submenu-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.header__submenu-flyout--tier3 {
  z-index: 1220;
}
.header__submenu-parent:hover .header__submenu-parent__icon,
.header__submenu-parent:focus-visible .header__submenu-parent__icon,
.header__submenu-item--flyout:hover .header__submenu-parent__icon,
.header__submenu-item--flyout:focus-within .header__submenu-parent__icon,
.header__submenu-item--flyout.is-open .header__submenu-parent__icon {
  color: var(--color-primary);
}
.header__submenu-link--tier2 {
  margin: 0 0.3rem;
}
.header__submenu-link--tier2 .header__submenu-link__text {
  font-weight: 500;
}
.header__submenu a.header__submenu-link--compact {
  padding-left: 1.2rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.header__submenu-sep {
  height: 1px;
  margin: 0.4rem 0.85rem;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.09) 12%, rgba(0, 0, 0, 0.09) 88%, transparent);
  list-style: none;
  pointer-events: none;
}
.header__submenu-group { list-style: none; }
.header__submenu a.header__submenu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem 0.55rem 1.2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  margin: 0 0.35rem;
}
.header__submenu--tiered a.header__submenu-link {
  margin: 0 0.3rem;
}
.header__submenu a.header__submenu-link:hover,
.header__submenu a.header__submenu-link:focus-visible {
  background: rgba(76, 143, 169, 0.1);
  color: var(--color-primary);
}
.header__submenu-link__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--color-text);
}
.header__submenu-link__text { flex: 1; min-width: 0; }
.header__submenu-link__chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  opacity: 0.4;
  color: var(--color-text);
}
.header__submenu-link:hover .header__submenu-link__chevron,
.header__submenu-link:focus-visible .header__submenu-link__chevron {
  opacity: 0.65;
  color: var(--color-primary);
}
.header__submenu-link:hover .header__submenu-link__icon,
.header__submenu-link:focus-visible .header__submenu-link__icon {
  color: var(--color-primary);
}

/* Submenu */
.has-submenu,
.has-dropdown {
  position: relative;
}

.has-submenu:hover .submenu,
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu,
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 10px 24px -4px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.submenu li,
.dropdown li {
  list-style: none;
  margin: 0;
}

.submenu a,
.dropdown a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.15s, color 0.15s;
}

.submenu a:hover,
.submenu a:focus-visible,
.dropdown a:hover,
.dropdown a.active {
  background: rgba(76, 143, 169, 0.08);
  color: var(--color-primary);
}

/* Mobile menu button */
.mobile-menu-btn,
.mobile-menu-toggle,
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
  line-height: 1;
  transition: color 0.2s;
}

.mobile-menu-btn:hover,
.mobile-menu-toggle:hover,
.header__menu-toggle:hover {
  color: var(--color-primary);
}

.mobile-menu-btn:focus-visible,
.mobile-menu-toggle:focus-visible,
.header__menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 992px) {
  .mobile-menu-btn,
  .mobile-menu-toggle,
  .header__menu-toggle {
    display: block;
  }

  .main-nav,
  .header__nav {
    display: none;
  }

  .main-nav.open,
  .header__nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: 0;
  }

  .submenu,
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0.25rem 0 0 1rem;
    border: none;
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-primary);
  }

  .header__nav.open .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin: 0.35rem 0 0 0;
    padding: 0.25rem 0;
    border-left: 2px solid var(--color-primary);
    padding-left: 0.75rem;
    min-width: auto;
  }

  .header__submenu--grouped.header__submenu--tiered {
    min-width: auto;
    max-width: none;
    padding: 0.25rem 0 0.5rem;
  }

  .header__submenu-item--flyout {
    position: static;
  }

  .header__submenu-flyout {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: auto;
    max-width: none;
    padding: 0.15rem 0 0.35rem 0.75rem;
    margin: 0 0 0.25rem;
    border-left: 2px solid rgba(76, 143, 169, 0.35);
    pointer-events: auto;
    display: none;
  }

  .header__submenu-flyout::before {
    display: none;
  }

  .header__submenu-item--flyout.is-open > .header__submenu-flyout {
    display: block;
  }

  .header__submenu-parent {
    width: 100%;
  }

  .header__submenu-sep {
    margin: 0.35rem 0.5rem;
  }
}

.nav-main ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-main a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-primary);
  background: rgba(76, 143, 169, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ========== HERO / BANNER ========== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Carrusel */
.hero--carousel {
  position: relative;
  overflow: hidden;
  min-height: 655px; /* +30% sobre 504px */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide.active .hero-slide__bg img {
  animation: heroZoom 8s ease-in-out infinite;
}

/* Ken Burns: zoom in → zoom out, 8 segundos */
@keyframes heroZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  text-align: center;
}

.hero-slide .hero-content h1 {
  font-size: 2.275rem; /* +30% sobre text-3xl */
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-slide .hero-content h2 {
  font-size: 1.625rem; /* +30% sobre text-xl */
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  opacity: 0.98;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-slide .hero-content p {
  margin-bottom: 1.5rem;
}

.hero-slide .hero-content .btn {
  padding: 12px 28px;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-slide .hero-content .btn:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.hero__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero__arrow--prev {
  left: 20px;
}

.hero__arrow--next {
  right: 20px;
}

.hero__arrow .icon {
  width: 24px;
  height: 24px;
}

/* Hero responsive: ver sección RESPONSIVE al final */

/* ========== CONTAINER ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: var(--title-band);
  font-weight: var(--font-weight-heading);
  margin-bottom: 0.75rem;
  text-align: center;
  color: #555;
}

.products-section .section-title {
  font-size: var(--title-band);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.35rem;
}

.products-section .section-subtitle {
  margin-top: 0;
  margin-bottom: 1.35rem;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ========== FEATURES - ¿Por qué elegir nuestros productos? ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  padding: 35px;
  background: #fff;
}

.feature-card h3 {
  font-size: 1.4625rem; /* +30% sobre text-lg */
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.feature-card p {
  font-size: var(--text-base);
  color: #7a7a7a;
  line-height: 1.75;
  margin: 0;
}

.feature-card p strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Features responsive: ver sección RESPONSIVE */

/* ========== PROCESS - ¿Cómo funcionamos? ========== */
.process-section__title {
  font-size: var(--title-band);
  font-weight: var(--font-weight-heading);
  color: #555;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 3rem;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.process-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.75rem;
  color: var(--color-primary);
}

.process-step .icon--process {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
}

.process-step p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: #7a7a7a;
  margin: 0;
  text-align: left;
  max-width: 320px;
}

.process-step p strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Process responsive: ver sección RESPONSIVE */

/* ========== CARDS / GRID ========== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.card-body {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ========== PRODUCTOS DESTACADOS - CARRUSEL ========== */
.products-carousel {
  position: relative;
  padding: 0 48px;
  margin: 0 -48px;
}

.products-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s, color 0.2s;
}

.products-carousel__arrow:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.products-carousel__arrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.products-carousel__arrow--prev {
  left: 0;
}

.products-carousel__arrow--next {
  right: 0;
}

.products-carousel__track-wrap {
  overflow: hidden;
  /* Bordes suaves: el carril sigue llegando al borde visual sin “corte” duro */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
}

/* Marquesina: dos carriles (original + clon), movimiento lineal continuo hacia la izquierda */
.products-carousel__marquee {
  display: flex;
  flex-flow: row nowrap;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  /* Fallback antes de que JS fije --marquee-duration */
  --marquee-duration: 14s;
  --marquee-loop-px: 50%;
  backface-visibility: hidden;
}

.products-carousel--marquee .products-carousel__marquee {
  animation: prodenav-marquee-rtl var(--marquee-duration) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* No pausar con :hover en escritorio: el cursor encima de las tarjetas dejaba el carrusel quieto
   (en móvil no hay hover y sí se veía mover). Teclado: focus-within sigue pausando por accesibilidad. */
.products-carousel--marquee:focus-within .products-carousel__marquee,
.products-carousel--marquee.is-marquee-touch-paused .products-carousel__marquee {
  animation-play-state: paused;
}

.products-carousel__track {
  display: flex;
  /* gap solo como respaldo: el espacio visible va con margin en .product-card (evita * { margin:0 } y subpixel) */
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
  scrollbar-width: none;
  flex: 0 0 auto;
  align-items: stretch;
}

.products-carousel--marquee .products-carousel__track {
  overflow-x: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* Hueco entre el último ítem del carril y el clon (marquee con gap:0 entre carriles).
   padding-right entra en scrollWidth → el JS ajusta --marquee-loop-px y el bucle sigue alineado. */
.products-carousel--marquee .products-carousel__track:not(.products-carousel__track--clone) {
  padding-right: 2rem;
}

.products-carousel__track::-webkit-scrollbar {
  display: none;
}

.products-carousel--marquee .products-carousel__arrow {
  display: none;
}

/* Sin marquesina (p. ej. prefers-reduced-motion): el wrap limita ancho y el carril hace scroll horizontal */
.products-carousel:not(.products-carousel--marquee) .products-carousel__marquee {
  max-width: 100%;
  overflow: hidden;
}

.products-carousel:not(.products-carousel--marquee) .products-carousel__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.products-carousel__empty {
  flex: 1 1 auto;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-light);
  line-height: 1.65;
  font-size: var(--text-base);
}

.products-carousel__empty a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.products-carousel__empty a:hover {
  color: var(--color-primary-dark);
}

.products-carousel--empty .products-carousel__track {
  justify-content: center;
}

.product-card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Carrusel «¿Qué buscas?»: separación fija entre tarjetas (scrollWidth / marquesina lo incluyen siempre) */
.products-carousel__track .product-card {
  margin-right: 2rem;
}

.products-carousel__track .product-card:last-child {
  margin-right: 0;
}

.product-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.product-card__img {
  display: block;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: #f5f5f5;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__img--placeholder {
  min-height: inherit;
  background: linear-gradient(145deg, #ececec 0%, #e4e4e4 100%);
}

.product-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.product-card:hover .product-card__name {
  color: var(--color-primary-dark);
}

/* Products carousel responsive: ver sección RESPONSIVE */

/* ========== CLIENTES - Carrusel de logos ========== */
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--text-base);
  margin-top: -0.25rem;
  margin-bottom: 2rem;
}

.clients-carousel {
  position: relative;
  padding: 0 48px;
  margin: 2rem -48px 0;
}

.clients-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s, color 0.2s;
}

.clients-carousel__arrow:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.clients-carousel__arrow--prev { left: 0; }
.clients-carousel__arrow--next { right: 0; }

.clients-carousel__track-wrap {
  overflow: hidden;
}

.clients-carousel__marquee {
  display: flex;
  flex-flow: row nowrap;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  --marquee-duration: 48s;
  --marquee-loop-px: 50%;
  backface-visibility: hidden;
}

.clients-carousel--marquee .clients-carousel__marquee {
  animation: prodenav-marquee-rtl var(--marquee-duration) linear infinite;
  will-change: transform;
}

/* Misma lógica que productos: sin pausa por hover del ratón; sí al enfocar con teclado o al tocar. */
.clients-carousel--marquee:focus-within .clients-carousel__marquee,
.clients-carousel--marquee.is-marquee-touch-paused .clients-carousel__marquee {
  animation-play-state: paused;
}

.clients-carousel__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 0;
  align-items: center;
  scrollbar-width: none;
  flex: 0 0 auto;
}

.clients-carousel--marquee .clients-carousel__track {
  overflow-x: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.clients-carousel__track::-webkit-scrollbar {
  display: none;
}

.clients-carousel--marquee .clients-carousel__arrow {
  display: none;
}

.clients-carousel:not(.clients-carousel--marquee) .clients-carousel__marquee {
  max-width: 100%;
  overflow: hidden;
}

.clients-carousel:not(.clients-carousel--marquee) .clients-carousel__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* Desplazamiento -50% = un carril (cuando el marquee contiene 2 carriles idénticos).
   El JS puede sobrescribir --marquee-loop-px con pixeles exactos para sub-pixel smoothness. */
@keyframes prodenav-marquee-rtl {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--marquee-loop-px, 50%)), 0, 0);
  }
}

.clients-carousel__slide {
  flex: 0 0 auto;
  width: 200px;
  height: 120px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border-radius: 0;
  border: 0;
  margin-right: 2rem;
  overflow: hidden;
}

.clients-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Clients carousel responsive: ver sección RESPONSIVE */

/* ========== BOTONES ========== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-primary);
  color: white !important;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary) !important;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white !important;
}

/* ========== FOOTER - Formato alto estándar ========== */
/* Rejilla hexagonal (SVG): capa duplicada desfasada + velos suaves para relieve sin competir con el texto */
.footer {
  background-color: #e6e8eb;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%, rgba(90, 98, 112, 0.035) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2756%27%20height%3D%27100%27%20viewBox%3D%270%200%2056%20100%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23788496%27%20stroke-width%3D%270.45%27%20stroke-opacity%3D%270.3%27%3E%3Cpath%20d%3D%27M28%200l27%2015.588v31.176L28%2062.353%201%2046.765V15.588L28%200%27%2F%3E%3Cpath%20d%3D%27M28%2037.647l27%2015.588v31.176L28%20100%201%2084.412V53.235L28%2037.647%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2756%27%20height%3D%27100%27%20viewBox%3D%270%200%2056%20100%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23788496%27%20stroke-width%3D%270.45%27%20stroke-opacity%3D%270.3%27%3E%3Cpath%20d%3D%27M28%200l27%2015.588v31.176L28%2062.353%201%2046.765V15.588L28%200%27%2F%3E%3Cpath%20d%3D%27M28%2037.647l27%2015.588v31.176L28%20100%201%2084.412V53.235L28%2037.647%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
    radial-gradient(ellipse 140% 55% at 50% 0%, rgba(255, 255, 255, 0.4), transparent 58%);
  background-size: auto, 56px 100px, 56px 100px, 100% 100%;
  background-position: 0 0, 0 0, 28px 50px, 50% 0;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  color: #333;
  margin-top: 3.2rem;
}

.footer .footer-title,
.footer h4 {
  color: #333;
}

.footer a {
  color: #444;
}

.footer a:hover {
  color: var(--color-primary);
}

.footer .footer-tagline,
.footer .footer-contact__label,
.footer .footer__bottom,
.footer .footer__bottom p {
  color: #555;
}

.footer .footer-contact__label {
  color: #666;
}

.footer .footer__bottom {
  border: none;
  border-top: 1px solid rgba(88, 96, 108, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(236, 237, 240, 0.55) 100%);
}

.footer .footer-grid {
  border: none;
}

.footer .footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid var(--color-primary);
  border-radius: 7px;
  color: var(--color-primary) !important;
  background: rgba(76, 143, 169, 0.07);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.footer .footer-cta:hover {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(76, 143, 169, 0.25);
}

.footer-contact-prompt {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.main-footer {
  color: rgba(236, 240, 241, 0.95);
  margin-top: 4rem;
}

.footer__main {
  padding: 3rem 0 2rem;
}

.footer .container,
.main-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.footer a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--color-primary);
}

.main-footer a {
  color: rgba(236, 240, 241, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.main-footer a:hover {
  color: var(--color-primary);
}

.footer a:focus-visible,
.main-footer a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(10.5rem, 0.82fr);
  column-gap: 2.75rem;
  row-gap: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

.footer .footer-grid { border: none; }

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-col--brand {
    grid-column: auto;
    max-width: none;
  }
  .footer-col--social {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
  .footer-col--social .footer-title {
    margin-bottom: 0.75rem;
    flex: none;
  }
}

.footer-col {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.footer-col--brand {
  max-width: 22rem;
  padding-right: 0.35rem;
}

.footer-col--social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.05rem;
}

.footer-logo {
  height: auto;
  max-width: 240px;
  max-height: 120px;
  width: auto;
}

.footer-tagline {
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 0.85rem;
  max-width: 28ch;
  color: #444;
  text-align: left;
}

.footer .footer-tagline { color: var(--color-text); }
.main-footer .footer-tagline { color: rgba(236, 240, 241, 0.9); }

.footer-contact-prompt {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}

.footer-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.footer-cta:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}

.footer-title,
.footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.8rem;
  line-height: 1.35;
  color: #444;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #333;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer .footer-title,
.footer h4 { color: #444; }
.main-footer .footer-title,
.main-footer h4 { color: #fff; }

.footer-contact,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-contact li {
  margin-bottom: 0;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.footer-contact__icon {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--color-primary);
}

.footer-contact__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  color: #444;
  line-height: 1.35;
}

.footer-contact address,
.footer-contact a,
.footer-contact span {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #333;
  font-weight: 400;
}

.footer .footer-contact__label { color: #444; }
.main-footer .footer-contact__label { color: rgba(236, 240, 241, 0.6); }

.footer-contact address {
  font-style: normal;
  margin: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.footer-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(165deg, #e4e5e8 0%, #caccd1 100%);
  color: var(--color-text) !important;
  border: 1px solid rgba(88, 96, 108, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.footer-social__btn:hover {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(76, 143, 169, 0.3);
  transform: translateY(-1px);
}

.footer-social__btn .icon {
  width: 18px;
  height: 18px;
}

.footer__bottom,
.footer-bottom {
  padding: 1.2rem 0;
  text-align: left;
  font-size: 0.8rem;
  color: #666;
}

.footer__bottom .container,
.footer-bottom .container {
  text-align: left;
}

.footer .footer__bottom { color: var(--color-text-light); }
.main-footer .footer__bottom,
.main-footer .footer-bottom { color: rgba(236, 240, 241, 0.7); }

.footer__bottom p,
.footer-bottom p {
  margin: 0;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer__copyright {
  margin: 0;
}

.footer-legal {
  font-size: inherit;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--color-primary, #4c8fa9);
}

.footer-legal__sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

/* Páginas legales (borrador) */
.page-legal .legal-draft-notice {
  background: #fff8e6;
  border-left: 4px solid #e2a100;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.page-legal .legal-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.page-legal .legal-list {
  padding-left: 1.25rem;
}

.page-legal .legal-list li {
  margin-bottom: 0.75rem;
}

/* Aviso informativo cookies (localStorage; no bloquea Turnstile) */
.cookie-info-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(15, 15, 18, 0.97);
  color: #eceff1;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-info-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-info-bar__text {
  flex: 1 1 280px;
  margin: 0;
}

.cookie-info-bar__text a {
  color: #7ec8e3;
  text-decoration: underline;
}

.cookie-info-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-info-bar__btn {
  background: var(--color-primary, #4c8fa9);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.cookie-info-bar__btn:hover {
  filter: brightness(1.05);
}

body.cookie-info-bar-visible {
  padding-bottom: 5.5rem;
}

/* WhatsApp flotante y Scroll to top */
.whatsapp-float {
  position: fixed;
  bottom: 78px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  color: #fff !important;
}

.whatsapp-float .icon {
  width: 28px;
  height: 28px;
}

.whatsapp-float__text {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--color-text-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.whatsapp-float:hover .whatsapp-float__text {
  opacity: 1;
}

.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d0d1d3;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, background 0.2s;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--color-primary);
  color: #fff;
}

.scroll-to-top .icon {
  width: 20px;
  height: 20px;
}

/* Scroll queda abajo (24px), WhatsApp arriba (78px) para no superponerse */

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ========== FORMULARIO ========== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== FAQ ========== */
.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ========== PÁGINAS CATEGORÍAS ========== */
.main-header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.main-footer {
  background-color: #1d2936;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 46%, rgba(0, 0, 0, 0.14) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2756%27%20height%3D%27100%27%20viewBox%3D%270%200%2056%20100%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ecf0f1%27%20stroke-width%3D%270.45%27%20stroke-opacity%3D%270.08%27%3E%3Cpath%20d%3D%27M28%200l27%2015.588v31.176L28%2062.353%201%2046.765V15.588L28%200%27%2F%3E%3Cpath%20d%3D%27M28%2037.647l27%2015.588v31.176L28%20100%201%2084.412V53.235L28%2037.647%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2756%27%20height%3D%27100%27%20viewBox%3D%270%200%2056%20100%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ecf0f1%27%20stroke-width%3D%270.45%27%20stroke-opacity%3D%270.08%27%3E%3Cpath%20d%3D%27M28%200l27%2015.588v31.176L28%2062.353%201%2046.765V15.588L28%200%27%2F%3E%3Cpath%20d%3D%27M28%2037.647l27%2015.588v31.176L28%20100%201%2084.412V53.235L28%2037.647%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),
    linear-gradient(180deg, #1a252f 0%, #2c3e50 50%, #263645 100%);
  background-size: auto, 56px 100px, 56px 100px, auto;
  background-position: 0 0, 0 0, 28px 50px, 0 0;
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  color: #ecf0f1;
  padding: 40px 0 0;
  margin-top: 60px;
}
.main-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(10.5rem, 0.82fr);
  column-gap: 2.75rem;
  row-gap: 2rem;
  padding-bottom: 2rem;
}
.main-footer .footer-col { list-style: none; }
.main-footer .footer-col p, .main-footer .footer-col h4 { margin: 0 0 0.5rem; }
.page-hero { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: white; padding: 60px 20px; text-align: center; }
.page-hero--defensa-bg {
    background-color: var(--color-primary-dark);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
        url("../images/categories/defensa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.95; max-width: 700px; margin: 0 auto; }
.page-hero .hero-content { max-width: 48rem; margin: 0 auto; }
.page-hero__subtitle {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-heading-soft);
  opacity: 0.98;
  margin: 0 auto 0.5rem;
  max-width: 40rem;
}
.page-hero--contacto-bg {
  background-color: var(--color-primary-dark);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.45)),
    url("../images/image-2.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  min-height: min(42vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 9vw, 5.5rem) 1.25rem;
}
.page-hero--contacto-bg .contacto-hero-lead {
  font-size: var(--text-lg);
  font-weight: 600;
  opacity: 1;
  margin-bottom: 0.75rem;
}
.page-hero--contacto-bg .hero-content p {
  margin-left: auto;
  margin-right: auto;
}
/* Catálogo por subcategoría (sector) */
.product-catalog { margin: 2rem 0; }
.product-subsection {
  margin-bottom: 2.75rem;
  scroll-margin-top: 5.5rem;
}
.product-subsection:last-child { margin-bottom: 0; }
.product-subsection__title {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: var(--font-weight-heading-soft);
  color: var(--color-heading-accent);
  margin: 0 0 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.product-catalog .product-grid { margin: 0 0 0.25rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.product-grid .product-card { display: block; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.product-grid .product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.product-grid .product-card picture, .product-grid .product-card img { width: 100%; height: 160px; object-fit: cover; }
.product-grid .product-card h3 { padding: 1rem; font-size: 0.95rem; margin: 0; color: var(--color-text); }
.cta-box { background: var(--color-bg-alt); padding: 2rem; border-radius: 8px; text-align: center; margin-top: 2rem; }
.cta-box h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.top-contact, .top-social { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.has-dropdown { position: relative; }
.has-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-radius: 6px; min-width: 200px; padding: 0.5rem 0; z-index: 100; list-style: none; }
.has-dropdown:hover .dropdown { display: block; }
.has-dropdown .dropdown a { display: block; padding: 10px 15px; color: var(--color-text); }
.has-dropdown .dropdown a:hover, .has-dropdown .dropdown a.active { background: rgba(76,143,169,0.1); color: var(--color-primary); }
.main-content { padding: 40px 0 60px; }

/* Conócenos - página (mismo patrón que contacto / productos) */
.page-section { margin-bottom: 2.5rem; }
.page-section:last-child { margin-bottom: 0; }

/* Conócenos / Contacto: aire bajo el header (padding evita colapso con header sticky) */
.page-conocenos .header + *,
.page-contacto .header + * {
  padding-top: clamp(2.75rem, 8vw, 5rem);
}
.page-conocenos .main-content,
.page-contacto .main-content {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
}
/* Contacto: hero a ancho completo; el aire lo da el propio .page-hero */
.page-contacto .main-content {
  padding-top: 0;
}

.conocenos-intro h1,
.contacto-intro h1 {
  font-size: var(--title-page);
  font-weight: var(--font-weight-heading);
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}
.conocenos-intro h2,
.contacto-intro h2 {
  font-size: var(--subtitle-page);
  font-weight: var(--font-weight-heading-soft);
  color: var(--color-heading-accent);
  margin-bottom: 0.75rem;
}
.conocenos-tagline { font-size: var(--text-lg); font-weight: 600; color: var(--color-text); margin-bottom: 1.25rem; }
.conocenos-intro .conocenos-split { margin-top: 0.25rem; }
.conocenos-split__text > p, .conocenos-oferta > p, .conocenos-cta > p { margin-bottom: 1rem; line-height: 1.65; color: var(--color-text-light); }
.conocenos-destacado { margin: 1.5rem 0 0.75rem; line-height: 1.5; color: var(--color-text); }
.conocenos-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.conocenos-split__media { border-radius: 8px; overflow: hidden; min-height: 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.conocenos-split__media img { width: 100%; height: auto; display: block; object-fit: cover; object-position: center center; }
.conocenos-list { margin: 1rem 0 1.5rem 1.25rem; padding-left: 0.5rem; }
.conocenos-list--compact { margin-top: 0.5rem; margin-bottom: 0; }
.conocenos-list li { margin-bottom: 0.5rem; line-height: 1.6; color: var(--color-text-light); }
@media (max-width: 768px) {
  .conocenos-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .conocenos-split__media { order: -1; max-height: 280px; }
  .conocenos-split__media img { max-height: 280px; width: 100%; object-fit: cover; }
}
.conocenos-oferta h3 { font-size: var(--title-section); font-weight: var(--font-weight-heading-soft); color: var(--color-heading-accent); margin-bottom: 0.75rem; }
.conocenos-cta { background: var(--color-bg-alt); padding: 1.75rem; border-radius: 8px; }
.conocenos-contacto {
  font-size: 1rem;
  margin: 1rem 0 0.5rem !important;
}
.conocenos-contacto.contact-snippet .contact-links-stack a {
  color: var(--color-primary);
  font-weight: 600;
}
.conocenos-contacto.contact-snippet .contact-links-stack a:hover {
  color: var(--color-primary-dark);
}
.conocenos-cierre { font-weight: 600; color: var(--color-text) !important; margin-bottom: 1.25rem !important; }
.conocenos-cta .btn { margin-top: 0.25rem; }

.conocenos-valores h3 { font-size: var(--title-section); font-weight: var(--font-weight-heading-soft); color: var(--color-heading-accent); margin-bottom: 1.25rem; }
.conocenos-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.conocenos-block { background: var(--color-bg-alt); padding: 1.25rem 1.5rem; border-radius: 8px; }
.conocenos-block h4 { font-size: var(--title-block); font-weight: var(--font-weight-heading); color: var(--color-heading-accent); margin-bottom: 0.5rem; }
.conocenos-block p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--color-text-light); }
@media (max-width: 768px) { .conocenos-blocks { grid-template-columns: 1fr; } }

/* Contacto - misma estructura que conocenos */
.contacto-tagline { font-size: var(--text-lg); font-weight: 600; color: var(--color-text); margin-bottom: 1.5rem; }
.contacto-intro > p { margin-bottom: 1rem; line-height: 1.65; color: var(--color-text-light); }
.contacto-canales h3, .contacto-form-section h3, .contacto-faq h3 { font-size: var(--title-section); font-weight: var(--font-weight-heading-soft); color: var(--color-heading-accent); margin-bottom: 1rem; }
.contacto-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.contacto-block { background: var(--color-bg-alt); padding: 1.25rem 1.5rem; border-radius: 8px; }
.contacto-block h4 { font-size: var(--title-block); font-weight: var(--font-weight-heading); color: var(--color-heading-accent); margin-bottom: 0.5rem; }
.contacto-block p { margin: 0 0 0.35rem; font-size: 0.9375rem; line-height: 1.6; color: var(--color-text-light); }
.contacto-block p:last-child { margin-bottom: 0; }
.contacto-block a { color: var(--color-primary); font-weight: 500; }
.contacto-block a:hover { color: var(--color-primary-dark); }
.contacto-form-section { background: var(--color-bg-alt); padding: 0.875rem; border-radius: 8px; margin-bottom: 1.25rem; }
.contacto-form-section > p { margin-bottom: 0.625rem; color: var(--color-text-light); line-height: 1.6; }
.contacto-form-wrap { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: stretch; max-width: 720px; margin: 0 auto; }
.contacto-form-wrap--ajax { position: relative; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  min-height: 1.25em;
}
.form-status.ok { color: #15803d; font-weight: 600; }
.form-status.bad { color: #b91c1c; }

.contact-form .form-group { margin-bottom: 0.5rem; }
.contact-form .form-group--turnstile:not([hidden]) { margin-bottom: 0.75rem; min-height: 4.5rem; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-primary); }
.contacto-faq .contacto-blocks { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .contacto-blocks { grid-template-columns: 1fr; }
  .contacto-faq .contacto-blocks { grid-template-columns: 1fr; }
}

/* Productos (categoria-producto) - mismo formato que conocenos/contacto */
.productos-intro h1 { font-size: var(--text-3xl); margin-bottom: 0.5rem; color: var(--color-text); }
.productos-intro h2 { font-size: var(--text-xl); font-weight: 600; color: var(--color-primary); margin-bottom: 0.75rem; }
.productos-tagline { font-size: var(--text-lg); font-weight: 600; color: var(--color-text); margin-bottom: 1.5rem; }
.productos-intro > p { margin-bottom: 1rem; line-height: 1.65; color: var(--color-text-light); }
.productos-cta-text { font-weight: 600; color: var(--color-primary); }
.productos-soluciones h3, .productos-clientes h3 { font-size: var(--text-lg); font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.productos-soluciones > p, .productos-clientes > p { margin-bottom: 1rem; line-height: 1.65; color: var(--color-text-light); }
.productos-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.productos-block { background: var(--color-bg-alt); padding: 1.25rem 1.5rem; border-radius: 8px; }
.productos-block h4 { font-size: var(--text-base); font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; }
.productos-block p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--color-text-light); }
.productos-cta { background: var(--color-bg-alt); padding: 1.75rem; border-radius: 8px; }
.productos-cta > p { margin-bottom: 0.5rem; line-height: 1.65; color: var(--color-text-light); }
.productos-contacto {
  font-size: 1rem;
  margin: 0.75rem 0 1rem !important;
}
.productos-contacto.contact-snippet .contact-links-stack a {
  font-weight: 600;
  color: var(--color-primary);
}
.productos-contacto.contact-snippet .contact-links-stack a:hover {
  color: var(--color-primary-dark);
}
@media (max-width: 768px) { .productos-blocks { grid-template-columns: 1fr; } }

/* Intro section - sub-landing categorías */
.intro-section--categories { text-align: center; padding: 3rem 0 3.5rem; max-width: 52rem; margin: 0 auto; }
.intro-section__title { font-size: var(--text-3xl); font-weight: 700; color: var(--color-text); margin-bottom: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; }
.intro-section__text { font-size: var(--text-lg); color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.65; }
.intro-section__cta { font-size: var(--text-base); font-weight: 600; color: var(--color-primary); }

.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
/* Landing productos: 4 bloques = mismo criterio que el menú (Defensa | Energía | Minería e industria | Transporte) */
.categories-grid--cuatro {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.category-card { display: block; text-decoration: none; color: inherit; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; min-height: 280px; }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.category-card__bg { position: absolute; inset: 0; z-index: 0; }
.category-card__bg picture, .category-card__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); z-index: 1; }
.category-card__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 1.75rem 1.5rem; color: #fff; text-align: left; }
.category-card__content h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.35rem; letter-spacing: 0.04em; color: #fff; }
.category-card__content p { font-size: var(--text-sm); margin: 0 0 1rem; opacity: 0.95; line-height: 1.5; }
.category-card__btn { display: inline-block; padding: 0.5rem 1.25rem; border: 2px solid rgba(255,255,255,0.9); border-radius: 6px; font-size: var(--text-sm); font-weight: 600; color: #fff; width: fit-content; transition: background 0.25s, border-color 0.25s; }
.category-card:hover .category-card__btn { background: rgba(255,255,255,0.95); color: var(--color-primary); border-color: #fff; }

/* Fallback: tarjeta sin imagen (mantiene compatibilidad) */
.category-card:not(.category-card--image) { background: white; padding: 2rem; min-height: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.category-card:not(.category-card--image) .category-card__content { min-height: auto; color: inherit; padding: 0; }
.category-card:not(.category-card--image) h3 { color: var(--color-primary); }
.category-card:not(.category-card--image) p { color: var(--color-text-light); }

/* ========== RESPONSIVE - Proporciones por dispositivo ========== */

/* MacBook (1440px) */
@media (max-width: 1440px) {
  .hero--carousel { min-height: 600px; }
  .hero-slide .hero-content { padding: 60px 24px; }
  .section { padding: 50px 0; }
  .container { padding: 0 24px; }
}

/* Notebook (1366px) */
@media (max-width: 1366px) {
  .hero--carousel { min-height: 560px; }
  .footer-grid { gap: 1.6rem; }
}

/* iPad / iPad Pro (1024px) */
@media (max-width: 1024px) {
  .hero--carousel { min-height: 520px; }
  .hero-slide .hero-content h1 { font-size: 2rem; }
  .hero-slide .hero-content h2 { font-size: 1.4rem; }
  .section { padding: 45px 0; }
  .section-title,
  .process-section__title { font-size: 2.4rem; }
  .products-section .section-title { font-size: 2.2rem; }
  .feature-card { padding: 28px; }
  .feature-card h3 { font-size: 1.25rem; }
  .process-steps { gap: 1.5rem 1.25rem; margin-top: 2.5rem; }
  .process-step__icon { width: 64px; height: 64px; margin-bottom: 1.25rem; }
  .product-card { width: 180px; }
  .product-card__img { height: 140px; }
  .clients-carousel__slide { width: 180px; height: 110px; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2rem;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
    max-width: 40rem;
    padding-right: 0;
  }
  .footer-col--social {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid rgba(88, 96, 108, 0.12);
  }
  .footer-col--social .footer-title {
    margin-bottom: 0;
    flex: 1 1 8rem;
  }
  .footer-col--social .footer-social {
    flex: 0 0 auto;
  }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-section__title { font-size: var(--text-2xl); }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .header__logo img,
  .header__logo picture img,
  .logo img,
  .logo picture img { height: 54px; max-height: none; width: auto; object-fit: contain; }
  .header__logo-svg,
  .logo .header__logo-svg { height: 54px; max-height: none; width: auto; }
  .top-bar { padding: 0.45rem 0; font-size: 0.8rem; }
  .top-bar__inner { gap: 0.6rem; }
  .top-bar__contact { gap: 0.6rem; }
  .hero--carousel { min-height: 520px; }
  .hero-slide .hero-content { padding: 50px 20px; }
  .hero-slide .hero-content h1 { font-size: 1.75rem; }
  .hero-slide .hero-content h2 { font-size: 1.25rem; }
  .hero__arrow { width: 40px; height: 40px; }
  .hero__arrow--prev { left: 12px; }
  .hero__arrow--next { right: 12px; }
  .section { padding: 40px 0; }
  .section-title,
  .process-section__title,
  .products-section .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-card { padding: 24px; }
  .feature-card h3 { font-size: 1.2rem; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
  .process-step p { text-align: center; max-width: none; }
  .container { padding: 0 20px; }
  .products-carousel { padding: 0 40px; margin: 0 -24px; }
  .products-carousel__arrow { width: 36px; height: 36px; }
  .product-card { width: 160px; }
  .product-card__img { height: 130px; }
  .clients-carousel { padding: 0 40px; margin: 1.5rem -24px 0; }
  .clients-carousel__arrow { width: 36px; height: 36px; }
  .clients-carousel__slide { width: 160px; height: 100px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .footer-col--brand {
    grid-column: auto;
    max-width: none;
  }
  .footer-col--social {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
  .footer-col--social .footer-title {
    margin-bottom: 0.75rem;
    flex: none;
  }
  .footer__main {
    padding: 2.25rem 0 1.5rem;
  }
  .categories-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .category-card { min-height: 240px; }
  .category-card__content { min-height: 240px; padding: 1.5rem 1.25rem; }
  .intro-section__title { font-size: 1.5rem; }
}

/* Phablet (600px) */
@media (max-width: 600px) {
  .categories-grid { gap: 1rem; }
  .category-card { min-height: 220px; }
  .category-card__content { min-height: 220px; padding: 1.25rem 1rem; }
  .intro-section--categories { padding: 2rem 0 2.5rem; }
  .intro-section__title { font-size: 1.35rem; }
  .header__logo img,
  .header__logo picture img,
  .header__logo-svg,
  .logo img,
  .logo picture img,
  .logo .header__logo-svg { height: 50px; max-height: none; }
  .top-bar {
    font-size: 0.75rem;
    padding: 0.45rem 0;
  }
  .top-bar .container { padding: 0 16px; }
  .top-bar__inner { gap: 0.5rem; }
  .top-bar__contact { gap: 0.5rem; }
  .top-bar__right { gap: 0.35rem; }
  .hero--carousel { min-height: 420px; }
  .hero-slide .hero-content { padding: 40px 16px; }
  .hero-slide .hero-content h1 { font-size: 1.5rem; }
  .hero-slide .hero-content h2 { font-size: 1.1rem; }
  .hero-slide .hero-content .btn { padding: 10px 22px; font-size: 0.875rem; }
  .section { padding: 35px 0; }
  .section-title,
  .process-section__title,
  .products-section .section-title { font-size: 1.75rem; }
  .feature-card { padding: 20px; }
  .feature-card h3 { font-size: 1.1rem; }
  .product-card { width: 150px; }
  .product-card__img { height: 120px; }
  .clients-carousel__slide { width: 150px; height: 92px; }
}

/* iPhone / Celulares grandes (480px) */
@media (max-width: 480px) {
  .header__logo img,
  .header__logo picture img,
  .header__logo-svg,
  .logo img,
  .logo picture img,
  .logo .header__logo-svg { height: 46px; max-height: none; }
  .top-bar {
    font-size: 0.7rem;
    padding: 0.4rem 0;
  }
  .top-bar .container { padding: 0 14px; }
  /* Top bar corto (≤480px): solo teléfonos y correos */
  .top-bar__hours,
  .top-bar__right {
    display: none !important;
  }
  .top-bar__separator {
    display: none;
  }
  .top-bar__inner {
    gap: 0.4rem;
    justify-content: center;
  }
  .top-bar__contact {
    gap: 0.4rem;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
  .top-bar__contact-group,
  .top-bar__contact-values {
    justify-content: center;
  }
  .hero--carousel { min-height: 380px; }
  .hero-slide .hero-content { padding: 32px 14px; }
  .hero-slide .hero-content h1 { font-size: 1.35rem; }
  .hero-slide .hero-content h2 { font-size: 1rem; }
  .section { padding: 30px 0; }
  .section-title,
  .process-section__title,
  .products-section .section-title { font-size: 1.5rem; }
  .products-section .section-title { max-width: none; }
  .feature-card { padding: 18px; }
  .feature-card h3 { font-size: 1rem; }
  .process-step__icon { width: 56px; height: 56px; margin-bottom: 1rem; }
  .process-step .icon--process { width: 48px; height: 48px; }
  .products-carousel { padding: 0 32px; margin: 0 -16px; }
  .products-carousel__arrow { width: 32px; height: 32px; }
  .product-card { width: 140px; }
  .product-card__img { height: 110px; }
  .clients-carousel { padding: 0 32px; margin: 1.25rem -16px 0; }
  .clients-carousel__arrow { width: 32px; height: 32px; }
  .clients-carousel__slide { width: 140px; height: 86px; }
  .container { padding: 0 16px; }
}

/* Celulares pequeños (375px) */
@media (max-width: 375px) {
  .header__logo img,
  .header__logo picture img,
  .header__logo-svg,
  .logo img,
  .logo picture img,
  .logo .header__logo-svg { height: 42px; max-height: none; }
  .top-bar {
    font-size: 0.65rem;
    padding: 0.35rem 0;
  }
  .top-bar .container { padding: 0 12px; }
  .top-bar__inner { gap: 0.35rem; }
  .top-bar__contact { gap: 0.35rem; }
  .top-bar__link,
  .top-bar__hours { font-size: inherit; }
  .hero--carousel { min-height: 340px; }
  .hero-slide .hero-content { padding: 28px 12px; }
  .hero-slide .hero-content h1 { font-size: 1.2rem; }
  .hero-slide .hero-content h2 { font-size: 0.9rem; }
  .section { padding: 26px 0; }
  .section-title,
  .process-section__title,
  .products-section .section-title { font-size: 1.35rem; }
  .feature-card { padding: 16px; }
  .product-card { width: 130px; }
  .product-card__img { height: 100px; }
  .clients-carousel__slide { width: 130px; height: 80px; }
  .container { padding: 0 14px; }
  .footer__main { padding: calc(1.6rem + 5px) 0 1rem; }
}

/* ========== UTILIDADES ========== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* =============================================================================
   Modernización UI (2026-04) — Conservadora: tokens, ritmo, sombras, foco.
   Volver atrás: git reset --hard restore/pre-modern-ui-2026-04-04
   (ver RESTORE-UI.md)
   ============================================================================= */
:root {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-out);
  --color-bg-subtle: #f3f5f7;
  --color-border-soft: rgba(15, 23, 42, 0.08);
}

body {
  background: linear-gradient(180deg, var(--color-bg-subtle) 0%, var(--color-bg) 28%);
  background-attachment: fixed;
  line-height: var(--line-height-body, 1.65);
  -webkit-font-smoothing: antialiased;
}

.header,
.header-main {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--color-border-soft), var(--shadow-xs);
}

@supports not (backdrop-filter: blur(12px)) {
  .header,
  .header-main {
    background: #fff;
  }
}

.top-bar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header__nav-link {
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.header__nav-link:hover {
  transform: translateY(-1px);
}

.product-grid .product-card,
.cta-box,
.feature-card,
.conocenos-block,
.conocenos-split__media {
  border-radius: var(--radius-md);
}

.product-grid .product-card {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-grid .product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.btn,
.btn-primary,
.btn-secondary {
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  box-shadow: 0 1px 4px rgba(76, 143, 169, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(76, 143, 169, 0.4);
}

.main-footer {
  border-top: 1px solid var(--color-border-soft);
}

.breadcrumb {
  border-bottom: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.65);
}

a:focus-visible,
button:focus-visible,
.header__nav-link:focus-visible,
.product-grid .product-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.section-alt,
.conocenos-cta,
.conocenos-block {
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-xs);
}

.product-subsection__title {
  border-bottom-color: var(--color-border-soft);
}
