/* ============================================================
   DISTRIFARMA DEL VALLE — Hoja de estilos
   Diseño corporativo premium · Farmacéutica & Dermocosmética
   Paleta: Azul institucional · Blanco · Gris · Oro/Platino (premium)
   ============================================================ */

/* ---------- TOKENS / VARIABLES ---------- */
:root {
  /* Azul institucional Guiro (navy + azul) */
  --azul-900: #0B1F54;
  --azul-800: #0E2A6B;
  --azul-700: #14387F;
  --azul-600: #1565C0;
  --azul-500: #1488D4;
  --azul-300: #6BC3EE;
  --azul-100: #DCEFF9;

  /* Cian Guiro (acento salud / ciencia) */
  --teal-500: #11A7DD;
  --teal-300: #7FD6F0;

  /* Magenta Guiro (acento secundario) */
  --magenta: #E6007E;
  --magenta-600: #C30068;

  /* Premium / lujo */
  --oro-600: #B8893B;
  --oro-texto: #8A6520; /* oro oscuro para texto de cuerpo (cumple contraste AA sobre blanco) */
  --oro-500: #C6A15B;
  --oro-300: #E6D2A2;
  --platino: #C7CDD6;

  /* Neutros */
  --blanco: #FFFFFF;
  --gris-50: #F6F8FB;
  --gris-100: #EEF2F7;
  --gris-200: #E2E8F0;
  --gris-300: #D6DEE8;
  --gris-500: #8A99AC;
  --gris-600: #5B6B7F;
  --tinta: #0F2236;
  --tinta-suave: #33485E;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Sistema */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(11, 42, 74, 0.06);
  --shadow-md: 0 16px 40px rgba(11, 42, 74, 0.10);
  --shadow-lg: 0 30px 70px rgba(11, 42, 74, 0.16);
  --shadow-gold: 0 20px 50px rgba(184, 137, 59, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--blanco);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--azul-800); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- LAYOUT ---------- */
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.74rem; color: var(--azul-600);
  padding: 7px 16px; border: 1px solid var(--azul-100); border-radius: 100px; background: var(--azul-100);
  margin-bottom: 18px;
}
.kicker--light { color: #cfe2f6; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.kicker--gold { color: var(--oro-600); background: rgba(198,161,91,0.10); border-color: rgba(198,161,91,0.30); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--azul-900);
}
.section-intro { margin-top: 18px; color: var(--gris-600); font-size: 1.08rem; }
.section-intro--gold { color: var(--oro-texto); }
.section-head--light .section-title { color: #fff; }
.section-head--light .section-intro { color: #cfe2f6; }

.lead { font-size: 1.22rem; color: var(--tinta-suave); font-weight: 500; }
.lead--light { color: #e6eefa; }

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--azul-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--azul-700); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: rgba(255,255,255,0.10); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--azul-800); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--azul-700); border: 1.6px solid var(--azul-300); }
.btn-outline:hover { background: var(--azul-600); color: #fff; border-color: var(--azul-600); transform: translateY(-3px); }
.btn-gold {
  background: linear-gradient(135deg, var(--oro-500), var(--oro-600));
  color: #2b1f08; box-shadow: var(--shadow-gold); font-size: 1.05rem; padding: 17px 38px;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(184,137,59,0.4); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s, height .4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 24px rgba(11,42,74,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-badge { display: block; border-radius: 50%; box-shadow: 0 4px 14px rgba(11,42,74,0.20); background: #fff; }
.brand--footer .brand-badge { box-shadow: 0 6px 20px rgba(0,0,0,0.30); }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-body); }
.brand-text strong { font-size: 1.36rem; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.brand-text em { font-style: normal; font-size: 0.66rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--teal-300); font-family: var(--font-body); font-weight: 700; margin-top: 4px; }
.scrolled .brand-text strong { color: var(--azul-900); }
.scrolled .brand-text em { color: var(--azul-500); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list a {
  display: inline-block; padding: 10px 15px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.92);
  transition: color .25s, background .25s;
}
.nav-list a:hover { background: rgba(255,255,255,0.14); }
.scrolled .nav-list a { color: var(--tinta-suave); }
.scrolled .nav-list a:hover { background: var(--gris-100); color: var(--azul-700); }
.nav-cta { background: var(--teal-500); color: #04263d !important; margin-left: 8px; }
.nav-cta:hover { background: var(--teal-300) !important; }
.scrolled .nav-cta { color: #04263d !important; }
.nav-list a.active:not(.nav-cta) { color: #fff; background: rgba(255,255,255,0.16); }
.scrolled .nav-list a.active:not(.nav-cta) { color: var(--azul-700); background: var(--gris-100); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; position: relative; z-index: 1100; }
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 4px; transition: transform .35s var(--ease), opacity .3s; }
.scrolled .nav-toggle span { background: var(--azul-800); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding-top: var(--header-h);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7,30,54,0.95) 0%, rgba(8,35,62,0.88) 32%, rgba(10,44,78,0.60) 62%, rgba(11,48,84,0.40) 100%),
    radial-gradient(120% 80% at 12% 8%, rgba(21,101,168,0.30), transparent 55%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
          mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1180px; width: 100%; }
.hero-text { min-width: 0; max-width: 620px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.14); }
.hero-visual-cap { position: absolute; left: 14px; bottom: 14px; background: rgba(14,47,79,0.82); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; padding: 7px 14px; border-radius: 100px; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5); }
.hero-visual-ph { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); border: 1.5px dashed rgba(255,255,255,0.28);
  background: radial-gradient(120% 100% at 30% 12%, rgba(46,196,182,0.20), transparent 55%), linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px; }
