/* ============================================================
   ENDROP — Hoja de estilos del sitio institucional
   Paleta derivada del isologo: gota #3276AD→#86C8DB, gris #4A4A4A
   ============================================================ */

:root {
  /* Colores identitarios de cada división (muestreados de sus gotas) */
  --div-coad: #0CBAAB;   --div-coad-light: #88D1C2;   --div-coad-tint: #E7F8F4;
  --div-nutri: #C8A009;  --div-nutri-light: #F5D16A;  --div-nutri-tint: #FBF3DC;
  --div-prot: #83B846;   --div-prot-light: #D0EB74;   --div-prot-tint: #F0F7E3;

  --blue-900: #17456F;
  --blue-800: #1F5A8C;
  --blue-700: #3276AD;
  --blue-500: #4083B4;
  --blue-300: #73B6D1;
  --blue-200: #A6D2E4;
  --blue-100: #E9F3F9;
  --blue-050: #F4F9FC;
  --green-600: #4C8C3F;
  --green-100: #EAF4E7;
  --ink: #2E3338;
  --gray-700: #4A4A4A;
  --gray-500: #6B7280;
  --gray-300: #D6DDE3;
  --gray-100: #F2F5F7;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(23, 69, 111, .08);
  --shadow-md: 0 6px 24px rgba(23, 69, 111, .10);
  --shadow-lg: 0 16px 48px rgba(23, 69, 111, .16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.022em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Botones y links ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.text-link { font-weight: 600; text-decoration: none; color: var(--blue-700); }
.text-link:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.brand img { display: block; width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  text-decoration: none; color: var(--gray-700); font-weight: 600; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s;
}
.main-nav a:hover { color: var(--blue-700); }
.main-nav a.active { color: var(--blue-700); border-bottom-color: var(--blue-300); }
.main-nav .nav-cta {
  background: var(--blue-050); color: var(--blue-800);
  padding: 9px 20px; border-radius: 999px; border-bottom: none;
}
.main-nav .nav-cta:hover { background: var(--blue-100); }
.lang-switch { display: flex; gap: 2px; margin-left: 6px; background: var(--gray-100); border-radius: 999px; padding: 3px; }
.lang-switch a {
  padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--gray-500); text-decoration: none; border-bottom: none;
}
.lang-switch a.current { background: var(--white); color: var(--blue-800); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--blue-900); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.jpg") center / cover no-repeat, var(--blue-900);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 34, 22, .42) 0%, rgba(9, 28, 40, .5) 100%);
}
.hero-inner {
  position: relative; padding: 118px 24px 150px;
  max-width: var(--container); margin: 0 auto; text-align: left;
}
.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700;
  color: rgba(255, 255, 255, .85); margin-bottom: 18px;
}
.hero-kicker::before { content: ""; width: 44px; height: 2px; background: rgba(255, 255, 255, .7); flex: none; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: .35em; text-wrap: initial;
  text-transform: uppercase; letter-spacing: .03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.hero-text {
  font-size: 1.15rem; max-width: 600px; text-align: justify;
  color: rgba(255, 255, 255, .94); line-height: 1.7;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
/* En el hero, ambos botones van en blanco con tipografía azul de marca */
.hero-actions .btn {
  background: var(--white); color: var(--blue-700); border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}
.hero-actions .btn:hover { background: var(--blue-050); color: var(--blue-800); box-shadow: 0 8px 22px rgba(0, 0, 0, .26); }
/* Anclado a .hero-inner (el contenedor de contenido): su borde derecho
   coincide con el de las secciones de abajo. */
.hero-logo {
  position: absolute; right: 24px; bottom: 40px; width: 180px; height: auto;
  opacity: .95; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .3));
}

