/* ============================================================
   MEDICAL NUTRICIÓN S.A.C. — Diseño Premium
   Paleta: #0046A7 (azul corporativo) · #00AEEF (acento)
   ============================================================ */

/* Variables */
:root {
  --c-primary:    #0046A7;
  --c-accent:     #00AEEF;
  --c-dark:       #00264d;
  --c-bg:         #ffffff;
  --c-bg-alt:     #f0f7ff;
  --c-bg-dark:    #0d1f3c;
  --c-text:       #1e293b;
  --c-muted:      #64748b;
  --c-border:     #dce6f5;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-w:  1160px;
  --header-h:     76px;
  --r:            14px;
  --r-sm:          8px;
  --r-lg:         28px;
  --shadow-xs:    0 1px 4px rgba(0,46,77,.07);
  --shadow:       0 4px 20px rgba(0,70,167,.11);
  --shadow-lg:    0 16px 48px rgba(0,70,167,.16);
  --t:            .25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
  overflow-x: hidden; 
  width: 100vw;
}
/* Reducir motion: solo afecta elementos decorativos, NO scroll-reveal */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
  /* Mantener las animaciones de scroll-reveal intactas */
}
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-accent); }
ul { list-style: none; }
input, textarea, button, select { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--c-accent); border-radius: 4px; }

/* Layout */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1360px; }

/* content-visibility: auto eliminado — conflicto con transiciones CSS de scroll-reveal */

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: #fff; }
.section--blue {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-dark) 100%);
  color: #fff;
}

/* Typography */
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
  display: block;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title--white { color: #fff; }
.section-title--center { text-align: center; }
.section-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 640px;
  line-height: 1.7;
}
.section-lead--center { margin: 0 auto; text-align: center; }
.section-lead--white { color: rgba(255,255,255,.82); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75em 1.75em;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  /* Solo propiedades GPU-friendly: evita recalcular layout en hover */
  transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn-primary:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,70,167,.25);
}
.btn-accent {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-accent:hover {
  background: #0098d4;
  border-color: #0098d4;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
}
.btn-white {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-white:hover {
  background: #e6f0ff;
  border-color: #e6f0ff;
  color: var(--c-primary);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.75);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.btn-lg { padding: .875em 2em; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: .45em 1.2em; font-size: .85rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,46,77,.10);
}
.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 65px; width: auto; }
.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.02em;
}
.nav-main { flex: 1; }
.nav-main ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-main a {
  display: block;
  padding: .45em .85em;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--t), background var(--t);
}
.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .85em;
  right: .85em;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--t);
}
.nav-main a:hover, .nav-main a.active {
  color: var(--c-primary);
  background: var(--c-bg-alt);
  text-decoration: none;
}
.nav-main a.active::after, .nav-main a:hover::after { transform: scaleX(1); }
.logo-text { color: var(--c-primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: all var(--t);
}

/* ============================================================
   HERO CORPORATIVO + CARRUSEL
   ============================================================ */
.hero-corporate {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark);
}
/* Inicio: cubrir viewport para que la primera [data-scroll] no entre en IO al cargar */
.page-home .hero-corporate {
  min-height: 100vh;
  min-height: 100dvh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 70, 0.88) 0%, rgba(0, 70, 167, 0.45) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 230px; /* Generoso espacio para el carrusel abajo */
  padding-top: 4rem;
}
.hero-text {
  max-width: 650px;
  color: #fff;
}
.hero-content--right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-left: clamp(1rem, 4vw, 6rem);
  padding-right: clamp(1rem, 4vw, 6rem);
}
.hero-content--right .hero-text {
  margin-left: auto;
  margin-right: 0 !important;   /* anula margin: 0 auto heredado */
  text-align: right;
  max-width: min(46vw, 680px);
}
.hero-content--right .hero-actions {
  justify-content: flex-end;
}
@media (min-width: 1200px) {
  .hero-content--right {
    padding-right: clamp(0.5rem, 2.5vw, 2.5rem);
    padding-bottom: 280px;
  }
  .hero-content--right .hero-text {
    max-width: min(52vw, 760px);
    margin-right: 0 !important;
  }
  .hero-content--right .hero-actions {
    flex-wrap: nowrap;
  }
}
@media (max-width: 1024px) {
  .hero-content--right .hero-text {
    max-width: 100%;
  }
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5em 1.25em;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  /* text-shadow simplificado: menos layers de composición */
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
  letter-spacing: -0.01em;
}
.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.9);
  line-height: 1.65;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Carrusel de Productos superpuesto */
.hero-carousel-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

/* Modificaciones Swiper — carril casi a todo el ancho (el 5% en desktop dejaba mucho “azul” vacío) */
.swiper.myHeroSwiper {
  width: 100%;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 1rem;
  box-sizing: border-box;
}
@media (min-width: 480px) {
  .swiper.myHeroSwiper {
    padding-left: clamp(0.5rem, 1.5vw, 1.25rem);
    padding-right: clamp(0.5rem, 1.5vw, 1.25rem);
  }
}
@media (min-width: 1024px) {
  .swiper.myHeroSwiper {
    /* Solo hueco para no pegar las flechas al borde */
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
  }
}
.hero-slide {
  height: auto;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}