.hero-visual-ph svg { width: 54px; height: 54px; fill: none; stroke: rgba(255,255,255,0.72); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual-ph span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.hero-visual-ph small { font-size: 0.82rem; color: #bfd1e6; max-width: 250px; line-height: 1.45; }
@media (max-width: 920px){
  .hero-content { grid-template-columns: 1fr; gap: 34px; max-width: 640px; }
  .hero-visual-ph { aspect-ratio: 16 / 10; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  padding: 9px 18px; border-radius: 100px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(6px); margin-bottom: 26px;
}
.hero-eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 0 rgba(46,196,182,0.7); animation: pulse 2.4s infinite; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6.2vw, 5rem); line-height: 1.04; letter-spacing: -0.02em;
}
.hero-subtitle { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); max-width: 660px; color: #e3edf9; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 48px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-trust li { font-size: 0.96rem; color: #d6e4f4; }
.hero-trust strong { color: var(--teal-300); font-weight: 800; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,0.55); border-radius: 100px;
}
.hero-scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,196,182,0.6); } 70% { box-shadow: 0 0 0 12px rgba(46,196,182,0); } 100% { box-shadow: 0 0 0 0 rgba(46,196,182,0); } }

/* ---- Hero: brillos de color (mesh) ---- */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.55; z-index: 1; pointer-events: none; }
.hero-glow--cyan { width: 520px; height: 520px; background: radial-gradient(circle, rgba(17,167,221,0.55), transparent 70%); top: -130px; right: -70px; animation: glowDrift 16s ease-in-out infinite; }
.hero-glow--gold { width: 480px; height: 480px; background: radial-gradient(circle, rgba(212,160,23,0.36), transparent 70%); bottom: -150px; left: -70px; animation: glowDrift 21s ease-in-out infinite reverse; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(58% 46% at 82% 104%, rgba(212,160,23,0.17), transparent 62%); }
.hero-glow--blue { width: 560px; height: 560px; background: radial-gradient(circle, rgba(21,101,192,0.5), transparent 70%); top: 28%; left: 42%; animation: glowDrift 25s ease-in-out infinite; }
@keyframes glowDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.12); } }

/* ---- Hero: figuras flotantes (ciencia / farma) ---- */
.hero-float { position: absolute; z-index: 1; opacity: 0.13; pointer-events: none; color: var(--teal-300); }
.hero-float circle { fill: currentColor; }
.hero-float line { stroke: currentColor; stroke-width: 3; }
.hero-float path { fill: currentColor; }
.hf-1 { width: 118px; top: 17%; right: 11%; animation: floatY 9s ease-in-out infinite; }
.hf-2 { width: 124px; top: 54%; right: 6%; color: #fff; animation: floatY 12s ease-in-out infinite reverse; }
.hf-3 { width: 64px; top: 72%; left: 7%; animation: floatY 8s ease-in-out infinite; }
.hf-4 { width: 96px; top: 13%; left: 16%; color: #fff; animation: floatY 14s ease-in-out infinite reverse; }
.hf-4 path { fill: none; stroke: currentColor; stroke-width: 5; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(7deg); } }

/* ---- Hero: logo grande ---- */
.hero-logo { width: 118px; height: 118px; border-radius: 50%; margin-bottom: 24px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.35);
  animation: heroLogoIn .9s var(--ease) both; }
@keyframes heroLogoIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---- Hero: gradiente en parte del título ---- */
.hero-title .grad { background: linear-gradient(100deg, var(--teal-300), #fff 55%, var(--teal-300));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- Hero: tarjetas de cifras (glass) ---- */
.hero-highlights { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero-highlights li { display: flex; flex-direction: column; padding: 16px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-highlights strong { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: #fff; line-height: 1; }
.hero-highlights span { margin-top: 6px; font-size: 0.82rem; color: #cfe0f2; }

/* ---- Hero: aliados ---- */
.hero-partners { margin-top: 26px; font-size: 0.92rem; color: #b9cce2; display: flex; flex-wrap: wrap; gap: 4px 9px; align-items: center; }
.hero-partners span { opacity: 0.7; }
.hero-partners b { color: #fff; font-weight: 700; }
.hero-partners i { color: var(--teal-300); font-style: normal; }

/* ============================================================
   2. NOSOTROS
   ============================================================ */
.nosotros { background: var(--blanco); }
.nosotros-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.nosotros-text p + p { margin-top: 18px; }
.nosotros-text .lead { margin-bottom: 8px; }
.nosotros-text strong { color: var(--azul-700); }

.mvv { display: grid; gap: 18px; margin-top: 36px; }
.mvv-card {
  background: var(--gris-50); border: 1px solid var(--gris-200);
  border-radius: var(--radius); padding: 24px 26px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--azul-100); }
.mvv-card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--azul-800); margin-bottom: 8px; }
.mvv-icon { display: inline-flex; align-items: center; }
.mvv-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--teal-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.value-list li { background: #fff; border: 1px solid var(--gris-200); padding: 6px 14px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; color: var(--azul-700); }

/* Panel de respaldo (aside de Nosotros) */
.respaldo-card { background: radial-gradient(120% 100% at 82% 0%, rgba(46,196,182,0.16), transparent 55%), linear-gradient(150deg, var(--azul-800), var(--azul-900)); color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); border: 1px solid rgba(212,160,23,0.32); box-shadow: 0 26px 60px -28px rgba(8,26,46,0.75); }
.respaldo-eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oro-300); margin-bottom: 12px; }
.respaldo-brand { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.14; color: #fff; }
.respaldo-sub { color: #c4d6ea; font-size: 0.92rem; margin-top: 7px; }
.respaldo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14); }
.respaldo-stats li { display: flex; flex-direction: column; }
.respaldo-stats strong { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; color: var(--oro-300); line-height: 1; }
.respaldo-stats span { font-size: 0.8rem; color: #cddcee; margin-top: 5px; line-height: 1.25; }

.nosotros-aside { position: sticky; top: calc(var(--header-h) + 24px); }

/* Placeholders de imagen */
.img-placeholder {
  position: relative; display: grid; place-items: center; gap: 8px;
  background:
    linear-gradient(135deg, var(--azul-100), var(--gris-100));
  border: 1px dashed var(--azul-300); border-radius: var(--radius);
  color: var(--azul-600); overflow: hidden; text-align: center;
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; font-weight: 600; color: var(--azul-700);
  background: rgba(255,255,255,0.75); padding: 5px 12px; border-radius: 100px;
  width: max-content; max-width: 86%;
}
.img-placeholder .ph-ico { font-size: 2.6rem; opacity: 0.85; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-product { aspect-ratio: 3 / 4; }

/* Línea de tiempo */
.timeline { margin-top: clamp(56px, 7vw, 90px); }
.timeline-title { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--azul-800); text-align: center; margin-bottom: 40px; }
.timeline-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 0; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory;
}
.tl-item { position: relative; padding: 30px 22px 0; scroll-snap-align: start; }
.tl-item::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--gris-200); }
.tl-item::after { content: ""; position: absolute; top: 2px; left: 22px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--azul-500); }
.tl-item.is-highlight::after { border-color: var(--oro-500); background: var(--oro-300); box-shadow: 0 0 0 5px rgba(198,161,91,0.18); }
.tl-year { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--azul-700); margin-bottom: 8px; }
.is-highlight .tl-year { color: var(--oro-600); }
.tl-item p { font-size: 0.96rem; color: var(--gris-600); }