/* ── Secciones ───────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section-alt { background: var(--blue-050); }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head p { color: var(--gray-500); }
.section-kicker {
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--blue-700); margin-bottom: 10px;
}
.section-kicker::before { content: ""; width: 34px; height: 2px; background: var(--blue-300); flex: none; }

/* ── Franja de números ───────────────────────────────────────── */
.stats-band { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 24px;
}
.stat-item b {
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-item span { color: var(--gray-500); font-size: .9rem; }

/* ── Soluciones por necesidad ────────────────────────────────── */
.solution-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.solution-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; margin-bottom: 10px;
  background: var(--blue-100); color: var(--blue-700);
  border: 1px solid var(--blue-200);
}
.solution-icon--green { background: var(--green-100); color: var(--green-600); border-color: #CDE5C6; }
.solution-card h3 { margin-bottom: 2px; }
.solution-card p { color: var(--gray-500); font-size: .93rem; flex: 1; }
.solution-products { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { text-decoration: none; transition: background .15s, color .15s; }
.chip-link:hover { background: var(--blue-700); color: var(--white); }

/* ── Modal de productos ──────────────────────────────────────── */
.products-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.products-modal[hidden] { display: none; }
.products-modal-backdrop {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(15, 48, 80, .62); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 1.2s ease;
}
.products-modal-panel {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 48px);
  overflow-y: auto; background: var(--white);
  border-radius: calc(var(--radius) + 8px); padding: 44px 46px 40px;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(54px) scale(.95);
  transition: opacity 1.4s cubic-bezier(.22, .8, .3, 1), transform 1.4s cubic-bezier(.22, .8, .3, 1);
}
.products-modal.open .products-modal-backdrop { opacity: 1; }
.products-modal.open .products-modal-panel { opacity: 1; transform: none; }

/* Entrada escalonada de las tarjetas (animación: no interfiere con el hover) */
@keyframes pm-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.products-modal.open .pm-card,
.products-modal.open .products-modal-foot {
  animation: pm-card-in 1.3s cubic-bezier(.22, .8, .3, 1) both;
}
.products-modal.open .pm-card:nth-child(1) { animation-delay: .35s; }
.products-modal.open .pm-card:nth-child(2) { animation-delay: .70s; }
.products-modal.open .pm-card:nth-child(3) { animation-delay: 1.05s; }
.products-modal.open .products-modal-foot { animation-delay: 1.40s; }

/* El cierre es rápido para no frenar al usuario */
.products-modal.closing .products-modal-backdrop,
.products-modal.closing .products-modal-panel { transition-duration: .45s; }
.products-modal-close {
  position: absolute; top: 16px; right: 18px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-700);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: background .15s, color .15s;
}
.products-modal-close:hover { background: var(--blue-100); color: var(--blue-900); }
.products-modal-panel h2 { margin-bottom: 26px; }
.products-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pm-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 6px 14px;
  padding: 24px 22px 20px; border-radius: var(--radius);
  background: var(--blue-050); border: 1.5px solid var(--blue-100);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pm-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
}
.pm-card.division-coadyuvantes::before { background: linear-gradient(90deg, var(--div-coad), var(--div-coad-light)); }
.pm-card.division-nutricion::before { background: linear-gradient(90deg, var(--div-nutri), var(--div-nutri-light)); }
.pm-card.division-proteccion::before { background: linear-gradient(90deg, var(--div-prot), var(--div-prot-light)); }
.pm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-300); }
.pm-card .drop-mark path { fill: var(--blue-700); }
.pm-card.division-nutricion .drop-mark path { fill: var(--green-600); }
.pm-card.division-proteccion .drop-mark path { fill: var(--blue-900); }
.pm-card .drop-mark, .pm-card .drop-img { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.pm-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.1rem; }
.pm-sub { grid-column: 2; grid-row: 2; color: var(--gray-500); font-style: italic; font-size: .82rem; }
.pm-card-cta {
  grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px;
  font-weight: 700; color: var(--blue-700); font-size: .88rem; white-space: nowrap;
  transition: transform .18s ease;
}
.pm-card:hover .pm-card-cta { transform: translateX(4px); }
.products-modal-foot { margin-top: 26px; text-align: center; }

@media (max-width: 720px) {
  .products-modal { padding: 0; align-items: end; }
  .products-modal-panel {
    width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0;
    padding: 34px 22px 28px;
  }
  .products-modal-grid { grid-template-columns: 1fr; }
}

/* ── WhatsApp ────────────────────────────────────────────────── */
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-float {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; color: var(--white);
  border: 0; cursor: pointer; padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }

