/* ============================================================
   Frigorífico Oneto — Landing
   Sistema de marca (Canva brandbook):
   - Colores: Azul Noche, Azul Frío, Azul Hielo, Azul Neblina
   - Tipografías: Montserrat (títulos) · Raleway (subtítulos) · Lato (cuerpo)
   - Flat design, sin gradientes · Íconos outline · Alineación izquierda
   ============================================================ */

:root {
  /* Paleta oficial */
  --azul-noche: #0B2545;   /* fondo principal de piezas premium */
  --azul-frio: #1A5FA8;    /* azul primario / acentos / íconos */
  --gris: #4a4a4a;
  --blanco: #ffffff;
  --azul-hielo: #7bb8e8;   /* azul claro / acentos sobre fondo oscuro */
  --azul-neblina: #d6eaf8; /* fondo de secciones / textura */
  --off-white: #f4f6f9;
  --slate: #2c3e50;
  --azul-pale: #e8f4f8;

  --ink: #1d2733;
  --green-wa: #25d366;

  /* Acento por unidad de negocio (default = corporativo azul) */
  --accent: var(--azul-frio);
  --sector-alimentos: var(--azul-frio);  /* antes rojo; cambiado a azul corporativo (el frío no se asocia al calor) */
  --sector-farma: #2e7d32;      /* verde */
  --sector-hielo: #0288d1;      /* celeste */

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
  --shadow-md: 0 8px 28px rgba(11, 37, 69, .10);
  --shadow-lg: 0 18px 50px rgba(11, 37, 69, .20);

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-alt: 'Raleway', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --container: 1140px;
  --header-h: 72px;

  /* Patrón geométrico sutil (cuadrícula) en Azul Neblina */
  --grid-pattern:
    linear-gradient(to right, rgba(26, 95, 168, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 95, 168, .06) 1px, transparent 1px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

/* Tipografía: Montserrat para titulares de impacto */
h1, h2 { font-family: var(--font-head); line-height: 1.14; color: var(--azul-noche); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
/* Raleway para subtítulos / encabezados menores */
h3, h4 { font-family: var(--font-alt); color: var(--azul-noche); margin: 0 0 .5em; font-weight: 700; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
a { color: var(--azul-frio); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 800px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--azul-noche); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.eyebrow { font-family: var(--font-alt); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--azul-frio); margin: 0 0 .7rem; }
.eyebrow-light { color: var(--azul-hielo); }

/* ---------- Íconos outline (línea fina, sin relleno) ---------- */
svg[viewBox] { display: block; }
.card-icon svg, .ico-line, .ico-check, .fab-icon, .chat-input svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Isotipo (logo.svg) recoloreable vía máscara CSS */
.brand-mark {
  display: inline-block; flex-shrink: 0;
  background-color: var(--azul-frio);
  -webkit-mask: url(../assets/logo.svg) center / contain no-repeat;
  mask: url(../assets/logo.svg) center / contain no-repeat;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-alt); font-weight: 700; font-size: .98rem;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .18s ease, border-color .18s ease, color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--azul-frio); color: #fff; }
.btn-primary:hover { background: var(--azul-noche); }
.btn-ghost { background: transparent; color: var(--azul-noche); border-color: rgba(11,37,69,.2); }
.btn-ghost:hover { border-color: var(--azul-frio); color: var(--azul-frio); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--off-white); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--azul-noche); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.brand-text small { font-family: var(--font-body); color: var(--gris); font-size: .72rem; }
/* Logo horizontal de unidad en el header */
.brand-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-logo img { height: 38px; width: auto; display: block; }
.brand-logo small { font-family: var(--font-body); color: var(--gris); font-size: .66rem; letter-spacing: .02em; }
.unidad-logo { height: 46px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; display: block; margin-bottom: 16px; }

.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { font-family: var(--font-alt); color: var(--slate); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--azul-frio); text-decoration: none; }
.main-nav .btn { color: #fff; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-alt); color: var(--azul-noche); font-weight: 700; font-size: .9rem;
  background: var(--azul-pale); border: 1px solid var(--azul-neblina);
  padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.header-phone svg { width: 15px; height: 15px; color: var(--azul-frio); flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-phone:hover { background: var(--azul-neblina); border-color: var(--azul-frio); color: var(--azul-noche); text-decoration: none; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--azul-noche); border-radius: 2px; }

.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--off-white); background: #fff; }
.mobile-nav a { font-family: var(--font-alt); padding: 12px; border-radius: 8px; color: var(--azul-noche); font-weight: 600; }
.mobile-nav a:hover { background: var(--off-white); text-decoration: none; }
.mobile-nav .btn { margin-top: 6px; color: #fff; }

/* ---------- Hero (Azul Noche + foto de planta, pieza premium) ---------- */
.hero {
  color: #fff; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden;
  background-color: var(--azul-noche);
  /* Velo Azul Noche plano sobre la foto para legibilidad (cae al color sólido si la imagen falta) */
  background-image:
    linear-gradient(rgba(11, 37, 69, .82), rgba(11, 37, 69, .82)),
    url('../assets/hero-camara.jpg');
  background-image:
    linear-gradient(rgba(11, 37, 69, .82), rgba(11, 37, 69, .82)),
    image-set(url('../assets/hero-camara.webp') type('image/webp'), url('../assets/hero-camara.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
}
.hero::before { /* textura geométrica sutil sobre la foto */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--azul-hielo); }
/* Mensaje de marca protagonista */
.hero-kicker { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.02; margin: 0 0 .5rem; letter-spacing: -.02em; }
.hero-kicker span { color: var(--azul-hielo); }
/* Bajada descriptiva (conserva keywords para SEO) */
.hero h1 { color: #dce8f3; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.3vw, 1.7rem); line-height: 1.28; margin: 0 0 .3rem; letter-spacing: 0; }
.hero-sub { font-size: 1.15rem; color: #cfe0ee; max-width: 42ch; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; color: #cfe0ee; font-size: .92rem; font-weight: 600; font-family: var(--font-alt); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.ico-check { width: 18px; height: 18px; color: var(--azul-hielo); stroke-width: 2.4; }

/* Corporativo: foto real de la fachada histórica (Solís 1950) en vez de la cámara frigorífica genérica */
.unit-corp .hero {
  background-image:
    linear-gradient(rgba(11, 37, 69, .88), rgba(11, 37, 69, .88)),
    url('../assets/fachada-color-hero-bw.jpg');
  background-image:
    linear-gradient(rgba(11, 37, 69, .88), rgba(11, 37, 69, .88)),
    image-set(url('../assets/fachada-color-hero-bw.webp') type('image/webp'), url('../assets/fachada-color-hero-bw.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center top;
}

/* Dato numérico grande como elemento gráfico */
.hero-visual { display: flex; justify-content: center; }
.hero-stat { width: 100%; max-width: 360px; background: rgba(255,255,255,.05); border: 1px solid rgba(123,184,232,.3); border-radius: 16px; padding: 34px 30px; }
.hero-stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 7vw, 4.2rem); line-height: 1; color: var(--azul-hielo); letter-spacing: -.02em; }
.hero-stat-num.small { font-size: clamp(2.2rem, 5vw, 3rem); }
.hero-stat-label { display: block; font-family: var(--font-alt); color: #aac6de; font-size: .9rem; margin-top: 6px; letter-spacing: .02em; }
.hero-stat-divider { height: 1px; background: rgba(123,184,232,.25); margin: 24px 0; }

/* ---------- Métricas ---------- */
.metrics { background: var(--blanco); border-bottom: 1px solid var(--off-white); padding: 36px 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.metric { text-align: left; padding-left: 16px; border-left: 3px solid var(--azul-neblina); }
.metric strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--azul-noche); line-height: 1; }
.metric span { font-family: var(--font-alt); color: var(--gris); font-size: .82rem; margin-top: 6px; display: block; }

/* ---------- Secciones ---------- */
.section { padding: clamp(50px, 7vw, 92px) 0; }
/* Evita que el header fijo tape el inicio de la sección al usar los enlaces del menú */
section[id], [id].section { scroll-margin-top: 84px; }
.section-neblina {
  background-color: var(--azul-neblina);
  background-image: linear-gradient(rgba(230,242,250,.90), rgba(230,242,250,.90)), url('../assets/estanterias.webp');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.section-dark { background-color: var(--azul-noche); color: #fff; position: relative; overflow: hidden; }
/* Certificaciones: foto de planta con velo Azul Noche */
#certificaciones {
  background-image: linear-gradient(rgba(11,37,69,.88), rgba(11,37,69,.88)), url('../assets/cam2.jpg');
  background-image: linear-gradient(rgba(11,37,69,.88), rgba(11,37,69,.88)), image-set(url('../assets/cam2.webp') type('image/webp'), url('../assets/cam2.jpg') type('image/jpeg'));
  background-size: cover; background-position: center; background-attachment: fixed;
}
.section-dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.section-dark > .container { position: relative; }
.section-dark h2 { color: #fff; }
.section-head { text-align: left; max-width: 680px; margin: 0 0 46px; }
.section-lead { font-size: 1.1rem; color: var(--gris); }
.section-lead-light { color: #cfe0ee; }

/* ---------- Clientes (prueba social) ---------- */
.section-clientes { padding: 48px 0; background: #fff; border-bottom: 1px solid var(--off-white); }
.clientes-title { text-align: center; font-family: var(--font-alt); font-weight: 700; color: var(--gris); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 30px; }
.clientes-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clientes-track { will-change: transform; display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 45s linear infinite; }
.clientes-track img { height: 58px; width: auto; max-width: 160px; object-fit: contain; flex: 0 0 auto; }
.clientes-marquee:hover .clientes-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Acento por unidad de negocio ---------- */
.unit-corp { --accent: var(--azul-frio); }
.unit-alimentos { --accent: var(--sector-alimentos); }
.unit-farma { --accent: var(--sector-farma); }
.unit-hielo { --accent: var(--sector-hielo); }
.unit-alimentos .eyebrow, .unit-farma .eyebrow, .unit-hielo .eyebrow { color: var(--accent); }
.unit-alimentos .btn-primary, .unit-farma .btn-primary, .unit-hielo .btn-primary { background: var(--accent); }
.unit-alimentos .btn-primary:hover, .unit-farma .btn-primary:hover, .unit-hielo .btn-primary:hover { background: var(--azul-noche); }
.unit-alimentos .card-icon, .unit-farma .card-icon, .unit-hielo .card-icon { color: var(--accent); }
.unit-alimentos .card-segment, .unit-farma .card-segment, .unit-hielo .card-segment { border-top-color: var(--accent); }
.unit-alimentos .faq-title, .unit-farma .faq-title, .unit-hielo .faq-title { color: var(--accent); }
.unit-alimentos .hero-kicker span, .unit-farma .hero-kicker span, .unit-hielo .hero-kicker span { color: var(--accent); }
/* Cinta de unidad sobre el hero */
.unit-ribbon { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-family: var(--font-alt); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.back-corp { font-family: var(--font-alt); font-weight: 600; font-size: .9rem; color: var(--steel-500); }
.back-corp:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   Diferenciación por unidad (dentro de la familia FRIONETO)
   ============================================================ */
/* A1 · Barra de color de sector en el header */
.site-header { border-top: 3px solid var(--accent); }

/* A2 · Resplandor del color de sector en el hero (detrás del contenido) */
.hero-inner { z-index: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(130% 95% at 100% 0%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 55%);
  opacity: .5;
}

/* A4 · Patrón sutil de fondo por sector (solo en secciones claras planas) */
.unit-alimentos .section:not(.section-neblina):not(.section-dark):not(.section-export-mundi) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0v32' fill='none' stroke='%231A5FA8' stroke-opacity='0.06'/%3E%3C/svg%3E");
}
.unit-farma .section:not(.section-neblina):not(.section-dark):not(.section-export-mundi) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%232e7d32' stroke-opacity='0.09' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.unit-hielo .section:not(.section-neblina):not(.section-dark):not(.section-export-mundi) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='1.6' fill='%230288d1' fill-opacity='0.10'/%3E%3C/svg%3E");
}

/* A5 · Onetofarma: hero invertido a claro/clínico con foto real de planta (paralelo al hero claro de Hielo) */
.unit-farma .hero {
  color: var(--azul-noche);
  background-color: #eaf6ee;
  /* Velo claro graduado: opaco a la izquierda (texto), deja ver la foto real a la derecha */
  background-image:
    linear-gradient(92deg, rgba(238, 248, 241, .95) 0%, rgba(215, 238, 222, .85) 45%, rgba(175, 215, 188, .60) 100%),
    url('../assets/hero-farma-bg.jpg');
  background-image:
    linear-gradient(92deg, rgba(238, 248, 241, .95) 0%, rgba(215, 238, 222, .85) 45%, rgba(175, 215, 188, .60) 100%),
    image-set(url('../assets/hero-farma-bg.webp') type('image/webp'), url('../assets/hero-farma-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: right center;
}
.unit-farma .hero::before {
  /* puntos sutiles en vez de la grilla industrial clara */
  background-image: radial-gradient(rgba(46, 125, 50, .09) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.unit-farma .hero::after {
  background: radial-gradient(120% 90% at 100% 0%, rgba(46, 125, 50, .16), transparent 55%);
  opacity: 1;
}
.unit-farma .hero h1 { color: var(--azul-noche); }
.unit-farma .hero-sub { color: var(--slate); }
.unit-farma .hero-sub strong { color: var(--accent); }
.unit-farma .hero-trust { color: var(--slate); }
.unit-farma .ico-check { color: var(--accent); }
.unit-farma .btn-ghost-light { color: var(--azul-noche); border-color: rgba(11, 37, 69, .35); }
.unit-farma .btn-ghost-light:hover { border-color: var(--azul-noche); background: rgba(11, 37, 69, .05); }

/* A6 · Onetofarma: cruces flotando en el hero (motivo propio, en paralelo a los cubos de hielo de Hielo) */
.unit-farma .rx-float { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.unit-farma .rx-float span {
  position: absolute; width: 26px; height: 26px; opacity: .55;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M2 12h20' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v20M2 12h20' stroke='%23000' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: rx-float 10s ease-in-out infinite;
}
.unit-farma .rx-float span:nth-child(1) { top: 14%; left: 8%; width: 20px; height: 20px; animation-delay: 0s; }
.unit-farma .rx-float span:nth-child(2) { top: 68%; left: 5%; width: 16px; height: 16px; animation-delay: -3.5s; }
.unit-farma .rx-float span:nth-child(3) { top: 22%; left: 92%; width: 24px; height: 24px; animation-delay: -6.5s; }
.unit-farma .rx-float span:nth-child(4) { top: 80%; left: 88%; width: 18px; height: 18px; animation-delay: -2s; }
@keyframes rx-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* A7 · Onetofarma: visual del hero — proceso integral en 6 pasos, panel de vidrio con el color de sector de la unidad (--accent) */
.process-card {
  max-width: 420px; width: 100%; margin: 0 auto; padding: 30px 28px;
  background: color-mix(in srgb, #fff 10%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.process-title { font-family: var(--font-alt); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 20px; }
.process-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.process-steps li { display: flex; align-items: center; gap: 14px; position: relative; }
.process-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; width: 2px; height: 16px; background: color-mix(in srgb, var(--accent) 25%, transparent); }
.process-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.process-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.process-text { font-family: var(--font-alt); font-weight: 600; color: var(--azul-noche); font-size: .95rem; line-height: 1.3; }

/* A8 · Onetofarma: secciones claras con foto real de planta (freezers UF), mismo velo que el hero para que sea consistente */
.unit-farma .section-neblina {
  background-color: #eef8f1;
  background-image:
    linear-gradient(92deg, rgba(238, 248, 241, .95) 0%, rgba(215, 238, 222, .85) 45%, rgba(175, 215, 188, .60) 100%),
    url('../assets/farma-section-bg.jpg');
  background-image:
    linear-gradient(92deg, rgba(238, 248, 241, .95) 0%, rgba(215, 238, 222, .85) 45%, rgba(175, 215, 188, .60) 100%),
    image-set(url('../assets/farma-section-bg.webp') type('image/webp'), url('../assets/farma-section-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* A9 · Onetofarma: bloque "dark" con degradé hacia verde, no el navy plano compartido con Alimentos */
.unit-farma .section-dark {
  background-color: var(--azul-noche);
  background-image: linear-gradient(155deg, var(--azul-noche) 0%, color-mix(in srgb, var(--azul-noche) 45%, var(--sector-farma) 55%) 100%);
}

/* B · Sección estrella de Onetofarma: rangos de temperatura */
.rangos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rango { background: #fff; border: 1px solid var(--off-white); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); text-align: center; }
.rango-temp { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--accent); line-height: 1; }
.rango-bar { position: relative; height: 8px; border-radius: 99px; background: var(--off-white); margin: 16px 0; overflow: hidden; }
.rango-bar::before { content: ""; position: absolute; inset: 0; width: var(--f, 50%); background: linear-gradient(90deg, var(--accent), var(--azul-hielo)); }
.rango strong { display: block; font-family: var(--font-alt); font-weight: 700; color: var(--azul-noche); margin-bottom: 6px; font-size: 1.05rem; }
.rango span { color: var(--gris); font-size: .92rem; }

/* ---------- Unidades de negocio (hub corporativo) ---------- */
.unidades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.unidad {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--off-white);
  border-top: 5px solid var(--u, var(--azul-frio)); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; text-decoration: none;
}
.unidad:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); text-decoration: none; }
.unidad-body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.unidad-ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--u) 12%, #fff); color: var(--u); margin-bottom: 16px; }
.unidad-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.unidad-tag { font-family: var(--font-alt); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--u); }
.unidad h3 { color: var(--azul-noche); font-size: 1.3rem; margin: 4px 0 8px; }
.unidad p { color: var(--gris); font-size: .96rem; margin: 0 0 18px; flex: 1; }
.unidad-cta { font-family: var(--font-alt); font-weight: 700; color: var(--u); font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.unidad:hover .unidad-cta { gap: 10px; }

/* Valores corporativos */
.valores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; }
.valores li { list-style: none; position: relative; padding-left: 30px; color: var(--gris); }
.valores li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border: 2px solid var(--azul-frio); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { background: #fff; border: 1px solid var(--off-white); border-left: 4px solid var(--azul-frio); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.mv-card h3 { color: var(--azul-noche); }
.mv-card p { color: var(--gris); margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
/* cards-4: flex en vez de grid para que una tarjeta "sobrante" al hacer wrap quede centrada, no pegada a la izquierda */
.cards-4 { display: flex; flex-wrap: wrap; justify-content: center; }
.cards-4 .card { flex: 1 1 260px; max-width: 300px; }
.card { background: #fff; border: 1px solid var(--off-white); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--azul-neblina); }
.card-icon { display: inline-flex; color: var(--azul-frio); margin-bottom: 16px; }
.card-icon svg { width: 34px; height: 34px; }
.card p { color: var(--gris); margin: 0; font-size: .98rem; }
.card-segment { border-top: 3px solid var(--azul-frio); }

/* ---------- CTA bajo cards ---------- */
.section-cta { margin-top: 38px; }

/* ---------- Trabajá con nosotros ---------- */
.trabaja-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.trabaja-copy { max-width: 640px; }
.trabaja-copy .section-head, .trabaja-copy h2 { margin-bottom: .4em; }
.trabaja-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-copy p { color: var(--gris); }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--gris); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border: 2px solid var(--azul-frio); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.split-visual { display: flex; }
.split-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.split-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; border-radius: var(--radius); box-shadow: var(--shadow-md); display: block; }
.visual-placeholder, .map-placeholder {
  width: 100%; min-height: 320px; border-radius: var(--radius);
  background-color: var(--azul-pale); background-image: var(--grid-pattern); background-size: 24px 24px;
  border: 2px dashed var(--azul-hielo); display: flex; align-items: center; justify-content: center;
  color: var(--azul-frio); font-family: var(--font-alt); font-weight: 600; text-align: center; padding: 20px;
}
.map-placeholder { min-height: 220px; margin-top: 20px; }
.map-embed { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 20px; box-shadow: var(--shadow-sm); display: block; }

/* ---------- Badges certificaciones ---------- */
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.badge { background: rgba(255,255,255,.05); border: 1px solid rgba(123,184,232,.3); border-radius: var(--radius); padding: 30px 26px; }
.badge-logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; height: 76px; padding: 12px 18px; margin-bottom: 16px; }
.badge-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; display: block; }
.badge strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.badge span { font-family: var(--font-alt); color: #aac6de; font-size: .92rem; }

/* Habilitaciones (datos reales) */
.habilitaciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hab { display: flex; align-items: flex-start; gap: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(123,184,232,.3); border-radius: var(--radius); padding: 24px; }
.hab-icon { color: var(--azul-hielo); flex-shrink: 0; line-height: 0; }
.hab-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hab strong { display: block; font-family: var(--font-alt); font-weight: 700; color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.hab span { font-family: var(--font-body); color: #aac6de; font-size: .92rem; line-height: 1.5; }
.hab-sub { display: block; font-family: var(--font-alt); font-weight: 600; color: var(--azul-hielo); font-size: .82rem; letter-spacing: .01em; margin-bottom: 6px; }
.hab-detail { display: block; color: #fff; font-weight: 600; }
.compliance-note { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.compliance-note .badge-logo { margin-bottom: 0; height: 58px; padding: 8px 14px; }
.compliance-note p { margin: 0; flex: 1; min-width: 240px; font-family: var(--font-alt); color: #aac6de; font-size: .9rem; line-height: 1.55; }
.compliance-note strong { color: #fff; }

/* ---------- Exportación (órbita de destinos) ---------- */
.section-export { background: var(--azul-pale); }
.export-orbit { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; margin: 14px auto 0; }
.export-orbit::before { content: ""; position: absolute; left: 50%; top: 50%; width: 510px; height: 510px; transform: translate(-50%, -50%); border: 1px dashed rgba(26, 95, 168, .35); border-radius: 50%; }
.export-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
  border: 2px solid var(--azul-frio); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.export-center img { width: 56px; height: auto; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.export-center strong { font-family: var(--font-alt); font-weight: 700; color: var(--azul-noche); font-size: 1rem; }
.export-center small { color: var(--gris); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.export-dest { list-style: none; margin: 0; padding: 0; }
.export-dest li {
  position: absolute; left: 50%; top: 50%; width: 104px;
  --r: 255px; --a: calc(var(--i) * 24deg - 90deg);
  transform: translate(-50%, -50%) translate(calc(cos(var(--a)) * var(--r)), calc(sin(var(--a)) * var(--r)));
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
}
.export-dest img { width: 50px; height: 33px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 5px rgba(11,37,69,.2); border: 1px solid rgba(11,37,69,.08); background: #fff; }
.export-dest span { font-family: var(--font-alt); font-weight: 600; font-size: .78rem; color: var(--azul-noche); line-height: 1.15; }

/* Versión mini mapas (siluetas recoloreadas a azul vía máscara) */
.map-shape {
  display: block; width: 60px; height: 46px; background-color: var(--azul-frio);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; mask-mode: alpha;
}
.map-shape--center { width: 94px; height: 72px; }
.map-shape--eu { width: 58px; height: 50px; }
.map-flag { width: 50px; height: 33px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 5px rgba(11,37,69,.2); border: 1px solid rgba(11,37,69,.08); background: #fff; }

/* Silueta rellena con la bandera del país (flag-map) */
.map-flagfill {
  display: block; width: 62px; height: 48px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; mask-mode: alpha;
  filter: drop-shadow(0 1px 3px rgba(11, 37, 69, .3));
}
.map-flagfill--center { width: 96px; height: 74px; }

/* ---------- Exportación · mapa mundi con rutas ---------- */
.section-export-mundi {
  background-color: var(--azul-neblina);
  background-image: linear-gradient(rgba(230,242,250,.90), rgba(230,242,250,.90)), url('../assets/estanterias.webp');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.mundi-wrap { max-width: 1000px; margin: 0 auto; }

.mundi-sublabel { max-width: 1000px; margin: 8px auto 14px; font-family: var(--font-alt); font-weight: 700; color: var(--azul-noche); font-size: 1.02rem; }

/* Tres modelos de mapa embebidos (comparación en la landing) */
.mundi-compare { display: grid; gap: 30px; max-width: 1000px; margin: 0 auto; }
.mundi-option { margin: 0; background: #fff; border: 1px solid #dbe7f3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.mundi-option figcaption { padding: 13px 18px; font-family: var(--font-alt); font-weight: 600; color: var(--gris); border-bottom: 1px solid #eef3f8; font-size: .92rem; }
.mundi-option figcaption span { display: inline-block; background: var(--azul-frio); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .03em; padding: 2px 9px; border-radius: 999px; margin-right: 8px; }
.mundi-option iframe { width: 100%; height: 600px; border: 0; display: block; background: var(--azul-pale); }
.mundi-option--globe iframe { height: 700px; }
@media (max-width: 560px) { .mundi-option iframe { height: 480px; } .mundi-option--globe iframe { height: 520px; } }
.mundi-svg {
  width: 100%; height: auto; display: block;
  background-image: url('../assets/worldmap.webp');
  background-size: 100% 100%; background-repeat: no-repeat;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.flight-path { fill: none; stroke: var(--azul-frio); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 7 9; opacity: .9; animation: flight-dash 24s linear infinite; }
@keyframes flight-dash { to { stroke-dashoffset: -320; } }
.flight-dot { fill: var(--azul-noche); stroke: #fff; stroke-width: 1.5; }
.leader-line { stroke: var(--azul-noche); stroke-width: 1.2; opacity: .55; }
.geo-dot { fill: var(--azul-noche); stroke: #fff; stroke-width: 1.2; }
.flight-origin { fill: var(--azul-frio); stroke: #fff; stroke-width: 2; }
.flight-origin-pulse { fill: var(--azul-frio); opacity: .35; transform-box: fill-box; transform-origin: center; animation: flight-pulse 2.2s ease-out infinite; }
@keyframes flight-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.6); opacity: 0; } }
.flight-label { fill: var(--azul-noche); font-family: var(--font-head); font-weight: 800; font-size: 26px; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.mundi-legend { text-align: center; margin: 22px auto 0; max-width: 760px; font-family: var(--font-alt); font-weight: 600; color: var(--gris); font-size: .9rem; line-height: 1.8; }
@media (prefers-reduced-motion: reduce) {
  .flight-path { animation: none; stroke-dasharray: none; }
  .flight-origin-pulse { animation: none; }
}

@media (max-width: 820px) {
  .export-orbit { aspect-ratio: auto; height: auto; max-width: none; margin-top: 0; }
  .export-orbit::before { display: none; }
  .export-center { position: static; transform: none; width: max-content; height: auto; border-radius: var(--radius); flex-direction: row; gap: 12px; padding: 14px 22px; margin: 0 auto 28px; }
  .export-dest { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 16px; }
  .export-dest li { position: static; transform: none; width: 90px; }
}

/* ---------- FAQ ---------- */
.faq-title { color: var(--azul-frio); }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--off-white); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-alt); font-weight: 700; color: var(--azul-noche); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--azul-frio); font-size: 1.5rem; font-weight: 700; transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--gris); }

/* ---------- Formulario ---------- */
.lead-form { background: #fff; border: 1px solid var(--off-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-alt); font-weight: 600; font-size: .9rem; color: var(--azul-noche); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--azul-frio); box-shadow: 0 0 0 3px rgba(26,95,168,.16); }
.form-note { font-size: .8rem; color: var(--gris); margin: 12px 0 0; }
.form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); font-family: var(--font-alt); font-weight: 600; font-size: .92rem; }
.form-status.ok { background: var(--azul-pale); color: var(--azul-noche); }
.form-status.err { background: #fdeaea; color: #b3261e; }

.contact-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--gris); }
.contact-list a { color: var(--azul-noche); font-weight: 600; }
.ico-line { width: 22px; height: 22px; color: var(--azul-frio); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  color: #cfe0ee; padding: 56px 0 28px; position: relative;
  background-color: var(--azul-noche);
  background-image: linear-gradient(rgba(11,37,69,.62), rgba(11,37,69,.62)), url('../assets/footer-edificio.webp');
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
}
.site-footer > .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand .brand-mark { width: 34px; height: 34px; background-color: var(--azul-hielo); }
.footer-logo { height: 150px; width: auto; display: block; margin-bottom: 14px; border-radius: 8px; }
.footer-brand strong { font-family: var(--font-head); font-weight: 700; color: #fff; display: block; margin: 10px 0 8px; }
.footer-brand p { font-size: .9rem; }
.site-footer h4 { font-family: var(--font-alt); color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a, .footer-contact a { color: #bcd0e2; font-size: .9rem; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--azul-hielo); text-decoration: none; }
.footer-contact p { margin: 0 0 6px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; }
.footer-bottom small { color: #7e98b0; }

/* ============================================================
   Botones flotantes
   ============================================================ */
.floating-actions { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; border: none; border-radius: 999px; padding: 12px 18px; font-family: var(--font-alt); font-weight: 700; font-size: .95rem; color: #fff; box-shadow: var(--shadow-lg); transition: transform .15s ease, filter .2s ease; text-decoration: none; }
.fab:hover { transform: translateY(-2px); text-decoration: none; }
.fab-icon { width: 22px; height: 22px; }
.fab-chat { background: var(--azul-frio); }
.fab-chat:hover { background: var(--azul-noche); }
.fab-wa { background: var(--green-wa); }
.fab-wa:hover { filter: brightness(1.05); }

/* ---------- Botón "volver arriba" (abajo a la izquierda) ---------- */
.back-to-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 120;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--azul-noche); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .back-to-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ============================================================
   Asistente / chatbot
   ============================================================ */
.chat-panel { position: fixed; right: 20px; bottom: 92px; z-index: 130; width: 360px; max-width: calc(100vw - 40px); height: 520px; max-height: calc(100vh - 130px); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--off-white); transform-origin: bottom right; animation: chatIn .18s ease; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } }
.chat-header { background: var(--azul-noche); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(123,184,232,.18); display: grid; place-items: center; }
.chat-avatar .brand-mark { width: 22px; height: 22px; background-color: var(--azul-hielo); }
.chat-title strong { font-family: var(--font-alt); font-weight: 700; display: block; font-size: 1rem; }
.chat-title small { color: #aac6de; font-size: .78rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; opacity: .8; }
.chat-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--off-white); display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 84%; padding: 11px 14px; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.chat-bot { background: #fff; border: 1px solid #e3e9f0; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-user { background: var(--azul-frio); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-quick button { font-family: var(--font-alt); background: #fff; border: 1px solid var(--azul-hielo); color: var(--azul-noche); padding: 8px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.chat-quick button:hover { background: var(--azul-neblina); border-color: var(--azul-frio); }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--off-white); background: #fff; }
.chat-input input { flex: 1; padding: 11px 14px; border: 1px solid #cfd8e3; border-radius: 999px; font-family: var(--font-body); font-size: .92rem; }
.chat-input input:focus { outline: none; border-color: var(--azul-frio); box-shadow: 0 0 0 3px rgba(26,95,168,.16); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--azul-frio); color: #fff; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; }
.chat-input button:hover { background: var(--azul-noche); }
.chat-input svg { width: 18px; height: 18px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .section-neblina, #certificaciones, .section-export-mundi { background-attachment: scroll; }
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-stat { max-width: 320px; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .cards, .cards-3, .badges { grid-template-columns: 1fr 1fr; }
  .unidades { grid-template-columns: 1fr; }
  .mv-grid, .valores { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards-3, .badges, .habilitaciones, .rangos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab-label { display: none; }
  .fab { padding: 14px; }
  .fab-icon { width: 24px; height: 24px; }
  .hero-cta .btn { flex: 1; }
}

/* ===== Banner de consentimiento de cookies (Consent Mode v2) ===== */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:9999;max-width:920px;margin:0 auto;background:#fff;border:1px solid var(--off-white);border-top:3px solid var(--accent);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:16px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:14px;}
.cookie-banner p{margin:0;flex:1 1 300px;font-size:.88rem;line-height:1.5;color:var(--ink);}
.cookie-banner a{color:var(--accent);}
.cookie-banner .cookie-actions{display:flex;gap:10px;flex:0 0 auto;}
.cookie-banner .c-btn{font-family:var(--font-alt);font-weight:600;font-size:.85rem;padding:9px 18px;border-radius:var(--radius-sm);cursor:pointer;border:1px solid transparent;transition:opacity .2s;}
.cookie-banner .c-btn:hover{opacity:.9;}
.cookie-banner .c-accept{background:var(--accent);color:#fff;}
.cookie-banner .c-reject{background:transparent;color:var(--gris);border-color:#cbd5e1;}
@media(max-width:560px){.cookie-banner .cookie-actions{flex:1 1 100%;}.cookie-banner .c-btn{flex:1;}}

/* Logo "La Polar" (más compacto) — un poco más grande para equilibrar */
.unit-hielo .brand-logo img { height: 50px; }
.unidad-logo-lapolar { height: 58px; }

/* ===== Banda de membresía institucional (CAFFHI) ===== */
.member-band { background: #fff; border-top: 1px solid var(--off-white); border-bottom: 1px solid var(--off-white); padding: 28px 0; }
.member-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.member-inner img { height: 64px; width: auto; display: block; }
.member-inner p { margin: 0; max-width: 76ch; color: var(--gris); font-size: .95rem; line-height: 1.55; }
.member-inner strong { color: var(--azul-noche); }
@media (max-width: 640px) { .member-inner { text-align: center; } }

/* ---------- Blog: fix de contraste del botón en el CTA de fin de artículo ----------
   .article-body a pinta los links en azul; sin esto, el botón (fondo azul) queda con
   texto azul sobre azul, invisible. Vale para todos los posts (actuales y futuros). */
.article-cta .btn { color: #fff; }

/* ---------- Blog: fuentes consultadas, colapsadas por defecto ---------- */
.sources-toggle summary { cursor: pointer; font-family: var(--font-alt); font-weight: 700; color: var(--azul-frio); font-size: .95rem; list-style: none; padding: 4px 0; }
.sources-toggle summary::-webkit-details-marker { display: none; }
.sources-toggle summary::marker { content: ""; }
.sources-toggle .arrow-open { display: none; }
.sources-toggle[open] .arrow-open { display: inline; }
.sources-toggle[open] .arrow-closed { display: none; }
.sources-toggle ol { margin-top: 14px; }