.hero-slide .hero-card {
  max-width: 100%;
}

.hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255,255,255,0.8);
  width: 100%;
  height: 100%;
  /* Evita que el hijo mezcle capas repintando el fondo */
  isolation: isolate;
}
.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  will-change: transform;
}
.hero-card__product {
  width: 80px;
  height: 80px;
  object-fit: contain;
  /* mix-blend-mode y filter costosos en móvil — solo en desktop */
  transition: transform 0.25s ease;
}
@media (min-width: 769px) {
  .hero-card__product {
    mix-blend-mode: multiply;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.10));
  }
}
.hero-card:hover .hero-card__product {
  transform: scale(1.1);
}
.hero-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.hero-card__logo {
  max-width: 100px;
  max-height: 26px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.4rem;
}
.hero-card__info span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.35;
}

/* Flechas Swiper */
.hero-carousel-wrapper .swiper-button-next,
.hero-carousel-wrapper .swiper-button-prev {
  color: #fff;
  background: rgba(0,0,0,0.45);
  /* backdrop-filter solo donde el hardware lo aguanta bien */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  top: 40%;
  transition: background-color 0.2s ease;
}
@media (min-width: 769px) {
  .hero-carousel-wrapper .swiper-button-next,
  .hero-carousel-wrapper .swiper-button-prev {
    backdrop-filter: blur(4px);
  }
}
.hero-carousel-wrapper .swiper-button-next:after,
.hero-carousel-wrapper .swiper-button-prev:after {
  font-size: 1.2rem;
  font-weight: 900;
}
.hero-carousel-wrapper .swiper-button-next:hover,
.hero-carousel-wrapper .swiper-button-prev:hover {
  background: var(--c-primary);
}