.wa-menu {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 14px; width: 250px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.wa-menu[hidden] { display: none; }
.wa-menu.open { opacity: 1; transform: none; }
.wa-menu-title {
  margin: 2px 4px 10px; font-size: .82rem; font-weight: 700;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em;
}
.wa-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: inherit; transition: background .15s;
}
.wa-menu-item:hover { background: #EAF8EF; }
.wa-menu-icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: #25D366; color: var(--white);
}
.wa-menu-text { display: flex; flex-direction: column; line-height: 1.3; }
.wa-menu-text b { font-size: .95rem; }
.wa-menu-text small { color: var(--gray-500); font-size: .78rem; }

.wa-inline-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.wa-inline {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: 14px;
  background: #EAF8EF; color: #128C4B; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.wa-inline:hover { background: #D8F2E2; }
.wa-inline-text { display: flex; flex-direction: column; line-height: 1.25; }
.wa-inline-text small { font-weight: 500; color: #4C8C3F; font-size: .78rem; }
.section-head-row {
  max-width: none; display: flex; align-items: baseline;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cards de división ───────────────────────────────────────── */
.division-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.division-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
}
.division-card.division-coadyuvantes::before { background: linear-gradient(90deg, var(--div-coad), var(--div-coad-light)); }
.division-card.division-nutricion::before { background: linear-gradient(90deg, var(--div-nutri), var(--div-nutri-light)); }
.division-card.division-proteccion::before { background: linear-gradient(90deg, var(--div-prot), var(--div-prot-light)); }
.division-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.division-card .drop-mark, .division-card .drop-img { margin-bottom: 14px; }
.drop-mark path { fill: var(--blue-500); }
.division-coadyuvantes .drop-mark path { fill: var(--blue-700); }
.division-nutricion .drop-mark path { fill: var(--green-600); }
.division-proteccion .drop-mark path { fill: var(--blue-900); }

/* ── Cards compactas de línea (home) ─────────────────────────── */
.line-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  padding: 26px 26px 24px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.line-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-300));
}
.line-card.division-coadyuvantes::before { background: linear-gradient(90deg, var(--div-coad), var(--div-coad-light)); }
.line-card.division-nutricion::before { background: linear-gradient(90deg, var(--div-nutri), var(--div-nutri-light)); }
.line-card.division-proteccion::before { background: linear-gradient(90deg, var(--div-prot), var(--div-prot-light)); }
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.line-card .drop-mark, .line-card .drop-img { flex: none; }
.drop-img { display: block; }
.line-card .drop-mark path { fill: var(--blue-700); }
.line-card.division-nutricion .drop-mark path { fill: var(--green-600); }
.line-card.division-proteccion .drop-mark path { fill: var(--blue-900); }
.line-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.line-card h3 { margin: 0; font-size: 1.2rem; }
.line-sub { color: var(--gray-500); font-style: italic; font-size: .84rem; }
.line-cta {
  font-weight: 700; font-size: .92rem; color: var(--blue-700); white-space: nowrap;
  margin-left: auto; transition: transform .18s ease;
}
.line-card:hover .line-cta { transform: translateX(4px); }