/* ============================================================
   3. CIFRAS
   ============================================================ */
.cifras {
  background:
    radial-gradient(100% 120% at 80% 0%, rgba(46,196,182,0.18), transparent 55%),
    linear-gradient(135deg, var(--azul-800), var(--azul-900));
  color: #fff;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.stat {
  text-align: center; padding: 30px 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background .4s;
}
.stat:hover { transform: translateY(-5px); background: rgba(255,255,255,0.09); }
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: #fff;
  background: linear-gradient(180deg, #fff, var(--teal-300)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: 12px; font-size: 0.9rem; color: #c9dcf0; font-weight: 500; }
.stat-ico { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; background: rgba(46,196,182,0.14); border: 1px solid rgba(46,196,182,0.32); }
.stat-ico svg { width: 24px; height: 24px; color: var(--teal-300); }

/* Conglomerado / grupo de marcas */
.grupo-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; list-style: none; margin: 0 auto clamp(36px, 5vw, 52px); padding: 18px 4px; border-top: 1px solid var(--gris-200); border-bottom: 1px solid var(--gris-200); max-width: 720px; }
.grupo-stats li { text-align: center; }
.grupo-stats strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--azul-700); }
.grupo-stats span { font-size: 0.84rem; color: var(--gris-600); }
.grupo-brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.brand-cell { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--gris-200); border-radius: 14px; padding: 18px 26px; min-width: 150px; min-height: 92px; box-shadow: 0 8px 22px -14px rgba(14,47,79,0.22); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.brand-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--oro-300); }
.brand-cell img { height: 42px; width: auto; max-width: 230px; object-fit: contain; display: block; }
.grupo-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; margin: clamp(32px, 4vw, 46px) auto 0; max-width: 880px; }
.grupo-facts li { font-size: 0.92rem; color: var(--gris-600); }
.grupo-facts strong { color: var(--azul-700); font-weight: 700; }
.grupo-facts .muted { color: var(--gris-500); }
@media (max-width: 620px) { .brand-cell { min-width: 132px; padding: 16px 18px; } .brand-cell img { height: 36px; } }
.stat-ico svg path, .stat-ico svg circle, .stat-ico svg rect, .stat-ico svg line, .stat-ico svg polyline { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   VENTAJAS COMPETITIVAS
   ============================================================ */
.ventajas { background: #fff; }
.ventajas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vtg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gris-200);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.vtg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--azul-100); }
.vtg-media { position: relative; height: 184px; overflow: hidden; background: var(--azul-900); }
.vtg-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.vtg-card:hover .vtg-media img { transform: scale(1.06); }
.vtg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(13,40,66,0.32)); }
.vtg-body { padding: 22px 24px 26px; }
.vtg-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--azul-900); margin-bottom: 8px; line-height: 1.25; }
.vtg-body p { font-size: 0.92rem; color: var(--gris-600); line-height: 1.55; }
.vtg-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px;
  font-size: 1.7rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--azul-100), #fff); border: 1px solid var(--gris-200);
}
.vtg-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--azul-800); margin-bottom: 8px; }
.vtg-card p { color: var(--gris-600); font-size: 0.96rem; }

/* ============================================================
   4. LABORATORIOS
   ============================================================ */
.laboratorios { background: var(--gris-50); }
.logo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px;
}
.labs-wall {
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm); margin-bottom: 56px; text-align: center;
}
.labs-wall img { width: 100%; max-width: 760px; height: auto; margin: 0 auto; }

/* Grilla estructurada de laboratorios (logos individuales) */
.labs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 52px; }
.lab-cell { flex: 0 1 calc(25% - 12px); min-width: 156px; display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius); padding: 16px 22px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.lab-cell img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; transition: transform .4s var(--ease); }
.lab-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--azul-100); }
.lab-cell:hover img { transform: scale(1.06); }
.lab-cell--more { background: linear-gradient(135deg, var(--azul-700), var(--azul-900)); border: none; }
.lab-cell--more span { color: #fff; text-align: center; font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
.lab-cell--more strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--teal-300); }
.lab-cell--more:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (max-width: 900px){ .lab-cell { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 580px){ .lab-cell { flex-basis: calc(50% - 8px); } }
.logo-cell {
  display: grid; place-items: center; aspect-ratio: 16 / 7;
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius-sm);
  color: var(--gris-500); font-weight: 700; letter-spacing: 0.04em;
  filter: grayscale(1); opacity: 0.85;
  transition: filter .35s, opacity .35s, transform .35s var(--ease), box-shadow .35s;
}
.logo-cell:hover { filter: grayscale(0); opacity: 1; transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--azul-600); }

