/* ===== Componentes reutilizables ===== */
/* --- hero.css --- */
/**
 * METRINDUST — Hero (según boceto HOME SLIDER)
 * Cabecera transparente sobre foto de laboratorio + overlay azul degradado.
 */

:root {
  --metr-accent: #2672ff;
  --metr-accent-hover: #1a5fe0;
  --metr-cta-text: #113373;
  --metr-white: #ffffff;
  --metr-overlay: linear-gradient(
    108.41deg,
    rgba(17, 51, 115, 0.72) 13.22%,
    rgba(26, 80, 178, 0.72) 44.51%,
    rgba(38, 114, 255, 0.72) 77.07%
  );
  --metr-overlay2: linear-gradient(
    335deg,
    rgba(33, 59, 164, 0.72) 0%,
    rgba(16, 41, 85, 0.72) 100%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: #2b3545;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ——— Layout: Header / Main / Footer ——— */
/* Solo index.html (home clásico): header sobre el hero */
body:not(.page-internal):not(.page-home--header-bar) .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}

.site-header {
  font-family: "Roboto", sans-serif;
}

#main-content {
  flex: 1;
  display: block;
}

/* ——— Hero pantalla completa ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/home/hero-slider.png") center / cover no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--metr-overlay2);
  z-index: 1;
  pointer-events: none;
}

.top-bar {
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 44px;
  padding: 0.55rem 0;
}

.top-bar-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--metr-white);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  transition: opacity 0.2s ease;
}

.top-bar-item:hover {
  color: var(--metr-white);
  opacity: 0.9;
}

.top-bar-item .bi {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.top-bar-contact .top-bar-item + .top-bar-item {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-zone {
  background: var(--metr-accent);
  color: var(--metr-white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1.35rem;
  border-radius: 50rem;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-zone:hover {
  background: var(--metr-accent-hover);
  color: var(--metr-white);
  transform: translateY(-1px);
}

/* ——— Navegación ——— */
.main-nav {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Solo el nav permanece visible al hacer scroll; la barra superior (top-bar) se va con la página */
.main-nav.main-nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* Por encima del header con top-bar mientras esta sube, por debajo de modales Bootstrap */
  z-index: 102;
  background: rgba(11, 42, 133, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.main-nav .navbar-brand {
  padding: 0.25rem 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav .nav-link {
  color: var(--metr-white) !important;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  padding: 0.5rem 0.9rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  position: relative;
}

.main-nav .nav-link.active,
.main-nav .nav-link[aria-current="page"] {
  font-weight: 700;
}

.main-nav .nav-link:hover {
  opacity: 0.92;
}

/* Subrayado animado: css/animations.css */

.main-nav .nav-item__caret {
  margin-left: 0.15rem;
  vertical-align: 0.05em;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  padding: 0.35rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  filter: invert(1);
}



/* ——— Contenido central ——— */
.hero {
  color: var(--metr-white);
}

.hero-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(7.5rem, 18vh, 11rem) 1.25rem clamp(5rem, 12vh, 7rem);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  color: var(--metr-white);
}

.hero-title {
  margin: 0;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.2vw + 1.25rem, 4.5rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--metr-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-title br {
  display: block;
}

.hero-sub {
  margin: 1.5rem 0 0;
  font-family: "Roboto", "Montserrat", sans-serif;
  font-size: clamp(1rem, 1vw + 0.85rem, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--metr-white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  background: var(--metr-white);
  color: var(--metr-cta-text) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
  border-radius: 50rem;
  border: none;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-quote:hover,
.btn-quote:focus-visible {
  background: #1a5fe0;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* ——— Badge INACAL: inferior izquierda; mismo eje horizontal que la columna del logo ——— */
.hero-badge {
  position: absolute;
  z-index: 6;
  left: 1rem;
  top: auto;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  max-width: min(300px, calc(100% - 2rem));
}







.hero-badge-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(72px, 12vw, 104px);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

/* Indicador scroll: icono “mouse” + rueda (minimal) */
.hero-scroll {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-decoration: none;
  transform: translateX(-50%);
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-scroll__mouse {
  display: block;
  width: 38px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.hero-scroll__wheel {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 5px;
  height: 10px;
  margin-left: -2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  animation: heroScrollWheel 1.8s ease-in-out infinite;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
  outline: none;
}

.hero-scroll:focus-visible .hero-scroll__mouse {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 6px;
}

@keyframes heroScrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  70% {
    opacity: 0.15;
    transform: translateY(18px);
  }

  100% {
    opacity: 0;
    transform: translateY(18px);
  }
}

#about-home {
  scroll-margin-top: clamp(72px, 12vh, 96px);
}

/* --- footer.css --- */
/**
 * METRINDUST — Footer (según boceto)
 */

.site-footer.metrindust-footer {
  position: relative;
  z-index: 10;
  padding-top: 0;
  background-color: #0b2a85;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    linear-gradient(225deg, rgba(0, 0, 0, 0.12) 0%, transparent 55%),
    url("../images/footer-pattern2.png");
  background-repeat: repeat;  
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* ——— Newsletter ——— */
.metrindust-footer-top {
  padding: 48px 0 36px;
}

.metrindust-footer-newsletter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 32px;
}

.metrindust-footer-newsletter-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 25px);
  line-height: 1.2;
  color: #ffffff;
  max-width: 420px;
}

.metrindust-footer-newsletter-form {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: min(100%, 320px);
}

.metrindust-footer-newsletter-pill {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  min-height: 52px;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.metrindust-footer-newsletter-pill input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 14px 22px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #2b3545;
  background: transparent;
  outline: none;
}

.metrindust-footer-newsletter-pill input::placeholder {
  color: rgba(43, 53, 69, 0.45);
}

.metrindust-footer-newsletter-btn {
  flex: 0 0 auto;
  border: 0;
  padding: 14px 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff;
  background: #3eb0ff;
  cursor: pointer;
  transition: background 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 18px rgba(62, 176, 255, 0.45);
}

.metrindust-footer-newsletter-btn:hover,
.metrindust-footer-newsletter-btn:focus {
  background: #2a9ef0;
  filter: brightness(1.03);
  box-shadow: 0 0 22px rgba(62, 176, 255, 0.55);
}

/* ——— Separadores ——— */
.metrindust-footer-rule {
  margin: 0;
  border: 0;
  height: 1px;
  background: rgba(130, 200, 255, 0.35);
}

/* ——— Columnas principales ——— */
.metrindust-footer-main {
  padding: 44px 0 40px;
}

.metrindust-footer-col {
  height: 100%;
}

.metrindust-footer-logo-link {
  display: inline-block;
  margin-bottom: 18px;
}

.metrindust-footer-logo-img {
  display: block;
  max-height: 52px;
  width: auto;
  height: auto;
}

.metrindust-footer-brand-text {
  margin: 0;
  font-size: 14px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.88);
  max-width: 280px;
}

.metrindust-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.metrindust-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(120, 190, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.metrindust-footer-social a:hover,
.metrindust-footer-social a:focus {
  background: rgba(120, 190, 255, 0.38);
  color: #ffffff;
  transform: translateY(-2px);
}

.metrindust-footer-col-title {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: #ffffff;
}

.metrindust-footer-col-title--spaced {
  margin-top: 22px;
}

.metrindust-footer-text {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.9);
}

.metrindust-footer-text:last-child {
  margin-bottom: 0;
}

.metrindust-footer-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.metrindust-footer-link:hover,
.metrindust-footer-link:focus {
  color: #a8d4ff;
}

.metrindust-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metrindust-footer-links li {
  margin: 0;
  padding: 0;
}

.metrindust-footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.metrindust-footer-links a:hover,
.metrindust-footer-links a:focus {
  color: #a8d4ff;
}

/* Botón Llámanos */
.metrindust-footer-call-btn {
  display: inline-block;
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 10px 26px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #ffffff;
  background: #3eb0ff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(62, 176, 255, 0.4);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.metrindust-footer-call-btn:hover,
.metrindust-footer-call-btn:focus {
  color: #ffffff;
  background: #2a9ef0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(62, 176, 255, 0.5);
}

/* Libro de reclamaciones */
.metrindust-footer-claims {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.metrindust-footer-claims img {
  width: 120px;
  max-width: 100%;
  height: auto;
  display: block;
}

.metrindust-footer-claims:hover,
.metrindust-footer-claims:focus {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ——— Copyright ——— */
.metrindust-footer-bottom {
  padding: 26px 0 40px;
  text-align: center;
}

.metrindust-footer-copyright {
  margin: 0;
  font-size: 14px;
  line-height: 150%;
  color: rgba(255, 255, 255, 0.82);
}

.metrindust-footer-copyright-brand {
  font-weight: 600;
  color: #7eb8ff;
}

/* ——— Responsive ——— */

/* --- components.css --- */
/**
 * METRINDUST — Componentes globales (sitio completo)
 */

:root {
  --section-badge-border: #c8d0dc;
  --section-badge-text: #1050b2;
  --section-badge-dot: #2972ff;

  /* Gradiente radial tipo diamante — títulos y subtítulos de sección */
  --section-text-gradient: radial-gradient(
    83.33% 412.7% at 17.06% 76.92%,
    #113373 0%,
    #114293 47.01%,
    #2672FF 91.28%
  );

  --about-title-gradient: var(--section-text-gradient);
  --labs-title-gradient: var(--section-text-gradient);
  --spec-title-gradient: var(--section-text-gradient);
  --prod-title-gradient: var(--section-text-gradient);
  --clients-title-gradient: var(--section-text-gradient);
  --page-cta-title-gradient: var(--section-text-gradient);
}

.text-gradient-diamond {
  background: var(--section-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

:is(
  .about-home__title,
  .about-home__subtitle,
  .about-home__certs-title,
  .about-page__intro-title,
  .about-page__intro-certs-title,
  .about-culture__title,
  .about-culture__mv-title,
  .about-culture__values-title,
  .about-policy__title,
  .labs-home__title,
  .labs-home__lead,
  .spec-home__title,
  .spec-home__lead,
  .prod-home__title,
  .prod-home__subtitle,
  .clients-home__title,
  .clients-home__lead,
  .clients-partners__title,
  .clients-partners__lead,
  .about-pillars__title,
  .about-pillars__lead,
  .about-why__title,
  .about-why__lead,
  .about-history__title,
  .about-history__lead,
  .about-gallery__title,
  .about-gallery__lead,
  .about-testimonials__title,
  .about-testimonials__lead,
  .page-intro__title,
  .page-intro__text,
  .page-cta__title
) {
  background: var(--section-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: clamp(0.65rem, 2.2vw, 1rem) clamp(1.3rem, 4.4vw, 2rem);
  background: transparent;
  border: 1px solid var(--section-badge-border);
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 400;
  color: var(--section-badge-text);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.section-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--section-badge-dot);
  flex-shrink: 0;
}

/* Variante sobre fondos oscuros */
.section-badge--on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.section-badge--on-dark::before {
  background: #7eb3ff;
}

.about-testimonials__header .section-badge {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: transparent;
}

.about-testimonials__header .section-badge::before {
  background: #7eb3ff;
}

/* --- whatsapp-float.css --- */
/**
 * FAB esquina inferior derecha: WhatsApp + cotización + volver arriba.
 */

.fab-corner {
  position: fixed;
  right: max(1.5625rem, env(safe-area-inset-right, 0px));
  bottom: max(1.5625rem, env(safe-area-inset-bottom, 0px));
  /* Por debajo de modales/overlays Bootstrap (backdrop 1050, modal 1055) */
  z-index: 1040;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.625rem;
}

.whatsapp-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  font-size: 1.875rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: whatsapp-float-pulse 1.8s ease infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  outline: none;
}

.whatsapp-float:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.whatsapp-float .bi {
  line-height: 1;
}

/* Flecha «subir»: encima del WhatsApp en el mismo bloque flex */
.fab-scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: #2672ff;
  color: #ffffff !important;
  font-size: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17, 51, 115, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.fab-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-scroll-top:hover,
.fab-scroll-top:focus-visible {
  background: #1a5fe0;
  box-shadow: 0 8px 22px rgba(17, 51, 115, 0.42);
  outline: none;
}

.fab-scroll-top:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.85),
    0 6px 18px rgba(17, 51, 115, 0.35);
}

.fab-scroll-top .bi {
  line-height: 1;
  margin-top: -2px;
}

@keyframes whatsapp-float-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

/* --- nav.css --- */
/**
 * METRINDUST — Navegación principal
 * Escritorio: enlace principal + submenú al hover
 * Móvil: panel lateral (Bootstrap Offcanvas)
 */

/* ——— Panel: offcanvas en móvil, barra horizontal en lg+ ——— */
.main-nav__panel.offcanvas-lg {
  --bs-offcanvas-width: 95vw;
}





/* ——— Ítems con submenú ——— */
.nav-item__row {
  display: flex;
  align-items: stretch;
  width: 100%;
}



.nav-item--dropdown > .nav-item__row > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item__caret {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.nav-item__chevron {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.nav-item--dropdown.is-sub-open .nav-item__chevron {
  transform: rotate(180deg);
}

/* ——— Submenú ——— */
.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-submenu__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 1.25rem 0.65rem 1.5rem;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: clamp(0.9375rem, 0.95vw, 1rem);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-submenu__link:hover,
.nav-submenu__link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}



/* Escritorio: dropdown flotante al hover */


/* Páginas internas: en escritorio el panel es barra horizontal sin fondo propio */




/* ——— Submenú Laboratorios: mega panel de 2 columnas ——— */
.nav-submenu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-right: 0.65rem;
  border-radius: 8px;
  background: rgba(38, 114, 255, 0.18);
  color: #9cc6f5;
  font-size: 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-submenu__link:hover .nav-submenu__icon,
.nav-submenu__link:focus-visible .nav-submenu__icon {
  background: #2672ff;
  color: #ffffff;
}

.nav-submenu__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.5rem;
  padding: 0.7rem 1.5rem 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-submenu__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9375rem, 0.95vw, 1rem);
  color: #9cc6f5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-submenu__cta:hover,
.nav-submenu__cta:focus-visible {
  color: #ffffff;
}

/* --- site-header.css --- */
/**
 * METRINDUST — Header dual: blanco (inicio) / gradiente (scroll)
 */

.site-header {
  position: relative;
  z-index: 1030;
  background: #ffffff;
  border-bottom: none;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

body:not(.page-internal):not(.page-home--header-bar) .site-header,
.page-home--header-bar .site-header,
.page-internal .site-header {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
}

.site-header .top-bar {
  background: #ffffff;
  border-bottom: none;
}

.site-header .top-bar-inner {
  min-height: 42px;
  padding: 0.5rem 0;
}

.site-header .top-bar-contact {
  gap: 1.25rem;
}

.site-header .top-bar-item {
  color: #113373;
  text-shadow: none;
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.site-header .top-bar-item:hover,
.site-header .top-bar-item:focus-visible {
  color: #2672ff;
  opacity: 1;
}

.site-header .top-bar-item .bi {
  color: #2672ff;
  font-size: 0.9375rem;
}

.site-header .top-bar-contact .top-bar-item + .top-bar-item {
  padding-left: 0;
  border-left: none;
}

.site-header .btn-zone {
  background: linear-gradient(90deg, #113373 0%, #1050b2 42%, #2972ff 100%);
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.625rem;
  border-radius: 999px;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  box-shadow: none;
  transition: filter 0.2s ease;
}

.site-header .btn-zone:hover,
.site-header .btn-zone:focus-visible {
  color: #ffffff !important;
  filter: brightness(1.05);
  transform: none;
  box-shadow: none;
}

.site-header .main-nav {
  background: #ffffff;
  padding: 0.875rem 0 1rem;
  box-shadow: none;
}

.page-internal .site-header .main-nav {
  background: #ffffff;
  box-shadow: none;
}

.page-internal .site-header .top-bar {
  border-bottom: none;
}



.site-header .main-nav .nav-item__caret {
  color: inherit;
  margin-left: 0.2rem;
  font-size: 0.75em;
  vertical-align: 0.05em;
}

.site-header .navbar-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
}

.site-header .brand-logo {
  display: block;
  width: 280px;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

.site-header .brand-logo--white {
  display: none;
}

.site-header .brand-logo--color {
  display: block;
}

.site-header .navbar-toggler {
  border-color: rgba(17, 51, 115, 0.35);
}

.site-header .navbar-toggler-icon {
  filter: none;
}

.main-nav__zone {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}



/* ——— Estado scroll (barra compacta azul) ——— */
.site-header.site-header--scrolled {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  background: linear-gradient(90deg, #113373 0%, #1050b2 42%, #2972ff 100%);
  border-bottom-color: transparent;
  box-shadow: 0 6px 22px rgba(17, 51, 115, 0.28);
}

.site-header.site-header--scrolled .top-bar {
  display: none;
}

.site-header.site-header--scrolled .main-nav {
  background: transparent;
  box-shadow: none;
  padding: 1rem 0;
}

.site-header.site-header--scrolled .main-nav .nav-link::after {
  background: #ffffff;
}

.site-header.site-header--scrolled .main-nav .nav-link:not(.active):not([aria-current="page"])::after,
.site-header.site-header--scrolled .main-nav .nav-link:not(.active):not([aria-current="page"]):hover::after,
.site-header.site-header--scrolled .main-nav .nav-link:not(.active):not([aria-current="page"]):focus-visible::after {
  transform: scaleX(0) !important;
}



.site-header.site-header--scrolled .main-nav .nav-link {
  color: #ffffff !important;
  text-shadow: none;
}

.site-header.site-header--scrolled .main-nav .nav-link.active,
.site-header.site-header--scrolled .main-nav .nav-link[aria-current="page"] {
  color: #ffffff !important;
}

.site-header.site-header--scrolled .brand-logo--color {
  display: none;
}

.site-header.site-header--scrolled .brand-logo--white {
  display: block;
}

.site-header.site-header--scrolled .brand-logo {
  width: 220px;
}



.site-header.site-header--scrolled .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header.site-header--scrolled .navbar-toggler-icon {
  filter: invert(1);
}

/* --- home-header-bar.css --- */
/**
 * Home index + index2 — header gradiente y hero 75vh
 * Cargar solo en index.html e index2.html (no en main.css)
 */

.page-home--header-bar {
  --home-header-stack: clamp(7.75rem, 16vh, 9.5rem);
}

.page-home--header-bar .site-header {
  position: relative;
  background: #ffffff;
  box-shadow: none;
  border-bottom: none;
}

.page-home--header-bar .top-bar {
  border-bottom: none;
}

.page-home--header-bar .main-nav {
  background: #ffffff;
}

.page-home--header-bar .main-nav.main-nav--fixed,
.page-home--header-bar .site-header.site-header--scrolled .main-nav {
  background: transparent;
}

.page-home--header-bar .site-header.site-header--scrolled {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  background: linear-gradient(90deg, #113373 0%, #1050b2 42%, #2972ff 100%);
  box-shadow: 0 6px 22px rgba(17, 51, 115, 0.28);
}

/* index.html: hero llena el resto del viewport (header + hero = 1 pantalla) */.page-home--header-bar .hero:not(.hero--peek) {
  min-height: calc(100vh - var(--home-header-stack));
  min-height: calc(100dvh - var(--home-header-stack));
}

.page-home--header-bar .hero:not(.hero--peek) .hero-content {
  padding: clamp(2.5rem, 6vh, 4rem) 1.25rem clamp(5rem, 12vh, 7rem);
}

.page-home--header-bar .hero:not(.hero--peek) .hero-badge {
  bottom: max(3rem, env(safe-area-inset-bottom, 0px));
}



/* index2.html: hero al 75% para asomar la siguiente sección */
.page-home--header-bar .hero--peek {
  min-height: 75vh;
  min-height: 75dvh;
}

.page-home--header-bar .hero--peek .hero-content {
  padding: clamp(2.5rem, 6vh, 4rem) 1.25rem clamp(2.5rem, 6vh, 3.5rem);
}

.page-home--header-bar .hero--peek .hero-badge {
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

/* --- home-carousels.css --- */
/* Carruseles home: certs/cats ≤767px; productos destacados ≤991px (3 → 2 → 1) */

.home-carousel {
  overflow: hidden;
}

.home-carousel .swiper-pagination {
  position: relative;
  margin-top: 1.25rem;
  bottom: auto !important;
}

.home-carousel .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 5px !important;
  background: rgba(16, 80, 178, 0.28);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-carousel .swiper-pagination-bullet-active {
  background: #2672ff;
  transform: scale(1.2);
}

/* ——— Tablet y PC: grid estático (certs, cats desde 768; featured, brands desde 992) ——— */








/* ——— Productos destacados: carrusel ≤991px (3 → 2 → 1) ——— */




/* ——— Certs y categorías: carrusel solo ≤767px ——— */