/* Fondos cálidos/suaves por tarjeta */
.hero-card--argiment { background: linear-gradient(135deg, #ffffff, #fffdf8); }
.hero-card--hepament { background: linear-gradient(135deg, #ffffff, #f7fbff); }
.hero-card--prosource{ background: linear-gradient(135deg, #ffffff, #fffafa); }
.hero-card--renament { background: linear-gradient(135deg, #ffffff, #fdfaff); }
.hero-card--hyfiber  { background: linear-gradient(135deg, #ffffff, #faf9ff); }
.hero-card--banatrol { background: linear-gradient(135deg, #ffffff, #fffcf5); }

@media (max-width: 768px) {
  .hero-corporate { min-height: 85vh; }
  .page-home .hero-corporate { min-height: 100dvh; min-height: 100svh; }
  .hero-content { padding-bottom: 180px; padding-top: 2rem; }
  .hero-title { font-size: 2.2rem; }
  /* Un solo margen horizontal: evita doble padding con .swiper.myHeroSwiper */
  .swiper.myHeroSwiper {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .hero-carousel { padding: 0; gap: 1rem; }
  .hero-card { flex: 0 0 260px; padding: 1.25rem; }
  .hero-card__product { width: 65px; height: 65px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats-strip {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-number span { color: #0088cc; }
.stat-label {
  font-size: .8rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}

/* ============================================================
   ABOUT PREVIEW (HOME)
   ============================================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-preview__text { order: 1; }
.about-preview__img  { order: 2; }
.about-preview__img img {
  height: 100%;
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.about-preview__text p {
  color: var(--c-muted);
  margin-bottom: .9rem;
  font-size: 1rem;
}
.about-preview__text .btn { margin-top: .5rem; }

/* ============================================================
   PRODUCTS PREVIEW (HOME / SERVICIOS)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
.product-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,46,77,.07), 0 0 0 1px rgba(0,70,167,.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  contain: layout style;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,70,167,.14), 0 2px 8px rgba(0,0,0,.06);
  will-change: transform;
}
.product-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}
/* Fondos suaves por producto */
.product-card__media--argiment {
  background: radial-gradient(ellipse at 60% 40%, #ffe8c0 0%, #fff5e6 100%);
}
.product-card__media--hepament {
  background: radial-gradient(ellipse at 60% 40%, #b8d8ff 0%, #e8f3ff 100%);
}
.product-card__media--prosource {
  background: radial-gradient(ellipse at 60% 40%, #ffc8c8 0%, #fff0f0 100%);
}
.product-card__media--renament {
  background: radial-gradient(ellipse at 60% 40%, #d4b8ff 0%, #f5eeff 100%);
}
.product-card__media--hyfiber {
  background: radial-gradient(ellipse at 60% 40%, #e6dcfc 0%, #f5f2fe 100%);
}
.product-card__media--banatrol {
  background: radial-gradient(ellipse at 60% 40%, #ffebcc 0%, #fff7e6 100%);
}
/* Borde sutil de color por producto al hacer hover */
.product-card--argiment:hover { box-shadow: 0 20px 48px rgba(230,120,0,.18), 0 4px 12px rgba(0,0,0,.07); }
.product-card--hepament:hover  { box-shadow: 0 20px 48px rgba(0,100,200,.18), 0 4px 12px rgba(0,0,0,.07); }
.product-card--prosource:hover { box-shadow: 0 20px 48px rgba(220,60,60,.18),  0 4px 12px rgba(0,0,0,.07); }
.product-card--renament:hover  { box-shadow: 0 20px 48px rgba(120,60,220,.18), 0 4px 12px rgba(0,0,0,.07); }
.product-card--hyfiber:hover  { box-shadow: 0 20px 48px rgba(90,75,156,.18), 0 4px 12px rgba(0,0,0,.07); }
.product-card--banatrol:hover  { box-shadow: 0 20px 48px rgba(230,180,0,.18), 0 4px 12px rgba(0,0,0,.07); }

.product-card__media img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.18));
}
.product-card:hover .product-card__media img {
  transform: scale(1.1) translateY(-4px);
}
.product-card__body {
  padding: 1.1rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(0,70,167,.07);
}
.product-card__logo {
  max-height: 30px;
  width: auto;
  margin: 0 auto .6rem;
  object-fit: contain;
}
.product-card__name { display: none; }
.product-card__desc {
  font-size: .8rem;
  color: var(--c-muted);
  line-height: 1.55;
  flex: 1;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-primary);
  padding: .4em 1.1em;
  border: 1.5px solid var(--c-border);
  border-radius: 50px;
  transition: all var(--t);
  background: var(--c-bg-alt);
}
.product-card__link:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================================
   CARRUSEL ENTERAL
   ============================================================ */
.enteral-carousel-wrap {
  position: relative;
  padding: 0 3rem;      /* espacio lateral para las flechas */
}
.enteral-carousel-wrap .swiper-slide {
  height: auto;         /* todas las tarjetas con el mismo alto */
}
.enteral-carousel-wrap .swiper-slide .product-card {
  height: 100%;         /* tarjeta ocupa todo el alto del slide */
}
/* Flechas */
.enteral-btn-next,
.enteral-btn-prev {
  color: var(--c-primary);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,70,167,.15);
  transition: background var(--t), color var(--t);
}
.enteral-btn-next::after,
.enteral-btn-prev::after { font-size: 1.1rem; font-weight: 900; }
.enteral-btn-next:hover,
.enteral-btn-prev:hover  { background: var(--c-primary); color: #fff; }

/* Puntos de paginación */
.enteral-pagination {
  margin-top: 1.5rem;
  position: static !important;
}
.enteral-pagination .swiper-pagination-bullet-active {
  background: var(--c-primary);
}

/* ============================================================
   PRODUCTO DETALLE
   ============================================================ */
.product-hero {
  position: relative;
  overflow: hidden;
}
.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 460px;
}
.product-hero__text {
  padding: 4rem 3rem 4rem 0;
  position: relative;
  z-index: 1;
}
.product-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
}
.product-hero__visual img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.18));
  mix-blend-mode: multiply;
  position: relative;
  z-index: 1;
}
.product-hero--argiment {
  background: linear-gradient(130deg, #fff8f0 0%, #ffe8cc 60%, #ffcf99 100%);
}
.product-hero--hepament {
  background: linear-gradient(130deg, #f0f7ff 0%, #c8e0ff 60%, #99c5ff 100%);
}
.product-hero--prosource {
  background: linear-gradient(130deg, #fff5f5 0%, #ffd6d6 60%, #ffbbbb 100%);
}
.product-hero--renament {
  background: linear-gradient(130deg, #f5f0ff 0%, #ddd0ff 60%, #c4acff 100%);
}
.product-hero--hyfiber {
  background: linear-gradient(130deg, #f8f6ff 0%, #e8e0ff 60%, #d4c4ff 100%);
}
.product-hero--banatrol {
  background: linear-gradient(130deg, #fffbf0 0%, #ffe8ad 60%, #ffdb70 100%);
}
.product-hero__logo {
  max-height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}
.product-hero__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.product-hero__desc {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 480px;
}
.product-hero__badge {
  display: inline-block;
  background: rgba(0,70,167,.1);
  color: var(--c-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35em 1em;
  border-radius: 50px;
  margin-bottom: .9rem;
  border: 1px solid rgba(0,70,167,.18);
}
.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.product-info__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .5rem;
}
.product-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.product-info p {
  color: var(--c-muted);
  font-size: .97rem;
  line-height: 1.72;
  margin-bottom: .8rem;
}
.product-features {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .5rem;
}
.product-features li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  font-size: .93rem;
  color: var(--c-text);
  line-height: 1.5;
}
.product-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: .15rem;
}
.product-table-section { background: var(--c-bg-alt); }
.product-table-img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.product-related {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.product-related-card {
  flex: 1;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t);
}
.product-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.product-related-card img {
  height: 64px;
  object-fit: contain;
  margin: 0 auto .75rem;
  mix-blend-mode: multiply;
}
.product-related-card span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-primary);
}

/* ============================================================
   NUTRICIÓN PARENTERAL — Página específica
   ============================================================ */

/* Pasos del proceso */
.npt-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.npt-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t);
}
.npt-step:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.npt-step__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
  opacity: .18;
  line-height: 1;
  min-width: 3rem;
}
.npt-step__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: .4rem;
}
.npt-step__body p {
  font-size: .92rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Badges de certificación */
.npt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.npt-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-primary);
}
.npt-badge img {
  width: 16px;
  height: 16px;
  display: inline;
}

/* Grid de tipos de NPT */
.npt-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.npt-type-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform var(--t), box-shadow var(--t);
}
.npt-type-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.npt-type-card--featured {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.npt-type-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}
.npt-type-card__header {
  padding: 2rem 1.5rem 1.5rem;
  color: #fff;
  text-align: center;
}
.npt-type-card__header--2en1    { background: linear-gradient(135deg,#2563eb,#1e40af); }
.npt-type-card__header--3en1    { background: linear-gradient(135deg,#0046a7,#002d6e); }
.npt-type-card__header--2en1plus{ background: linear-gradient(135deg,#0891b2,#0e7490); }
.npt-type-card__tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .35rem;
}
.npt-type-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.npt-type-card__body {
  padding: 1.5rem;
}
.npt-type-card__body .npt-type-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.npt-type-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: .6rem;
}
.npt-type-card__body p {
  font-size: .9rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.npt-type-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.npt-type-card__list li {
  font-size: .88rem;
  color: var(--c-text);
  font-weight: 500;
}

/* Banner imagen destacada */
.npt-banner {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 340px;
}
.npt-banner__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.npt-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,46,107,.82) 0%, rgba(0,70,167,.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: .75rem;
}
.npt-banner__overlay h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}
.npt-banner__overlay p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  max-width: 500px;
}

/* Responsivo */
@media (max-width: 900px) {
  .npt-types-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .npt-type-card--featured { transform: none; }
  .npt-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .75rem;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
}
.cta-banner .btn-white { font-size: 1rem; padding: .9em 2em; }

/* ============================================================
   PAGE HEADER (breadcrumb hero)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(130deg, var(--c-dark) 0%, var(--c-primary) 100%);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: .12;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
}
.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.page-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 560px;
}

/* ============================================================
   MISSION / VISION
   ============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.mv-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--c-accent), var(--c-primary));
}
.mv-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.mv-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: .75rem;
}
.mv-card p {
  color: var(--c-muted);
  font-size: .95rem;
  line-height: 1.7;
}
/* Header de misión/visión con icono SVG */
.mv-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mv-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.mv-card__header h3 {
  margin-bottom: 0;
}

/* Badges de certificaciones (Quiénes somos) */
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}
.about-badge {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 2rem;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: .02em;
}

/* ── Why us grid (Quiénes somos) ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.why-card__icon svg {
  width: 24px;
  height: 24px;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: .6rem;
}
.why-card p {
  font-size: .92rem;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VALUES
   ============================================================ */
.values-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}
.values-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.values-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.values-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,38,77,.80);
}
.values-inner {
  position: relative;
  z-index: 1;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.value-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r);
  padding: 2rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: background var(--t), transform var(--t);
}
.value-item:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-4px);
}
.value-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}
.value-item h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.value-item p {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   SERVICE (SERVICIOS PAGE)
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service-block--reverse .service-block__img { order: 2; }
.service-block--reverse .service-block__text { order: 1; }
.service-block__img img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.service-block__eyebrow { color: var(--c-accent); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.service-block__title { font-size: 1.75rem; font-weight: 700; color: var(--c-primary); margin-bottom: 1rem; }
.service-block__text p { color: var(--c-muted); margin-bottom: .8rem; }
.service-block__text .btn { margin-top: .75rem; }
.service-hero {
  position: relative;
  height: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.service-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,.75) 0%, rgba(0,40,100,.45) 50%, rgba(0,30,80,.25) 100%);
}
.service-hero__text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
}
.service-hero__text h2 { font-size: 1.75rem; font-weight: 700; }
.service-hero__text p { opacity: .85; font-size: .95rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-main-img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  margin: 2.5rem 0;
}
.about-text p { color: var(--c-muted); margin-bottom: 1rem; font-size: 1.05rem; }
.about-text strong { color: var(--c-primary); }

/* Product logos strip */
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 0;
}
.logos-strip a {
  opacity: .7;
  transition: opacity var(--t), transform var(--t);
  display: block;
}
.logos-strip a:hover { opacity: 1; transform: scale(1.06); }
.logos-strip img { height: 44px; width: auto; }

/* ============================================================
   CALIDAD PAGE
   ============================================================ */
.calidad-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.calidad-intro__col--text {
  color: var(--c-text);
}
.calidad-intro > * {
  min-width: 0;
}
.calidad-intro__lead {
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.75;
}
.calidad-intro .section-title {
  color: var(--c-primary);
}
.calidad-intro__lead:last-of-type {
  margin-bottom: 1.5rem;
}
.calidad-intro__strong {
  color: var(--c-primary);
}
.calidad-intro__col--media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.calidad-section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.calidad-section-head .eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.calidad-section-head--blue .eyebrow {
  color: var(--c-accent);
}
.calidad-cta-row {
  text-align: center;
  margin-top: 2.5rem;
}
.calidad-standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.calidad-standard-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
@media (min-width: 769px) {
  .calidad-standard-card {
    backdrop-filter: blur(8px);
  }
}
.calidad-standard-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 174, 239, 0.35);
  transform: translateY(-2px);
}
.calidad-standard-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.calidad-standard-card__title {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.calidad-standard-card__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
.commitments-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: 1.25rem;
}
.commitment-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t), box-shadow var(--t);
}
.commitment-item:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow);
}
.commitment-item__dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.commitment-item p {
  margin: 0;
  color: var(--c-text);
  font-size: .95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .calidad-standards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 640px) {
  .calidad-standard-card {
    padding: 1.5rem 1.25rem;
  }
  .calidad-standard-card__icon {
    font-size: 2rem;
  }
  .commitment-item {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .commitment-item p {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .calidad-standard-card:hover {
    transform: none;
  }
}

/* ============================================================
   POLÍTICA PAGE
   ============================================================ */
.policy-doc {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.policy-doc__header {
  background: linear-gradient(130deg, var(--c-dark) 0%, var(--c-primary) 100%);
  padding: 2.5rem 3rem;
  color: #fff;
}
.policy-doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.policy-doc__meta-item {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}
.policy-doc__meta-item strong {
  color: var(--c-accent);
  font-size: .9rem;
  display: block;
  margin-top: .1rem;
}
.policy-doc__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 640px;
}
.policy-doc__body {
  padding: 2.5rem 3rem;
}
.policy-doc__intro {
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.75;
  border-left: 3px solid var(--c-accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.policy-doc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 2rem 0 1rem;
}
.policy-commitments {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 2rem;
}
.policy-commitments li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  background: var(--c-bg-alt);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--c-text);
  line-height: 1.55;
}
.policy-commitments li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  margin-top: .15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.policy-doc__footer {
  padding: 2rem 3rem;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.policy-doc__contact h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: .25rem;
}
.policy-doc__contact p {
  font-size: .9rem;
  color: var(--c-muted);
}
.policy-doc__contact a { color: var(--c-primary); font-weight: 600; }
.policy-doc__signature { text-align: right; }
.policy-doc__signature .name {
  font-weight: 700;
  color: var(--c-primary);
  font-size: .95rem;
  margin-bottom: .15rem;
}
.policy-doc__signature .title, .policy-doc__signature .date {
  font-size: .82rem;
  color: var(--c-muted);
}

/* ============================================================
   LEGAL DOCUMENTS (privacidad / cookies)
   ============================================================ */
.legal-doc {
  max-width: 860px;
  margin: 0 auto;
}
.legal-doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-size: .82rem;
  color: var(--c-muted);
  border-left: 3px solid var(--c-primary);
  padding-left: 1rem;
  margin-bottom: 2.5rem;
}
.legal-doc__body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 2.2rem 0 .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--c-border);
}
.legal-doc__body h2:first-child { margin-top: 0; }
.legal-doc__body p {
  color: var(--c-text);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.legal-doc__body ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal-doc__body ul li {
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: .4rem;
  list-style: disc;
}
.legal-doc__body a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc__body a:hover { color: var(--c-accent); }

/* Tabla de cookies */
.cookies-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--c-border);
}
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.cookies-table thead {
  background: var(--c-primary);
  color: #fff;
}
.cookies-table thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.cookies-table tbody tr { border-bottom: 1px solid var(--c-border); }
.cookies-table tbody tr:last-child { border-bottom: none; }
.cookies-table tbody tr:nth-child(even) { background: var(--c-surface); }
.cookies-table tbody td {
  padding: .7rem 1rem;
  color: var(--c-text);
  vertical-align: top;
  line-height: 1.5;
}
.cookies-table code {
  background: rgba(var(--c-primary-rgb, 0,80,160),.08);
  color: var(--c-primary);
  padding: .1em .4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: .9em;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-layout > * {
  min-width: 0;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-primary) 100%);
  border-radius: var(--r);
  padding: 2.5rem;
  color: #fff;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.contact-info-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.contact-data-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-data-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-data-item p { margin: 0; font-size: .9rem; opacity: .8; }