/* Tarjeta destacada Natural System */
.featured-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: #fff; border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.featured-card + .featured-card { margin-top: 28px; }
.featured-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 6px; height: 100%;
  background: linear-gradient(180deg, var(--teal-500), var(--azul-500));
}
.featured-card-media .img-placeholder { background: linear-gradient(135deg, #e7f5ec, #d6ecdc); border-color: #9fcfae; color: #2f7d4a; }
.featured-logo { display: grid; place-items: center; aspect-ratio: 1 / 1; background: linear-gradient(150deg, #eef5fc, #dbe8f7); border: 1px solid #cdddf0; border-radius: var(--radius); padding: 32px; }
.featured-logo img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.seal {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--azul-700), var(--azul-500)); color: #fff;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 9px 18px; border-radius: 100px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.seal-icon { color: var(--oro-300); }
.featured-card-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--azul-900); margin-bottom: 14px; }

/* Aliado destacado principal: Mergens (más grande, premium oscuro/dorado) */
.featured-card--mergens { grid-template-columns: 1fr 1.1fr; background: linear-gradient(135deg, var(--azul-800), var(--azul-900)); border-color: rgba(212,160,23,0.34); padding: clamp(28px,4.5vw,58px); box-shadow: 0 26px 60px -28px rgba(8,26,46,0.85); }
.featured-card--mergens::before { background: linear-gradient(180deg, var(--oro-500), var(--oro-300)); }
.featured-card--mergens .featured-card-title { color: #fff; font-size: clamp(2rem,3.4vw,3rem); }
.featured-card--mergens .featured-card-body p { color: #cfe0f2; }
.featured-card--mergens .check-list li { color: #dbe8f5; }
.featured-logo--mergens { background: #fff; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5); }
.featured-logo--mergens img { max-width: 86%; max-height: 78%; }
.featured-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; box-shadow: 0 18px 44px -20px rgba(8,26,46,0.6); }
.featured-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-photo-logo { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 12px; padding: 9px 13px; box-shadow: 0 6px 18px rgba(8,26,46,0.30); display: flex; align-items: center; }
.featured-photo-logo img { height: auto; width: auto; max-width: 175px; max-height: 26px; display: block; }
.featured-photo-logo--v img { height: 44px; }
.seal--gold { background: linear-gradient(135deg, var(--oro-600), var(--oro-500)); color: #2b1f08; }
.seal--gold .seal-icon { color: #6b4e12; }
.labs-subhead { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--azul-900); margin: 50px 0 24px; }

/* Mapa real de Colombia con CEDIs */
.red-map { position: relative; width: 100%; max-width: 410px; height: auto; margin: 0 auto; aspect-ratio: 735 / 940; background: none; border: none; }
.co-silhouette { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 30px rgba(13,59,102,0.28)); }
.map-pt { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.map-pt::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-500); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(8,26,46,0.4); z-index: 2; }
.map-pt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-500); opacity: 0.55; animation: mapPulse 2.6s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(1); opacity: 0.55; } 70% { transform: scale(3.4); opacity: 0; } 100% { opacity: 0; } }
.map-pt-label { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.78rem; font-weight: 800; color: var(--azul-900); background: rgba(255,255,255,0.92); padding: 2px 9px; border-radius: 7px; box-shadow: 0 2px 6px rgba(13,59,102,0.18); }
.map-pt--l .map-pt-label { left: auto; right: 19px; }
.map-pt--hq { width: 19px; height: 19px; z-index: 4; }
.map-pt--hq::before { background: var(--oro-500); }
.map-pt--hq::after { background: var(--oro-500); opacity: 0.6; }
.map-pt--hq .map-pt-label { background: var(--azul-900); color: #fff; }
.map-glow { position: absolute; inset: -8% -14%; z-index: 0; background: radial-gradient(46% 40% at 40% 40%, rgba(46,196,182,0.30), transparent 72%); filter: blur(8px); pointer-events: none; }
.map-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.map-net line { stroke: rgba(255,255,255,0.6); stroke-width: 0.45; stroke-linecap: round; stroke-dasharray: 1.4 1.8; animation: netDash 22s linear infinite; }
@keyframes netDash { to { stroke-dashoffset: -60; } }
.map-dot { position: absolute; width: 7px; height: 7px; transform: translate(-50%, -50%); z-index: 3; border-radius: 50%; background: rgba(255,255,255,0.85); box-shadow: 0 0 0 3px rgba(255,255,255,0.16), 0 1px 3px rgba(8,26,46,0.4); }
.rf-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; background: linear-gradient(135deg, var(--teal-500), var(--azul-600)); }
.rf-icon svg { width: 26px; height: 26px; color: #fff; }
.rf-icon svg path, .rf-icon svg rect, .rf-icon svg circle, .rf-icon svg line, .rf-icon svg polyline { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Testimonios: estrellas, foto y video */
.testi-stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--oro-500); }
.testi-stars .star { width: 18px; height: 18px; fill: currentColor; }
.testi-avatar-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.testi-card--video { padding: 0; overflow: hidden; }
.testi-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: none; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--azul-700), var(--azul-900)); overflow: hidden; }
.testi-video-thumb { position: absolute; inset: 0; background: radial-gradient(120% 120% at 28% 18%, rgba(46,196,182,0.5), transparent 60%); }
.testi-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.testi-video .play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.94); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,0.32); transition: transform .3s var(--ease); }
.testi-video:hover .play-badge { transform: translate(-50%,-50%) scale(1.08); }
.testi-video .play-badge svg { width: 24px; height: 24px; fill: var(--azul-700); margin-left: 3px; }
.testi-video-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(13,40,66,0.72); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 12px; border-radius: 100px; }
.testi-card--video .testi-body { padding: 22px 24px 24px; }
.video-modal-card { max-width: 920px; width: 92%; padding: 14px; background: #0b1f33; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cumplimiento y calidad */
.cumplimiento { background: var(--gris-50); }
.cmp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmp-card { background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.cmp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--azul-100); }
.cmp-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-500), var(--azul-600)); margin-bottom: 16px; }
.cmp-icon svg { width: 27px; height: 27px; color: #fff; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cmp-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--azul-900); margin-bottom: 8px; line-height: 1.25; }
.cmp-card p { font-size: 0.92rem; color: var(--gris-600); line-height: 1.55; }
.cmp-ref { display: inline-block; margin-top: 13px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; color: var(--azul-700); background: rgba(46,196,182,0.14); padding: 4px 11px; border-radius: 100px; }

/* FAQ */
.faq { background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--gris-50); border: 1px solid var(--gris-200); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item[open] { border-color: var(--azul-100); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--azul-900); font-size: 1.02rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--teal-500); transition: transform .3s var(--ease); line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--gris-600); line-height: 1.6; font-size: 0.96rem; }
@media (max-width: 880px){ .cmp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .cmp-grid { grid-template-columns: 1fr; } }