/* ── Pilares ─────────────────────────────────────────────────── */
.pillar { padding: 8px 4px; }
.pillar-num {
  display: block; font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.pillar p { color: var(--gray-500); font-size: .95rem; }

/* ── Product cards ───────────────────────────────────────────── */
.product-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.product-card-media {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(150deg, var(--blue-100), var(--blue-050));
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
/* La gota identitaria mantiene su tamaño natural (no hereda el 100% de las fotos) */
.product-card-media img.drop-img { width: auto; height: 68px; object-fit: contain; }
.product-card-media .drop-mark path { fill: var(--blue-300); }
.product-card-media.division-coadyuvantes { background: linear-gradient(150deg, var(--div-coad-tint), var(--blue-050)); }
.product-card-media.division-nutricion { background: linear-gradient(150deg, var(--div-nutri-tint), var(--blue-050)); }
.product-card-media.division-proteccion { background: linear-gradient(150deg, var(--div-prot-tint), var(--blue-050)); }
.product-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.product-card-body h3 { margin: 0; font-size: 1.2rem; }
.product-card-body p {
  margin: 0; color: var(--gray-500); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-cta { font-weight: 600; color: var(--blue-700); font-size: .92rem; margin-top: 4px; }

/* ── Chips ───────────────────────────────────────────────────── */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: var(--blue-100); color: var(--blue-800); align-self: flex-start;
}
.chip-coadyuvantes { background: var(--div-coad-tint); color: #067A70; }
.chip-nutricion { background: var(--div-nutri-tint); color: #8A6E06; }
.chip-proteccion { background: var(--div-prot-tint); color: #4F7526; }
.chip-filter {
  padding: 9px 20px; font-size: .9rem; text-decoration: none;
  background: var(--gray-100); color: var(--gray-700); transition: background .15s;
}
.chip-filter:hover { background: var(--blue-100); }
.chip-filter.current { background: var(--blue-700); color: var(--white); }

/* ── Bandas ──────────────────────────────────────────────────── */
.sust-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: var(--white);
}
.sust-inner { position: relative; display: flex; align-items: center; gap: 48px; }
.sust-inner h2 { color: var(--white); }
.sust-inner p { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 0; }
.sust-quote {
  margin: 22px 0 0; padding-left: 18px; border-left: 3px solid var(--blue-300);
  font-style: italic; color: var(--blue-200) !important; font-size: 1.02rem;
}
.sust-drop { width: 110px; flex: none; opacity: .5; }
.sust-drop path { fill: var(--blue-200); }

.cta-band { padding: 60px 0; }
.cta-inner {
  background: var(--blue-050); border: 1px solid var(--blue-100);
  border-radius: calc(var(--radius) + 6px); padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: .2em; }
.cta-inner p { margin: 0; color: var(--gray-500); }

/* ── Page hero interior ──────────────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--blue-050), var(--blue-100));
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--blue-100);
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 460px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C12 8 1 15.5 1 22.6 1 28.3 5.9 32 12 32s11-3.7 11-9.4C23 15.5 12 8 12 0Z' fill='%233276AD' fill-opacity='.07'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .lead { font-size: 1.1rem; color: var(--gray-700); max-width: 720px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumbs a { color: var(--gray-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-700); }
.page-hero .chip { margin-bottom: 12px; }
.page-hero time { color: var(--gray-500); font-size: .9rem; }

/* ── Empresa ─────────────────────────────────────────────────── */
.mission-vision { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; }
.mv-card {
  border-radius: var(--radius); padding: 36px;
  background: linear-gradient(150deg, var(--blue-900), var(--blue-700)); color: var(--white);
}
.mv-card h2 { color: var(--white); }
.mv-card p { color: rgba(255, 255, 255, .9); }
.mv-lead {
  font-size: 1.35rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em;
  margin-bottom: .6em; text-wrap: balance;
}
.mv-card .mv-lead { color: var(--white); }
.mv-vision .mv-lead { color: var(--blue-900); }
.lead-secondary { margin-top: 10px !important; color: var(--gray-500) !important; }
.mv-vision { background: var(--white); border: 1px solid var(--gray-100); color: var(--ink); box-shadow: var(--shadow-sm); }
.mv-vision h2 { color: var(--ink); }
.mv-vision p { color: var(--gray-700); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
  padding-left: 30px; position: relative; margin-bottom: 10px;
  color: var(--gray-700); font-size: .95rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue-700); font-weight: 800;
}
.value-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.value-card p { color: var(--gray-500); font-size: .93rem; margin: 0; }

/* ── Filtros de productos ────────────────────────────────────── */
.filters { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-search { display: flex; gap: 10px; max-width: 460px; }
.filter-search input {
  flex: 1; padding: 11px 18px; border: 1.5px solid var(--gray-300);
  border-radius: 999px; font: inherit; font-size: .95rem;
}
.filter-search input:focus { outline: 2px solid var(--blue-300); border-color: var(--blue-500); }
.empty-state { color: var(--gray-500); padding: 40px 0; text-align: center; }

/* ── Ficha de producto ───────────────────────────────────────── */
.product-hero h1 { margin-bottom: .25em; }
.product-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 42px; align-items: start; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 22px; vertical-align: top; }
.spec-table th { width: 220px; background: var(--blue-050); color: var(--blue-900); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.spec-table tr + tr th, .spec-table tr + tr td { border-top: 1px solid var(--gray-100); }
.disclaimer { margin-top: 18px; font-size: .85rem; color: var(--gray-500); font-style: italic; }
.downloads-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-md);
}
.downloads-card h2 { font-size: 1.15rem; }
.downloads-list { list-style: none; margin: 0; padding: 0; }
.downloads-list li + li { margin-top: 8px; }
.downloads-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--blue-050); color: var(--blue-900);
  text-decoration: none; font-weight: 600; font-size: .93rem;
  transition: background .15s;
}
.downloads-list a:hover { background: var(--blue-100); }
.downloads-list svg { flex: none; color: var(--blue-700); }
.doc-ext { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--gray-500); }
.muted { color: var(--gray-500); font-size: .93rem; }
.back-link { display: inline-block; margin-top: 18px; }