.contact-data-item a {
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-data-item a:hover { color: var(--c-accent); }
.contact-info-card__rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,.15);
  margin: 1.5rem 0;
}
.contact-whistle {
  background: rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
}
.contact-whistle__title {
  font-size: .85rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.contact-whistle__desc {
  font-size: .82rem;
  opacity: .75;
  margin: 0 0 .35rem;
  line-height: 1.45;
}
.contact-whistle__link {
  font-size: .85rem;
  color: var(--c-accent);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-whistle__link:hover { color: #fff; }
.contact-form-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: .45rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: .7em 1em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0,174,239,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-required { color: #e53e3e; }
.form-note { font-size: .8rem; color: var(--c-muted); margin-bottom: 1rem; }
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0f2744 0%, var(--c-bg-dark) 45%, #0a1628 100%);
  color: rgba(255,255,255,.72);
  padding: 0;
  margin-top: 0;
  border-top: 1px solid rgba(0, 174, 239, .12);
}
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent) 50%, var(--c-primary));
  opacity: .95;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) 1fr 1fr minmax(200px, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  padding: 3rem 0 3.25rem;
  align-items: start;
}
.footer-brand__logo img {
  height: 46px;
  width: auto;
  margin-bottom: 1.25rem;
  opacity: .98;
}
.footer-brand__tagline {
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
  max-width: 22rem;
  color: rgba(255,255,255,.58);
}
.footer-col__title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  margin: 0 0 1.15rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(0, 174, 239, .28);
  position: relative;
}
.footer-col__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.25rem;
  height: 2px;
  background: var(--c-accent);
  border-radius: 1px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0; padding: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .875rem;
  line-height: 1.45;
  padding: .35rem 0;
  color: rgba(255,255,255,.62);
  transition: color var(--t), transform var(--t);
  border-radius: var(--r-sm);
}
.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width var(--t);
  flex-shrink: 0;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}