/* Fix: panel de logo destacado (Mergens/MNS) en móvil — evita que se encoja con margin auto */
@media (max-width: 720px){
  .featured-card-media { width: 100%; max-width: 240px; margin: 0 auto; }
  .featured-logo { width: 100%; }
}
.featured-card-body p { color: var(--gris-600); }

.check-list { margin-top: 18px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--tinta-suave); font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--teal-500); color: #fff; border-radius: 50%; font-size: 0.7rem; font-weight: 800;
}
.featured-card-body .btn { margin-top: 26px; }
.check-list--gold li::before { background: var(--oro-500); }

/* ============================================================
   5. MERGENS (sección estrella — oscura + oro)
   ============================================================ */
.mergens { color: #fff; overflow: hidden; isolation: isolate; }
.mergens-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 85% 15%, rgba(198,161,91,0.20), transparent 55%),
    radial-gradient(70% 70% at 10% 90%, rgba(21,101,168,0.30), transparent 60%),
    linear-gradient(150deg, #0a1a2e 0%, #0c2138 50%, #0a1a2e 100%);
}
.mergens-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 30px 30px; opacity: 0.6;
}
.mergens-head { text-align: center; max-width: 860px; margin: 0 auto clamp(40px, 5vw, 70px); }
.mergens-logo { display: block; margin: 0 auto 22px; background: #fff; padding: 15px 28px; border-radius: 14px; box-shadow: var(--shadow-md); box-sizing: border-box; width: min(340px, 82%); height: auto; }
.mergens-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; color: #fff; }
.gold-text {
  background: linear-gradient(135deg, var(--oro-300), var(--oro-500), var(--oro-600));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.mergens-subtitle { margin-top: 20px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: #d9c9a6; font-style: italic; font-family: var(--font-display); }

/* Barra de credenciales / origen de Mergens */
.mergens-marks { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1040px; margin: 0 auto clamp(48px, 6vw, 78px); background: rgba(255,255,255,0.045); border: 1px solid rgba(212,160,23,0.28); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 54px -30px rgba(0,0,0,0.62); }
.mm-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 5px; padding: 24px 14px; border-right: 1px solid rgba(255,255,255,0.1); }
.mm-item:last-child { border-right: none; }
.mm-flag { display: inline-flex; margin-bottom: 4px; }
.mm-flag svg { width: 34px; height: 24px; border-radius: 3px; box-shadow: 0 2px 7px rgba(0,0,0,0.5); }
.mm-item strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: #fff; line-height: 1.12; }
.mm-item strong.mm-big { font-size: 1.75rem; color: var(--oro-300); }
.mm-sub { font-size: 0.76rem; color: #c0d2e6; line-height: 1.28; }
@media (max-width: 760px){ .mergens-marks { grid-template-columns: 1fr 1fr; } .mm-item { border-bottom: 1px solid rgba(255,255,255,0.1); } .mm-item:nth-child(2n) { border-right: none; } .mm-item:last-child { grid-column: 1 / -1; border-right: none; border-bottom: none; } }

.mergens-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(44px, 6vw, 96px); align-items: center; }
.mergens-stats { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 22px 0 4px; padding: 18px 0; border-top: 1px solid rgba(198,161,91,0.25); border-bottom: 1px solid rgba(198,161,91,0.25); }
.mergens-stats li { color: #c4d2e2; font-size: 0.9rem; line-height: 1.2; }
.mergens-stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--oro-300); line-height: 1; margin-bottom: 3px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.feature {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(198,161,91,0.22);
  border-radius: var(--radius); padding: 24px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(198,161,91,0.55); background: rgba(255,255,255,0.06); }
.feature-icon { display: inline-flex; align-items: center; margin-bottom: 12px; }
.feature-icon .flag { height: 24px; width: auto; border-radius: 2px; box-shadow: 0 1px 5px rgba(0,0,0,0.4); }
.feature-icon .ic { width: 30px; height: 30px; fill: none; stroke: var(--oro-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--oro-300); margin-bottom: 6px; }
.feature p { font-size: 0.94rem; color: #c4d2e2; }

.mergens-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.mergens-gallery .img-placeholder {
  background: linear-gradient(135deg, rgba(198,161,91,0.16), rgba(13,33,56,0.6));
  border: 1px solid rgba(198,161,91,0.32); color: var(--oro-300);
}
.mergens-gallery .img-placeholder::after { background: rgba(10,26,46,0.7); color: var(--oro-300); }
.mg-tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.mg-small { aspect-ratio: 1 / 1; }
.mg-cell { overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(198,161,91,0.32); margin: 0; box-shadow: 0 18px 40px rgba(0,0,0,0.28); }
.mg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.mg-cell:hover img { transform: scale(1.05); }

/* ============================================================
   6. NEROLA
   ============================================================ */
.nerola { background: linear-gradient(180deg, #fbf7ef 0%, #fff 100%); position: relative; }
.nerola::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro-300), transparent);
}
.nerola-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); }
.nerola-title { color: #2b1f08; }
.nerola-title .by { font-family: var(--font-body); font-weight: 700; font-size: 0.4em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oro-600); vertical-align: middle; }

.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 56px; }
.product-card {
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--oro-300); }
.product-card .img-placeholder { background: linear-gradient(135deg, #faf3e6, #f1e6d0); border-color: var(--oro-300); color: var(--oro-600); margin-bottom: 16px; }
.product-card .img-placeholder::after { display: none; }
.product-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--azul-900); margin-bottom: 6px; }
.product-card p { font-size: 0.9rem; color: var(--gris-600); }

.nerola-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: #fff; border: 1px solid var(--oro-300); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--oro-600); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--gris-200); }

/* Concepto de marca (chips) */
.nerola-concept {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin: 0 auto clamp(40px, 5vw, 64px); max-width: 820px;
}
.nerola-concept li {
  background: #fff; border: 1px solid var(--oro-300); color: var(--oro-600);
  font-weight: 700; font-size: 0.92rem; padding: 10px 20px; border-radius: 100px; box-shadow: var(--shadow-sm);
}