/* ── Innovación ──────────────────────────────────────────────── */
.innovation-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
}
.innovation-card .drop-mark { margin-bottom: 12px; }
.innovation-card .drop-mark path { fill: var(--blue-500); }
.innovation-card p { color: var(--gray-500); margin: 0; }

/* ── Novedades ───────────────────────────────────────────────── */
.news-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card > a { text-decoration: none; color: inherit; display: block; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.news-card-body time { font-size: .82rem; color: var(--gray-500); }
.news-card-body h2 { font-size: 1.15rem; margin: 0; }
.news-card-body p { color: var(--gray-500); font-size: .92rem; margin: 0; }
.article-body { max-width: 820px; }
.article-image { border-radius: var(--radius); margin-bottom: 28px; }
.rich-text h2 { margin-top: 1.4em; }
.rich-text a { color: var(--blue-700); }

/* ── Contacto ────────────────────────────────────────────────── */
.contact-layout { max-width: 760px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field input, .form-field textarea {
  padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--blue-300); border-color: var(--blue-500); }
.contact-form .btn { align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.alert { border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 26px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: var(--green-100); color: var(--green-600); border: 1px solid #CDE5C6; font-weight: 600; }
.alert-error { background: #FBEAEA; color: #A33A3A; border: 1px solid #F0CFCF; }

/* ── Sedes en contacto ───────────────────────────────────────── */
.location-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.location-card p { color: var(--gray-500); font-size: .95rem; margin-bottom: .6em; }
.location-card a { color: var(--blue-700); text-decoration: none; font-weight: 600; }
.location-card a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 56px 24px 40px;
}
.footer-brand img { width: 160px; }
.footer-tagline { margin: 6px 0 0 2px; color: var(--blue-200); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.footer-col h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255, 255, 255, .5); margin-bottom: 14px;
}
.footer-col a { display: block; color: rgba(255, 255, 255, .82); text-decoration: none; padding: 4px 0; font-size: .93rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 24px; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.footer-bottom p { margin: 0; }
.footer-disclaimer { font-style: italic; margin-bottom: 6px !important; }
.footer-sites { color: rgba(255, 255, 255, .5); font-size: .88rem; margin: 8px 0 0; }

/* ── Error 404 ───────────────────────────────────────────────── */
.error-page { text-align: center; padding: 110px 0; }
.error-page .drop-mark path { fill: var(--blue-300); }
.error-page h1 { font-size: 5rem; margin: .1em 0; color: var(--blue-800); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mission-vision { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* iOS hace zoom al enfocar inputs con fuente <16px: forzar 16px en mobile */
  .form-field input, .form-field textarea, .filter-search input { font-size: 16px; }

  /* Targets táctiles más generosos para links secundarios */
  .breadcrumbs a { display: inline-block; padding: 6px 2px; }
  .back-link, .text-link { display: inline-block; padding: 8px 0; }
  .footer-col a { padding: 9px 0; }
  .lang-switch a { padding: 8px 14px; }

  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { padding-bottom: 4px; }
  .spec-table td { padding-top: 4px; border-top: 0 !important; }
  .spec-table tr + tr th { border-top: 1px solid var(--gray-100); }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero-inner { padding: 80px 24px 110px; }
  .hero-logo { width: 120px; right: 50%; transform: translateX(50%); bottom: 22px; }
  .sust-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sust-drop { width: 70px; }
  .cta-inner { padding: 32px 26px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md); padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--gray-100); }
  .main-nav .nav-cta { margin-top: 10px; text-align: center; }
  .lang-switch { margin: 14px 0 0; align-self: flex-start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  /* El modal conserva un fundido sin desplazamiento (visible pero sin movimiento) */
  .products-modal-backdrop { transition: opacity 1.2s ease !important; }
  .products-modal-panel { transition: opacity 1.6s ease !important; transform: none !important; }
}