.footer-links a:hover::before { width: 6px; }
.footer-col--contact .footer-col__title { margin-bottom: 1rem; }
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-contact-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .65rem .85rem;
  margin: 0;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: background var(--t), border-color var(--t);
}
.footer-contact-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(0, 174, 239, .15);
}
.footer-contact-item__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  line-height: 1;
  background: rgba(0, 174, 239, .12);
  border-radius: 8px;
  margin-top: .05rem;
}
.footer-contact-item a {
  font-size: .86rem;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  word-break: break-word;
}
.footer-contact-item a:hover { color: var(--c-accent); }
.footer-contact-item__text {
  font-size: .86rem;
  line-height: 1.5;
  color: rgba(255,255,255,.58);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 0;
  background: rgba(0, 0, 0, .15);
}
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}
.footer-bottom__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin: 0;
  line-height: 1.5;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 0;
}
.footer-legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.48);
  padding: .35rem .65rem;
  border-radius: 999px;
  transition: color var(--t), background var(--t);
}
.footer-legal a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.footer-legal a + a::before {
  content: '·';
  display: inline-block;
  margin: 0 .55rem 0 0;
  color: rgba(255,255,255,.3);
  font-weight: 700;
  pointer-events: none;
}

/* WhatsApp Floating */
/* ── WhatsApp flotante ── */
.wsp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  /* El tamaño del "botón" lo da la imagen */
}