/* 4 líneas oficiales (filas alternadas tipo revista) */
.nerola-lines { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: clamp(44px, 5vw, 68px); }
.nerola-line { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.nerola-line:nth-child(even) .nerola-line-media { order: 2; }
.nerola-line-media { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--oro-300); max-width: 392px; margin: 0 auto; }
.nerola-line-media img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.nerola-line:hover .nerola-line-media img { transform: scale(1.04); }
.line-tag { display: inline-block; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; color: var(--oro-600); margin-bottom: 12px; }
.nerola-line-body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.3rem); color: #2b1f08; line-height: 1.1; margin-bottom: 6px; }
.line-product { font-weight: 700; color: var(--azul-700); font-size: 0.95rem; letter-spacing: 0.01em; margin-bottom: 12px; }
.line-claim { color: var(--gris-600); font-size: 1.06rem; margin-bottom: 6px; }
.line-tech { margin-top: 14px; display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--oro-600); background: rgba(198,161,91,0.10); border: 1px solid var(--oro-300); padding: 6px 14px; border-radius: 100px; }

.nerola-cta { text-align: center; margin-top: clamp(40px, 5vw, 56px); }
.nerola-cta-note { margin-top: 14px; font-size: 0.86rem; color: var(--gris-600); }

/* Catálogo de productos Nerola */
.nerola-products-head { text-align: center; max-width: 720px; margin: clamp(48px,6vw,76px) auto clamp(28px,4vw,40px); }
.np-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: #2b1f08; }
.np-sub { margin-top: 10px; color: var(--gris-600); }
.nerola-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.np-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.np-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.np-media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--gris-200); overflow: hidden; }
.np-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.np-card:hover .np-img { transform: scale(1.04); }
.np-ico { font-size: 2.7rem; opacity: 0.85; }
.np-tag-line { position: absolute; top: 12px; left: 12px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--oro-600); background: rgba(255,255,255,0.88); padding: 4px 11px; border-radius: 100px; }
.np-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.np-body h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--azul-900); line-height: 1.2; margin-bottom: 7px; }
.np-body p { font-size: 0.9rem; color: var(--gris-600); flex: 1; margin-bottom: 12px; }
.np-meta { flex: 0 0 auto !important; font-size: 0.76rem; font-weight: 700; color: var(--oro-texto); margin-bottom: 16px !important; letter-spacing: 0.01em; }
.np-card--woundil .np-tag-line { color: var(--teal-500); }
.np-card--woundil .np-media { background: #fff; }
.np-card:hover { border-color: var(--oro-300); }

/* Nerola: barra de credenciales premium (con banderas reales) */
.nerola-marks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px auto 0; max-width: 960px; background: #fff; border: 1px solid var(--oro-300); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 14px 40px -24px rgba(138,101,32,0.4); }
.nerola-mark { padding: 22px 20px; text-align: center; border-right: 1px solid var(--gris-200); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.nerola-mark:last-child { border-right: none; }
.nerola-mark strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--azul-900); line-height: 1.15; }
.nerola-mark span { font-size: 0.8rem; color: var(--gris-600); }
.nerola-flags { display: flex; gap: 7px; margin-bottom: 8px; }
.nerola-flags svg { width: 30px; height: 21px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,0.22); }
@media (max-width: 760px){
  .nerola-marks { grid-template-columns: repeat(2, 1fr); }
  .nerola-mark:nth-child(2) { border-right: none; }
  .nerola-mark:nth-child(1), .nerola-mark:nth-child(2) { border-bottom: 1px solid var(--gris-200); }
}
.btn-farmatodo-sm { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 0.86rem; padding: 11px 18px; border-radius: 100px; background: linear-gradient(135deg, var(--oro-500), var(--oro-600)); color: #2b1f08; transition: transform .3s var(--ease), box-shadow .3s; }
.btn-farmatodo-sm:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* WhatsApp: botón directo "quiero ser cliente" + flotante con ícono real */
.btn-wa-cta { display: inline-flex; align-items: center; gap: 12px; margin: 2px 0 26px; padding: 14px 22px; border-radius: 100px; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; font-weight: 800; font-size: 0.98rem; line-height: 1.15; box-shadow: 0 10px 24px -8px rgba(18,140,126,0.6); transition: transform .3s var(--ease), box-shadow .3s; }
.btn-wa-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(18,140,126,0.78); }
.btn-wa-cta .wa-ico { width: 26px; height: 26px; flex: 0 0 auto; }
.wa-float { color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* Catálogo / portafolio (descarga PDF) */
.catalogo-feature { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px,4vw,52px); align-items: center;
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius-lg); padding: clamp(22px,4vw,44px); box-shadow: var(--shadow-md); }
.catalogo-cover { position: relative; display: block; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .4s var(--ease); }
.catalogo-cover:hover { transform: translateY(-5px); }
.catalogo-cover img { width: 100%; height: auto; display: block; }
.catalogo-cover-badge { position: absolute; left: 14px; bottom: 14px; background: linear-gradient(135deg, var(--azul-700), var(--azul-500));
  color: #fff; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.04em; padding: 6px 14px; border-radius: 100px; box-shadow: var(--shadow-sm); }
.catalogo-info h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem,2.6vw,2rem); color: var(--azul-900); margin-bottom: 18px; line-height: 1.2; }
.catalogo-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
@media (max-width: 760px){ .catalogo-feature { grid-template-columns: 1fr; } }

/* ============================================================
   POR QUÉ SUMAR NEROLA (B2B)
   ============================================================ */