/* Anillo de pulso — referenciado al img */
.wsp-float__pulse {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .40);
  animation: wsp-pulse 2.4s ease-out infinite;
  pointer-events: none;
  z-index: 0;
  top: 0;
  left: 0;
}
@keyframes wsp-pulse {
  0%   { transform: scale(1);    opacity: .85; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Imagen SVG: ya tiene fondo verde + ícono blanco incorporados */
.wsp-float > img {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  /* SIN filter — el SVG ya tiene sus propios colores */
  box-shadow: 0 6px 28px rgba(37,211,102,.50), 0 2px 8px rgba(0,0,0,.18);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  flex-shrink: 0;
}

/* Etiqueta flotante */
.wsp-float__label {
  position: absolute;
  right: calc(100% + .7rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  background: #fff;
  color: #075E54;
  font-size: .82rem;
  font-weight: 700;
  padding: .38rem .9rem .38rem .85rem;
  border-radius: 2rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  letter-spacing: .01em;
  border: 1.5px solid rgba(37,211,102,.25);
}
/* Flecha apuntando al botón */
.wsp-float__label::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left-color: #fff;
  border-right-width: 0;
}

/* Hover */
.wsp-float:hover > img,
.wsp-float:focus-visible > img {
  transform: scale(1.11);
  box-shadow: 0 10px 36px rgba(37,211,102,.65), 0 4px 14px rgba(0,0,0,.15);
}
.wsp-float:hover .wsp-float__label,
.wsp-float:focus-visible .wsp-float__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.wsp-float:hover .wsp-float__pulse {
  animation-play-state: paused;
  opacity: 0;
}
.wsp-float:hover { text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .about-preview { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-preview__img { order: -1; }
  .mv-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 2rem; }
  .service-block--reverse .service-block__img { order: 0; }
  .service-block--reverse .service-block__text { order: 0; }
  .calidad-intro { grid-template-columns: 1fr; gap: 2rem; }
  .product-hero__inner { grid-template-columns: 1fr; }
  .product-hero__visual { order: -1; padding: 2.5rem 2rem 1rem; }
  .product-hero__text { padding: 1.5rem 0 3rem; }
  .product-info-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .nav-main.is-open { display: block; }
  .nav-main ul { flex-direction: column; gap: .25rem; }
  .header-actions .btn { display: none; }
  /* Hero tablet (641-768px): layout en columna, video arriba / botones abajo */
  .hero {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #001e50;
  }
  /* hero-media deja de ser absoluto: ocupa espacio real en la columna */
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    overflow: hidden;
  }
  .hero-media img,
  .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  /* Botones debajo del video, fuera del área del video */
  .hero-corner-cta {
    position: static;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 1rem 1.25rem;
    background: #001a4a;
  }
  /* Fade y controles quedan dentro del hero-media */
  .hero-bottom-fade  { display: none; }
  .hero-video-controls { position: absolute; top: .75rem; right: .75rem; bottom: auto; }
  .hero-content { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom__inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  .footer-legal { justify-content: center; }
}
@media (max-width: 640px) {
  /* Hero móvil (≤ 640px): layout en columna, video arriba / botones abajo */
  .hero {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    background: #001e50;
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 9 / 16;
    flex-shrink: 0;
    overflow: hidden;
  }
  .hero-media img,
  .hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero-corner-cta {
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    padding: .85rem 1rem;
    background: #001a4a;
  }
  .hero-corner-cta .btn { text-align: center; justify-content: center; }
  .hero-bottom-fade   { display: none; }
  .hero-video-controls { position: absolute; top: .75rem; right: .75rem; bottom: auto; }
}
@media (max-width: 540px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .policy-doc__header, .policy-doc__body, .policy-doc__footer { padding: 1.5rem; }
  .hero-title { font-size: 2rem; }
}

/* ============================================================
   RESPONSIVE — CORRECCIONES ADICIONALES
   ============================================================ */

/* ── Hamburger: animación al abrir ── */
.nav-toggle span {
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Policy doc: reducir padding desde tablet ── */
@media (max-width: 860px) {
  .policy-doc__header,
  .policy-doc__body,
  .policy-doc__footer { padding: 1.75rem 2rem; }
}

/* ── NPT types: 1 columna en tablet para evitar tarjeta huérfana (3 cards) ── */
@media (max-width: 860px) {
  .npt-types-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .npt-type-card--featured { transform: none; }
}

/* ── Correcciones en tablets y móviles (≤ 768px) ── */
@media (max-width: 768px) {
  /* Logo cabecera: un poco más compacto en móvil/tablet */
  .logo img { height: 52px; width: auto; }

  /* Reducir padding excesivo de secciones */
  .section           { padding: 3rem 0; }
  .section--sm       { padding: 1.75rem 0; }
  .page-hero         { padding: 3rem 0 2.5rem; }
  .cta-banner        { padding: 2.5rem 0; }

  /* En tablet/móvil los botones ya van en layout estático (ver @media ≤ 768px y ≤ 640px arriba) */

  /* Alturas fijas → más cortas */
  .npt-banner__img { height: 220px; }
  .service-hero    { height: 200px; }

  /* Values: centrar ítem huérfano */
  .value-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ── Teléfonos pequeños (< 480px) ── */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  /* El hero hereda el layout portrait de ≤ 640px — solo ajustes menores aquí */
  .hero-corner-cta .btn { text-align: center; justify-content: center; }
  .stat-number       { font-size: 1.5rem; }
  .npt-banner__img   { height: 180px; }
  /* NPT cards: 1 columna directa para evitar huérfanos */
  .npt-types-grid    { grid-template-columns: 1fr; }
  .npt-badges        { gap: .5rem; }
  .npt-badge         { font-size: .8rem; padding: .35rem .8rem; }
  .header-inner      { gap: 1rem; }
  .page-hero__title  { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .product-hero__title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .section-title     { font-size: clamp(1.3rem, 5.5vw, 1.75rem); }
  /* WhatsApp más pequeño */
  .wsp-float              { bottom: 1.25rem; right: 1.25rem; }
  .wsp-float > img        { width: 50px; height: 50px; }
  .wsp-float__pulse       { width: 50px; height: 50px; }
  .wsp-float__label       { display: none; }
}

/* ── Móviles muy pequeños (< 390px) ── */
@media (max-width: 390px) {
  .stats-grid  { grid-template-columns: 1fr; gap: .75rem; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — CORRECCIONES ADICIONALES v2
   ============================================================ */

/* ── product-hero: quitar min-height fija en móvil ── */
@media (max-width: 860px) {
  .product-hero__inner { min-height: 0; }
}

/* ── npt-banner: altura en cascada por breakpoint ── */
@media (max-width: 640px) {
  .npt-banner__img { height: 180px; }
  .service-hero    { height: 160px; }
}
@media (max-width: 480px) {
  .npt-banner__img { height: 140px; }
  .service-hero    { height: 130px; }
}

/* ── hero-card del carrusel flotante: ajuste en 640px ── */
@media (max-width: 640px) {
  .hero-card          { flex: 0 0 220px; padding: 1rem; }
  .hero-card__product { width: 54px; height: 54px; }
}

/* ── logos-strip: reducir tamaño logo en móvil ── */
@media (max-width: 540px) {
  .logos-strip     { gap: 1.5rem; }
  .logos-strip img { height: 32px; }
}

/* ── enteral carousel wrap: sin padding lateral en móvil ── */
@media (max-width: 540px) {
  .enteral-carousel-wrap { padding: 0 2.5rem; }
}

/* ── Contacto: una columna y formulario apilado desde tablet ── */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .contact-info-card {
    position: static;
    top: auto;
  }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Contacto: móvil — menos padding, tipografía táctil (evita zoom iOS) ── */
@media (max-width: 640px) {
  .contact-info-card,
  .contact-form-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--r-sm);
  }
  .contact-info-card h2,
  .contact-form-card h2 {
    font-size: 1.15rem;
    margin-bottom: 1.15rem;
  }
  .contact-data-item {
    gap: .85rem;
    margin-bottom: 1rem;
  }
  .contact-data-item__icon {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }
  .contact-layout { gap: 1.5rem; }
  .contact-form-card .form-group input,
  .contact-form-card .form-group textarea,
  .contact-form-card .form-group select {
    font-size: 1rem;
  }
  .contact-whistle { padding: 1rem; }
}

/* ── cookies table: scroll horizontal en móvil ── */
@media (max-width: 640px) {
  .cookies-table th { white-space: normal; }
  .cookies-table th,
  .cookies-table td { font-size: .8rem; padding: .5rem .6rem; }
}

/* ── product-table-img: ancho máximo en móvil ── */
@media (max-width: 640px) {
  .product-table-img { width: 100%; }
}

/* ── page-hero: reducir más en móvil pequeño ── */
@media (max-width: 480px) {
  .page-hero { padding: 2rem 0 1.75rem; }
  .page-hero__title { font-size: clamp(1.4rem, 7vw, 2rem); }
}

/* ── product-related: apilar en columna en móvil ── */
@media (max-width: 540px) {
  .product-related { flex-direction: column; }
  .product-related-card { min-width: 0; }
}

/* ── Legacy inline animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s .1s ease both; }
.fade-up-3 { animation: fadeUp .6s .2s ease both; }

/* Scroll reveal — reglas en header.php inline (sin caché) */

/* ============================================================
   DROPDOWN DE NAVEGACIÓN
   ============================================================ */
.nav-dropdown {
  position: relative;
}

/* Toggle — mismo estilo que los demás links del nav */
.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  user-select: none;
}

/* Flecha giratoria */
.nav-dropdown__arrow {
  font-size: .65rem;
  line-height: 1;
  transition: transform .22s ease;
  display: inline-block;
  opacity: .6;
}

/* Estado activo del toggle (página actual es hija de Servicios) */
.nav-dropdown.active > .nav-dropdown__toggle {
  color: var(--c-primary);
  background: var(--c-bg-alt);
  font-weight: 600;
}
.nav-dropdown.active > .nav-dropdown__toggle::after {
  transform: scaleX(1);
}

/* ── DESKTOP (≥ 769px): hover/focus para abrir el dropdown ── */
@media (min-width: 769px) {
  /* Puente invisible entre toggle y menú para no perder hover */
  .nav-dropdown__toggle::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  /* Menú desplegable oculto por defecto */
  .nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: 0 12px 40px rgba(0,46,107,.13);
    padding: .35rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 400;
  }

  /* Triángulo decorativo */
  .nav-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 11px;
    height: 11px;
    background: #fff;
    border-left: 1px solid var(--c-border);
    border-top: 1px solid var(--c-border);
  }

  /* Mostrar al hacer hover o focus */
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* Girar flecha al abrir */
  .nav-dropdown:hover .nav-dropdown__arrow,
  .nav-dropdown:focus-within .nav-dropdown__arrow {
    transform: rotate(180deg);
    opacity: 1;
  }
}

/* Items del menú */
.nav-dropdown__menu li a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.25rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-text);
  transition: background var(--t), color var(--t), padding-left var(--t);
  white-space: nowrap;
}
.nav-dropdown__menu li a:hover {
  background: var(--c-bg-alt);
  color: var(--c-primary);
  padding-left: 1.6rem;
}
.nav-dropdown__menu li a.active {
  background: var(--c-bg-alt);
  color: var(--c-primary);
  font-weight: 600;
}
.nav-dropdown__menu li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.nav-dropdown__menu li a:hover::before,
.nav-dropdown__menu li a.active::before {
  opacity: 1;
}
.nav-dropdown__menu li:not(:last-child) a {
  border-bottom: 1px solid var(--c-border);
}