.nerola-b2b {
  background:
    radial-gradient(90% 80% at 80% 10%, rgba(198,161,91,0.16), transparent 55%),
    linear-gradient(150deg, #0a1a2e 0%, #0c2138 55%, #0a1a2e 100%);
  color: #fff;
}
.b2b-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.b2b-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(198,161,91,0.25);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.b2b-card:hover { transform: translateY(-5px); border-color: rgba(198,161,91,0.55); background: rgba(255,255,255,0.07); }
.b2b-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.b2b-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--oro-300); margin-bottom: 8px; }
.b2b-card p { color: #c4d2e2; font-size: 0.96rem; }
.b2b-card strong { color: #fff; }
.b2b-cta { text-align: center; margin-top: clamp(36px, 5vw, 56px); }

/* Guiro en una palabra (video clientes) */
.video-guiro-frame { max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 34px 70px -34px rgba(13,59,102,0.55); position: relative; border: 1px solid var(--gris-200); }
.video-guiro-frame video, .video-guiro-frame iframe { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; }
.video-ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 30px; color: #fff;
  background: radial-gradient(120% 100% at 28% 8%, rgba(46,196,182,0.22), transparent 55%), linear-gradient(150deg, var(--azul-800), var(--azul-900)); }
.video-ph-play { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.55); transition: transform .3s var(--ease), background .3s; }
.video-guiro-frame:hover .video-ph-play { transform: scale(1.06); background: rgba(255,255,255,0.2); }
.video-ph-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.video-ph-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.video-ph small { font-size: 0.85rem; color: #cfe0f2; max-width: 440px; line-height: 1.5; }

/* ============================================================
   7. CLIENTES (carrusel)
   ============================================================ */
.clientes { background: var(--gris-50); }
.clients-carousel { overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients-track { display: flex; gap: 28px; width: max-content; animation: marquee 26s linear infinite; }
.clients-carousel:hover .clients-track,
.clients-track:focus-within { animation-play-state: paused; }
.client-cell {
  flex: 0 0 auto; width: 220px; height: 110px; display: grid; place-items: center; padding: 18px 24px;
  background: #fff; border: 1px solid var(--gris-200); border-radius: var(--radius); overflow: hidden;
  color: var(--gris-500); font-weight: 700; letter-spacing: 0.04em; box-shadow: var(--shadow-sm);
  cursor: pointer; text-decoration: none; opacity: 1;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.client-cell:hover, .client-cell:focus-visible { color: var(--azul-600); transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--azul-100); }
.client-cell img { max-width: 148px; max-height: 52px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ============================================================
   8. RED DE DISTRIBUCIÓN
   ============================================================ */
.red { background: #fff; }
.red-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.red-map { position: relative; display: grid; place-items: center; padding: 20px; }
.co-map { width: min(100%, 360px); height: auto; filter: drop-shadow(0 20px 40px rgba(11,42,74,0.14)); }
.map-dot { fill: var(--azul-500); opacity: 0; transform-origin: center; animation: dotpop .5s var(--ease) forwards; animation-play-state: paused; }
.map-dot--hq { fill: var(--teal-500); }
.in-view .map-dot { animation-play-state: running; }
.in-view .map-dot--hq { animation-play-state: running; }
.map-dot:nth-child(1){ animation-delay:.1s } .map-dot:nth-child(2){ animation-delay:.25s }
.map-dot:nth-child(3){ animation-delay:.4s } .map-dot:nth-child(4){ animation-delay:.55s }
.map-dot:nth-child(5){ animation-delay:.7s } .map-dot:nth-child(6){ animation-delay:.85s }
.map-dot:nth-child(7){ animation-delay:1s } .map-dot:nth-child(8){ animation-delay:1.15s }
.map-dot:nth-child(9){ animation-delay:1.3s }
@keyframes dotpop { 0% { opacity: 0; transform: scale(0); } 60% { transform: scale(1.4); } 100% { opacity: 1; transform: scale(1); } }
.map-dot--hq { animation: dotpop .5s var(--ease) forwards, pulseGreen 2.4s 1.5s infinite; animation-play-state: paused; }
@keyframes pulseGreen { 0%,100% { filter: drop-shadow(0 0 0 rgba(46,196,182,0.6)); } 50% { filter: drop-shadow(0 0 8px rgba(46,196,182,0.9)); } }
.map-hq-label { position: absolute; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--azul-800); background: #fff; padding: 7px 16px; border-radius: 100px; box-shadow: var(--shadow-md); }
.hq-pin { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-500); }

.red-features { display: grid; gap: 18px; }
.red-feature {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--gris-50); border: 1px solid var(--gris-200); border-radius: var(--radius); padding: 22px 24px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.red-feature:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.rf-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.red-feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--azul-800); margin-bottom: 4px; }
.red-feature p { font-size: 0.94rem; color: var(--gris-600); }

/* ============================================================
   9. TESTIMONIOS
   ============================================================ */
.testimonios {
  background:
    radial-gradient(100% 120% at 20% 0%, rgba(46,196,182,0.16), transparent 55%),
    linear-gradient(135deg, var(--azul-800), var(--azul-900));
  color: #fff;
}
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius); padding: 32px 30px; backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background .4s;
}
.testi-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.09); }
.testi-card blockquote { font-family: var(--font-display); font-size: 1.14rem; line-height: 1.5; color: #eaf2fb; position: relative; }
.testi-card blockquote::before { content: "“"; font-size: 3.4rem; line-height: 0; color: var(--teal-300); position: absolute; top: 14px; left: -6px; opacity: 0.5; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-500), var(--azul-500)); font-weight: 800; font-size: 0.95rem; flex-shrink: 0; }
.testi-card figcaption span { display: flex; flex-direction: column; }
.testi-card figcaption strong { font-size: 0.98rem; }
.testi-card figcaption em { font-style: normal; font-size: 0.84rem; color: #b9cce2; }
.testi-subhead { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: #fff; margin: 6px 0 22px; }
.testi-subhead::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.16); }
.testi-grid + .testi-subhead { margin-top: 46px; }

/* ============================================================
   10. GALERÍA
   ============================================================ */