/* ── Dropdown en MÓVIL (≤ 768px) ── */
@media (max-width: 768px) {
  /* El menú base en móvil: siempre oculto hasta que se abre con JS */
  .nav-dropdown__menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--c-primary);
    border-radius: 0;
    background: transparent;
    padding: .15rem 0;
    margin: .2rem 0 .4rem 1.1rem;
    z-index: auto;
    min-width: 0;
  }
  .nav-dropdown__menu::before { display: none; }

  /* Solo mostrar cuando el JS añade is-open */
  .nav-dropdown.is-open > .nav-dropdown__menu {
    display: block;
  }

  /* Girar flecha cuando está abierto */
  .nav-dropdown.is-open > .nav-dropdown__toggle .nav-dropdown__arrow {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* Toggle: ocupar todo el ancho disponible para que el tap funcione */
  .nav-dropdown__toggle {
    justify-content: space-between;
    width: 100%;
  }

  /* Items del submenú en móvil */
  .nav-dropdown__menu li a {
    padding: .45rem .9rem;
    font-size: .9rem;
  }
  .nav-dropdown__menu li a:hover {
    padding-left: .9rem;
    background: transparent;
  }
  .nav-dropdown__menu li:not(:last-child) a {
    border-bottom: none;
  }

  /* No mostrar subrayado activo en móvil (no queda bien) */
  .nav-dropdown.active > .nav-dropdown__toggle::after {
    display: none;
  }
}

/* ============================================================
   SCROLL REVEAL — reglas en header.php inline (con .js-ready)
   ============================================================ */

/*
 * Saltos de línea y espacios entre etiquetas PHP/HTML dentro de <main> crean nodos de
 * texto; con line-height del body (~1.65) generan cajas de línea → franjas blancas
 * bajo el header y encima del footer. font-size: 0 evita esa altura; se restaura en hijos.
 */
#main-content {
  margin: 0;
  padding: 0;
  display: block;
  font-size: 0;
  line-height: 0;
}
#main-content > * {
  font-size: 1rem;
  line-height: 1.65;
}
/* Primer section (hero) pegado al header: borde + subpíxeles */
#main-content > section:first-of-type {
  margin-top: -1px;
}