.galeria { background: var(--gris-50); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.gallery-item {
  position: relative; display: block; overflow: hidden; aspect-ratio: 17 / 20; padding: 0;
  border-radius: var(--radius); border: 1px solid var(--gris-200); background: #fff; cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--azul-300); }
.gallery-item .ph-ico { font-size: 2.4rem; }
.gallery-item::after { content: attr(data-caption); position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; font-size: 0.8rem; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(11,42,74,0.85), transparent); text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.g-lg { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-video { background: linear-gradient(135deg, var(--azul-700), var(--azul-900)); color: #fff; }
.play-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.6); font-size: 1.3rem; padding-left: 4px; transition: transform .35s, background .35s; }
.g-video:hover .play-badge { transform: scale(1.1); background: var(--teal-500); }

/* ============================================================
   11. CONTACTO
   ============================================================ */
.contacto { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 30px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--gris-50); border: 1px solid var(--gris-200); border-radius: 12px; }
.contact-list strong { display: block; color: var(--azul-800); font-size: 0.92rem; }
.contact-list p { color: var(--gris-600); font-size: 0.96rem; }
.contact-list a:hover { color: var(--azul-600); text-decoration: underline; }

.map-embed {
  margin-top: 8px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--gris-100);
  border: 1px solid var(--gris-200); display: grid; place-items: center; gap: 8px;
  color: var(--azul-600); font-weight: 600; font-size: 0.9rem; text-align: center;
}
.map-embed .ph-ico { font-size: 2.2rem; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  text-decoration: none; display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 16px; padding: 22px; aspect-ratio: 16 / 7;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(21,101,192,0.05) 22px, rgba(21,101,192,0.05) 23px),
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(21,101,192,0.05) 22px, rgba(21,101,192,0.05) 23px),
    linear-gradient(135deg, var(--azul-100), #eef6fd);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.map-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--azul-300); }
.map-pin { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(11,42,74,0.25)); }
.map-link-text { display: flex; flex-direction: column; text-align: left; gap: 3px; }
.map-link-text strong { color: var(--azul-800); font-size: 1.02rem; }
.map-link-text span { color: var(--azul-600); font-weight: 600; font-size: 0.86rem; }

.contact-form {
  background: var(--gris-50); border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--azul-800); margin-bottom: 7px; }
.field label span { color: #d4444a; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--gris-300); border-radius: 12px;
  background: #fff; color: var(--tinta); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--azul-500); box-shadow: 0 0 0 4px rgba(21,101,168,0.12); }
.field input.invalid, .field textarea.invalid { border-color: #d4444a; box-shadow: 0 0 0 4px rgba(212,68,74,0.12); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: #1f9d57; }
.form-status.err { color: #d4444a; }
.form-legal { margin-top: 16px; font-size: 0.82rem; color: var(--gris-600); text-align: center; }
.form-legal a { color: var(--azul-600); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--azul-900); color: #c9d8ea; padding-top: clamp(56px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand--footer .brand-text strong { color: #fff; font-size: 1.4rem; }
.brand--footer .brand-text em { color: var(--teal-300); }
.footer-tagline { margin: 18px 0 22px; font-size: 0.95rem; color: #9fb6d1; max-width: 340px; }
.social { display: flex; gap: 12px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; font-weight: 700; transition: background .3s, transform .3s; }
.social a:hover { background: var(--teal-500); transform: translateY(-3px); }
.footer-col h3 { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.1rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 0.94rem; color: #9fb6d1; transition: color .25s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: 22px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.86rem; color: #82a0c0; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { font-size: 0.86rem; color: #9fb6d1; }
.legal-links a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   FLOTANTES / UTILIDADES
   ============================================================ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }
.to-top {
  position: fixed; bottom: 92px; right: 27px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; background: var(--azul-700); color: #fff;
  font-size: 1.2rem; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity .35s, transform .35s, visibility .35s, background .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--azul-600); }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 24px; background: rgba(8,20,35,0.88); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox-figure { max-width: 600px; width: 100%; text-align: center; }
.lightbox-img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 16px; font-weight: 600; }
.lightbox-close, .modal-close { position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.6rem; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,0.26); }

/* ---------- MODALES ---------- */
.modal { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 24px; background: rgba(8,20,35,0.7); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; max-width: 560px; width: 100%; background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); max-height: 86vh; overflow: auto; }
.modal-card h2 { font-family: var(--font-display); font-weight: 600; color: var(--azul-900); margin-bottom: 16px; }
.modal-card p { color: var(--gris-600); margin-bottom: 14px; }
.modal-close { position: absolute; background: var(--gris-100); color: var(--azul-800); }
.modal-close:hover { background: var(--gris-200); }

/* ============================================================
   ANIMACIONES DE SCROLL (reveal)
   ============================================================ */
/* Solo se ocultan para animar si el JS está activo (clase .js en <html>).
   Sin JS, el contenido queda visible por defecto (sin fallback roto). */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .ventajas-grid { grid-template-columns: repeat(2, 1fr); }
  .b2b-grid { grid-template-columns: repeat(2, 1fr); }
  .nerola-products { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .mergens-grid, .red-grid, .nosotros-grid, .featured-card { grid-template-columns: 1fr; }
  .nosotros-aside { position: static; max-width: 460px; margin: 0 auto; }
  .featured-card-media { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  /* En móvil el header NO debe usar backdrop-filter: crea un bloque contenedor
     que recortaría el panel de menú fijo. Usamos fondo sólido en su lugar. */
  .site-header.scrolled {
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav-list {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); height: 100vh;
    z-index: 1050;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    background: var(--azul-900); padding: 90px 28px 40px;
    transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  .nav-list.open { transform: translateX(0); }
  .nav-list a { color: #fff !important; font-size: 1.1rem; padding: 14px 18px; }
  .nav-list a:hover { background: rgba(255,255,255,0.10); }
  .nav-cta { text-align: center; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .ventajas-grid { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr 1fr; }
  .nerola-pillars { grid-template-columns: 1fr; }
  .nerola-line { grid-template-columns: 1fr; }
  .nerola-line:nth-child(even) .nerola-line-media { order: 0; }
  .testi-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-trust { gap: 12px 22px; }
  .hero-float { display: none; }
  .hero-logo { display: none; }
  .hero-highlights { gap: 10px; margin-top: 32px; }
  .hero-highlights li { padding: 13px 18px; }
  .hero-highlights strong { font-size: 1.45rem; }
}

@media (max-width: 460px) {
  .container { width: min(100% - 32px, var(--container)); }
  .stats-grid { grid-template-columns: 1fr; }
  .b2b-grid { grid-template-columns: 1fr; }
  .nerola-products { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .clients-track { animation: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .to-top, .hero-scroll, .nav-toggle { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero-overlay, .hero-pattern, .hero-video { display: none; }
}
