/* ============================================================
   ECOPLAGAS DE MÉXICO — Sistema de Diseño Eco Editorial v1
   Verde marca #69b42e × Mangogrotesque + Barlow × Kit Craft v1.1
   ============================================================ */

/* ============================================================
   FUENTES
   ============================================================ */
@font-face {
  font-family: 'Mangogrotesque';
  src: url('../fonts/MangoGrotesque-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Barlow autoalojada (Regla 11 accesibilidad-pagespeed) — mismos archivos y unicode-range de Google Fonts */
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/barlow-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Marca Ecoplagas */
  --eco-green:        #69b42e;
  --eco-green-deep:   #4a8a1f;
  --eco-green-text:   #3B7516;  /* verde para TEXTO sobre fondo claro (AA 5.6:1) */
  --eco-green-soft:   #f0f7e8;
  --gris-marca:       #7e8484;
  --gris-soft:        #e5e8e3;

  /* Neutros editorial */
  --bg:               #FFFFFF;
  --bg-soft:          #FBFBF8;
  --ink:              #0F1614;
  --ink-soft:         #3D4541;
  --ink-muted:        #6B7570;
  --line:             #E8EAE5;

  /* Acentos */
  --accent-amber:     #C5A467;
  --alert:            #B83A3A;

  /* Sombras */
  --shadow-card:      0 1px 3px rgba(15, 22, 20, 0.04), 0 8px 24px rgba(15, 22, 20, 0.06);
  --shadow-hover:     0 4px 12px rgba(105, 180, 46, 0.12), 0 12px 32px rgba(15, 22, 20, 0.08);
  --shadow-cta:       0 4px 14px rgba(105, 180, 46, 0.25);

  /* Easings Kit Craft */
  --ease-out-expo:    cubic-bezier(.22,1,.36,1);
  --ease-out-quart:   cubic-bezier(.25,1,.5,1);

  /* Duraciones */
  --dur-fast:         240ms;
  --dur-base:         600ms;
  --dur-slow:         900ms;

  /* Spacing 8-pt */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-5:  3rem;
  --space-6:  4rem;
  --space-7:  6rem;
  --space-8:  8rem;
  --space-9:  10rem;

  /* Container */
  --container-max:    1280px;
  --container-pad:    clamp(1.4rem, 4vw, 2.5rem);

  /* Border radius (editorial = casi nada) */
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        16px;

  /* Tipografía */
  --font-display:     'Mangogrotesque', Arial, sans-serif;
  --font-body:        'Barlow', system-ui, sans-serif;
}

/* ============================================================
   RAPTOR LIB 00 — A11Y MOTION BASE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--eco-green); color: #FFFFFF; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--eco-green-text);
  text-decoration: none;
  transition: color var(--dur-fast);
}
a:hover { color: var(--eco-green); }

ul, ol { list-style-position: inside; }

/* RAPTOR LIB 07 — View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: var(--ease-out-quart);
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1.fat, .h1-hero {
  font-family: var(--font-display);
  font-size: clamp(4.6rem, 15vw, 9rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 768px) {
  h1.fat, .h1-hero { letter-spacing: 0.04em; }
}
.h1-hero .accent-line { color: var(--eco-green); display: block; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 768px) {
  h1 { letter-spacing: 0.04em; }
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9vw, 4.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
/* En secciones centradas el H2 queda al centro */
.text-center > h2,
.text-center h2 { margin-inline: auto; }

h3 {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

p { margin-bottom: var(--space-2); font-size: clamp(1rem, 1.2vw, 1.05rem); }
p.lead {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eco-green-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
}

small, .small { font-size: 0.8rem; color: var(--ink-muted); }

.num-tech {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--eco-green-text);
  text-transform: none;
  padding-left: var(--space-4);
  border-left: 3px solid var(--eco-green);
  margin: var(--space-6) 0;
}
blockquote cite {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  font-style: normal;
}

.teo-quote {
  margin: var(--space-7) auto;
  max-width: 720px;
  text-align: center;
  border: none;
  padding: 0;
}
.teo-quote p::before { content: '\201C'; color: var(--eco-green); margin-right: 0.2em; }
.teo-quote p::after  { content: '\201D'; color: var(--eco-green); margin-left: 0.2em; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: var(--space-8) 0; }
.section-lg     { padding: var(--space-9) 0; }
.section-tight  { padding: var(--space-6) 0; }
.section-alt    { background: var(--bg-soft); }

@media (max-width: 768px) {
  section        { padding: var(--space-6) 0; }
  .section-lg    { padding: var(--space-7) 0; }
  .section-tight { padding: var(--space-5) 0; }
}

/* ============================================================
   HEADER TRANSPARENTE — Kit Craft 13
   ============================================================ */
.header-transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding: 0.4rem 0;
  transition: background var(--dur-fast) var(--ease-out-expo),
              backdrop-filter var(--dur-fast) var(--ease-out-expo);
}
/* Skill: oscurecer elegantemente en hover / scrolled / menú abierto con glassmorphism */
.header-transparent:hover,
.header-transparent.scrolled,
.header-transparent.is-open {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Texto base sobre fondo claro (páginas internas sin on-dark) */
.header-transparent:not(.on-dark) .nav-links a,
.header-transparent:not(.on-dark) .menu-toggle { color: var(--ink); }

/* En cuanto el header se oscurece (hover/scrolled/is-open), todo texto pasa a blanco */
.header-transparent:hover .nav-links a,
.header-transparent.scrolled .nav-links a,
.header-transparent.is-open .nav-links a,
.header-transparent:hover .menu-toggle,
.header-transparent.scrolled .menu-toggle,
.header-transparent.is-open .menu-toggle { color: #FFFFFF; }

.header-transparent:hover .nav-links a:hover,
.header-transparent.scrolled .nav-links a:hover,
.header-transparent.is-open .nav-links a:hover,
.header-transparent:hover .nav-links a.active,
.header-transparent.scrolled .nav-links a.active,
.header-transparent.is-open .nav-links a.active { color: var(--eco-green); }

/* Header on-dark — texto blanco desde el inicio sobre hero oscuro */
.header-transparent.on-dark .nav-links a { color: #FFFFFF; }
.header-transparent.on-dark .nav-links a:hover,
.header-transparent.on-dark .nav-links a.active { color: var(--eco-green); }
.header-transparent.on-dark .menu-toggle {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 108px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--dur-fast);
}
@media (max-width: 900px) {
  .nav-links a { font-size: 0.95rem; }
}
.nav-links a:hover,
.nav-links a.active { color: var(--eco-green); }

/* ==========================================
   DROPDOWN — Servicios (desktop hover, mobile acordeón)
   ========================================== */
.dropdown-parent { position: relative; }

.dropdown-toggle .caret {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.75em;
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.dropdown-parent:hover .dropdown-toggle .caret,
.dropdown-parent.open .dropdown-toggle .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 260px;
  background: rgba(15, 22, 20, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-fast) var(--ease-out-expo),
              visibility var(--dur-fast) var(--ease-out-expo),
              transform var(--dur-fast) var(--ease-out-expo);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.dropdown-parent:hover .dropdown-menu,
.dropdown-parent:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li { width: 100%; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  border-bottom: 0;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  color: var(--eco-green) !important;
  background: rgba(105, 180, 46, 0.08);
}
.dropdown-menu .dd-star {
  color: var(--eco-green);
  font-size: 0.85em;
  margin-right: 0.35rem;
}
.dropdown-menu .dd-sep {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

/* El caret hereda el color del texto del header en cada estado */
.dropdown-toggle .caret { color: inherit; }

/* Mobile — acordeón dentro del menú hamburguesa */
@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0.25rem 0 0.5rem 1.25rem;
    transition: none;
  }
  .dropdown-parent.open .dropdown-menu { display: block; }
  .dropdown-parent:hover .dropdown-menu { display: none; } /* desactivar hover en mobile */
  .dropdown-parent.open .dropdown-menu { display: block; }
  .dropdown-menu a {
    padding: 0.55rem 0;
    font-size: 0.95rem;
  }
  .dropdown-menu .dd-sep {
    margin-top: 0.3rem;
    padding-top: 0.5rem;
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.btn-cta-header {
  display: inline-block;
  background: var(--eco-green);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn-cta-header:hover {
  background: var(--eco-green-deep);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-3) var(--container-pad);
    gap: var(--space-2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.is-open a { padding: 0.5rem 0; color: #FFFFFF; }
  .nav-links.is-open a:hover,
  .nav-links.is-open a.active { color: var(--eco-green); }
  .menu-toggle { display: inline-block; }
  .btn-cta-header { padding: 0.55rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .logo img { height: 86px; }
  .btn-cta-header { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(6.5rem, 11vh, 8rem) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

.hero-text { display: flex; flex-direction: column; }
.hero-sub { margin-top: var(--space-3); max-width: 56ch; }

/* Hero con imagen de fondo (home) — estilo Metropolitan, texto blanco sobre overlay oscuro */
.hero-with-bg {
  min-height: clamp(620px, 92vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7rem, 12vh, 9rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
  color: #FFFFFF;
}
.hero-with-bg .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-prueba-exoplagas.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}
/* Overlay oscuro semi-transparente — Metropolitan style */
.hero-with-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.40) 40%,
      rgba(0, 0, 0, 0.55) 80%,
      rgba(0, 0, 0, 0.70) 100%);
  z-index: 1;
}
.hero-with-bg .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-with-bg .hero-text {
  max-width: 62%;
}
.hero-with-bg::before { display: none; } /* Quitamos el noise CSS — la imagen ya da el efecto */

/* Texto blanco sobre overlay oscuro */
.hero-with-bg h1.fat,
.hero-with-bg .h1-hero { color: #FFFFFF; }
.hero-with-bg h1.fat .accent-line {
  color: var(--eco-green);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero-with-bg .hero-sub { color: rgba(255, 255, 255, 0.95); }
.hero-with-bg .hero-sub strong { color: #FFFFFF; font-weight: 600; }
.hero-with-bg .eyebrow {
  color: #FFFFFF;
  opacity: 0.85;
}
.hero-with-bg .eyebrow span:first-child::before {
  background: var(--eco-green);
}

/* Trust strip blanco */
.hero-with-bg .trust-strip {
  color: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 255, 255, 0.20);
}
.hero-with-bg .trust-strip strong { color: #FFFFFF; font-weight: 600; }

/* Botón secundario invertido (outline blanco) */
.hero-with-bg .btn-secondary {
  background: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.hero-with-bg .btn-secondary:hover {
  background: #FFFFFF;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-with-bg .hero-text { max-width: 100%; }
  .hero-with-bg .hero-overlay {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.65) 100%);
  }
  .hero-with-bg .hero-bg {
    background-position: center 60%;
  }
}

@media (max-width: 640px) {
  .hero-with-bg { min-height: clamp(560px, 88vh, 720px); }
}

.star-badge {
  display: inline-block;
  background: var(--eco-green-text);
  color: #FFFFFF;
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; text-align: center; }
}

.hero-aside { display: flex; align-items: stretch; }

/* RAPTOR LIB 11 — Noise sutil sobre hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.31  0 0 0 0 0.22  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .05;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-muted);
  align-items: center;
}
.trust-strip strong { color: var(--ink); font-weight: 600; }
.trust-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .trust-strip { gap: var(--space-2); font-size: 0.78rem; }
}

/* ============================================================
   LICENSE BANNER — Franja verde con licencia sanitaria + badges
   ============================================================ */
.license-banner {
  background: var(--eco-green-deep);
  padding: 1.25rem 0;
  color: #FFFFFF;
}
.license-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.license-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: #FFFFFF;
  line-height: 1.05;
}
.license-banner-badges {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.license-banner-badges img {
  height: 56px;
  width: auto;
  display: block;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .license-banner { padding: 1rem 0; }
  .license-banner-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .license-banner-title { font-size: 1.6rem; }
  .license-banner-badges { gap: var(--space-3); }
  .license-banner-badges img { height: 46px; }
}

/* ============================================================
   BOTONES
   ============================================================ */

/* Primario verde con shimmer (Kit Craft 04) */
.btn-primary {
  display: inline-block;
  background: var(--eco-green);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 1.1rem 2rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cta);
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover {
  background: var(--eco-green-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(105, 180, 46, 0.32);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.25) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out-expo);
  z-index: -1;
  pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(110%); }

/* Secundario outline */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 1.05rem 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--dur-fast);
  text-align: center;
}
.btn-secondary:hover {
  background: var(--ink);
  color: #FFFFFF;
}

/* Link arrow editorial */
.cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--eco-green-text);
  text-decoration: none;
  border-bottom: 1px solid var(--eco-green-text);
  padding-bottom: 0.15rem;
  transition: gap var(--dur-fast);
}
.cta-arrow .arr {
  display: inline-block;
  transition: transform var(--dur-fast);
}
.cta-arrow:hover { color: var(--eco-green-deep); }
.cta-arrow:hover .arr { transform: translateX(4px); }

/* ============================================================
   CARDS (servicios, plagas, posts)
   ============================================================ */
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: border-color var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-out-expo);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-card:hover {
  border-color: var(--eco-green);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-2);
  color: var(--eco-green);
}
.service-card .cta-arrow { margin-top: auto; padding-top: var(--space-2); }

/* Badge "Servicio Estrella" solo en termitas */
.service-card.is-star {
  border-top: 3px solid var(--eco-green);
}
.service-card.is-star::before {
  content: '★ SERVICIO ESTRELLA';
  position: absolute;
  top: -10px;
  left: var(--space-3);
  background: var(--eco-green-text);
  color: #FFFFFF;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

/* Grid de servicios */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

/* Grid editorial con romanos */
.services-grid h2 { margin-bottom: var(--space-7); max-width: 18ch; }
.service-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.services-grid .service-row:last-child { border-bottom: 1px solid var(--line); }
.service-roman span {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.85;
  color: var(--eco-green-deep);
  letter-spacing: -0.02em;
}
.service-body .badge-star {
  display: inline-block;
  background: var(--eco-green-text);
  color: #FFFFFF;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  border-radius: 2px;
}
.service-body h3 { margin-bottom: var(--space-2); }
.service-body p { margin-bottom: var(--space-3); max-width: 60ch; }

@media (max-width: 768px) {
  .service-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .service-roman span { font-size: clamp(3rem, 14vw, 4.5rem); }
}

/* ============================================================
   FAQ ACORDEÓN
   ============================================================ */
.faq { padding-top: var(--space-5); }
.faq h2 { margin-bottom: var(--space-5); }
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.5vw, 1.2rem);
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-1) 0;
  transition: color var(--dur-fast);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--eco-green);
  transition: transform var(--dur-fast);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--eco-green); }
.faq-item > div,
.faq-item > p { padding-top: var(--space-2); }
.faq-item p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 0; }

/* ============================================================
   MARQUEE — Kit Craft 09
   ============================================================ */
.marquee-section {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.marquee { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
  align-items: center;
}
.marquee-track span:nth-child(odd):not(.dot) { color: var(--ink); }
.marquee-track .dot {
  color: var(--eco-green);
  font-size: 0.6em;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   PLACEHOLDERS DE FOTO
   ============================================================ */
.photo-placeholder {
  background: linear-gradient(135deg, var(--eco-green-soft) 0%, var(--gris-soft) 100%);
  border: 2px dashed var(--eco-green);
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-3);
  width: 100%;
  position: relative;
}
.photo-placeholder.aspect-4-5 { aspect-ratio: 4/5; }
.photo-placeholder.aspect-1-1 { aspect-ratio: 1/1; }
.placeholder-label { max-width: 320px; }
.placeholder-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--eco-green-deep);
  letter-spacing: 0.1em;
}
.placeholder-label span {
  display: block;
  margin: var(--space-2) 0 var(--space-1);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.placeholder-label small {
  color: var(--ink-muted);
  font-size: 0.75rem;
  display: block;
}

/* ============================================================
   STATS / NÚMEROS DESTACADOS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
.stat {
  text-align: center;
  padding: var(--space-3);
  border-top: 2px solid var(--eco-green);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat .stat-label {
  display: block;
  margin-top: var(--space-2);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: var(--space-7) 0 var(--space-5);
}
footer h4, footer .footer-heading { color: #FFFFFF; margin-bottom: var(--space-3); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--dur-fast);
  display: inline-block;
  padding: 0.2rem 0;
}
footer a:hover { color: var(--eco-green); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-5);
}
.footer-logo {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0;
}
.footer-logo img {
  height: 96px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .footer-logo img { height: 84px; }
}

.raptor-credit {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.raptor-credit a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0;
}
.raptor-credit a:hover { color: var(--eco-green); }
.footer-brand-block p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-list { list-style: none; padding: 0; }
.footer-list li a { font-size: 0.9rem; }
.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.footer-social a {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
}
.footer-social a:hover {
  border-color: var(--eco-green);
  color: var(--eco-green);
}

.footer-bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--eco-green); }
.breadcrumb .sep { margin: 0 0.5em; opacity: 0.5; }

/* Ocultar breadcrumbs y eyebrow del hero en mobile (≤768px) — solo se ven en tablet/desktop */
@media (max-width: 768px) {
  .breadcrumb { display: none; }
  .hero .eyebrow { display: none; }
}

/* ============================================================
   GOOGLE MAPS IFRAME
   ============================================================ */
.gmaps-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: var(--space-3);
}
.gmaps-iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}
@media (max-width: 768px) { .gmaps-iframe { height: 380px; } }
@media (max-width: 640px) { .gmaps-iframe { height: 320px; } }
@media (max-width: 480px) { .gmaps-iframe { height: 280px; } }

/* ============================================================
   NAP BLOCK
   ============================================================ */
.nap-block {
  background: var(--bg-soft);
  border-left: 3px solid var(--eco-green);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.nap-block dt {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: var(--space-2);
}
.nap-block dt:first-child { margin-top: 0; }
.nap-block dd {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 1rem;
  margin: 0.25rem 0 0;
  font-weight: 500;
}
.nap-block a { color: var(--ink); font-weight: 500; }
.nap-block a:hover { color: var(--eco-green); }

/* ============================================================
   RAPTOR LIB 01 — REVEALS ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out-expo),
              transform .9s var(--ease-out-expo);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@supports (animation-timeline: view()) {
  [data-reveal]:not(.is-in) {
    animation: revealIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
    transition: none;
  }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RAPTOR LIB 03 — ICONOS SVG CON ANIMACIÓN CONTEXTUAL
   Cada icono lleva animación propia que representa su función.
   ============================================================ */

/* Lupa "auditoría sin costo" → zoom cíclico */
.icon-lupa { width: 64px; height: 64px; }
.icon-lupa .lente {
  transform-origin: center;
  animation: lupaZoom 3.6s ease-in-out infinite;
}
@keyframes lupaZoom {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Documento Carta Garantía → líneas que se autorrellenan */
.icon-doc { width: 64px; height: 64px; }
.icon-doc .linea {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: docRellenar 2.4s ease-out infinite;
}
.icon-doc .linea:nth-of-type(2) { animation-delay: .25s; }
.icon-doc .linea:nth-of-type(3) { animation-delay: .50s; }
.icon-doc .linea:nth-of-type(4) { animation-delay: .75s; }
@keyframes docRellenar {
  0%        { stroke-dashoffset: 60; }
  60%, 100% { stroke-dashoffset: 0; }
}

/* Escudo REPSE → pulse hacia afuera */
.icon-escudo { width: 64px; height: 64px; }
.icon-escudo .anilla {
  transform-origin: center;
  animation: escudoPulse 2.8s ease-out infinite;
}
@keyframes escudoPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Estrella reseñas → rotación suave */
.icon-estrella { width: 64px; height: 64px; }
.icon-estrella svg, .icon-estrella .estrella {
  transform-origin: center;
  animation: estrellaRota 8s linear infinite;
}
@keyframes estrellaRota {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Gota Sanitización → cae y se forma */
.icon-gota { width: 64px; height: 64px; }
.icon-gota .gota {
  transform-origin: center;
  animation: gotaCae 3s ease-in-out infinite;
}
@keyframes gotaCae {
  0%, 100% { transform: translateY(-4px) scale(0.9); }
  50%      { transform: translateY(2px) scale(1); }
}

/* Check Auditoría → se dibuja */
.icon-check { width: 64px; height: 64px; }
.icon-check .check-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkDraw 2.2s ease-out infinite;
}
@keyframes checkDraw {
  0%         { stroke-dashoffset: 30; }
  50%, 100%  { stroke-dashoffset: 0; }
}

/* Engranaje MIP → gira */
.icon-engranaje { width: 64px; height: 64px; }
.icon-engranaje .gear {
  transform-origin: center;
  animation: gearGira 8s linear infinite;
}
@keyframes gearGira {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Sobre Carta Garantía → solapa se abre */
.icon-sobre { width: 64px; height: 64px; }
.icon-sobre .solapa {
  transform-origin: top center;
  animation: sobreAbre 3.5s ease-in-out infinite;
}
@keyframes sobreAbre {
  0%, 100% { transform: rotateX(0); }
  50%      { transform: rotateX(170deg); }
}

/* Termita avanzando por madera → translate cíclico */
.icon-termita { width: 64px; height: 64px; }
.icon-termita .insecto {
  animation: termitaAvanza 4s linear infinite;
}
@keyframes termitaAvanza {
  0%   { transform: translateX(-40%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(40%); opacity: 0; }
}

/* Reduce motion para todos los iconos */
@media (prefers-reduced-motion: reduce) {
  .icon-lupa .lente,
  .icon-doc .linea,
  .icon-escudo .anilla,
  .icon-estrella svg,
  .icon-estrella .estrella,
  .icon-gota .gota,
  .icon-check .check-path,
  .icon-engranaje .gear,
  .icon-sobre .solapa,
  .icon-termita .insecto {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   STAGES (3 etapas termitas, MIP 6 etapas)
   ============================================================ */
.stage {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage-num em {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  font-style: normal;
  color: var(--eco-green-deep);
  line-height: 0.85;
}
.stage-body h3 { margin-bottom: var(--space-2); }
.stage-body p { max-width: 64ch; margin-bottom: var(--space-2); }

@media (max-width: 768px) {
  .stage { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ============================================================
   SECTORES B2B CHIPS
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.sector-chip {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  transition: all var(--dur-fast);
}
.sector-chip:hover {
  border-color: var(--eco-green);
  background: var(--eco-green-soft);
  color: var(--eco-green-deep);
  transform: translateY(-2px);
}

/* ============================================================
   RESEÑAS CARDS
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Sección de reseñas con widget TrustIndex full-bleed */
.reviews-section {
  padding: var(--space-7) 0;
}
.trustindex-wrap {
  width: 100%;
  margin: var(--space-5) 0 var(--space-3);
  /* Full-bleed: ocupa el ancho completo del viewport */
  padding-inline: clamp(0.5rem, 2vw, 1.5rem);
}
.trustindex-wrap iframe,
.trustindex-wrap .ti-widget,
.trustindex-wrap > div { width: 100%; }
.review-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.review-stars {
  color: var(--eco-green-text);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.review-card blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  border: none;
  padding: 0;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}
.review-card cite {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 500;
}
.review-card cite strong { color: var(--ink); display: block; font-weight: 600; }

/* ============================================================
   CTA FINAL FULL-BLEED
   ============================================================ */
.cta-final {
  background: var(--eco-green);
  color: #FFFFFF;
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}
.cta-final h2 { color: #FFFFFF; max-width: 18ch; }
.cta-final p { color: rgba(255,255,255,0.92); max-width: 60ch; margin-top: var(--space-3); }
.cta-final .hero-ctas { margin-top: var(--space-4); }
.cta-final .btn-primary {
  background: #FFFFFF;
  color: var(--eco-green-deep);
}
.cta-final .btn-primary:hover { background: var(--ink); color: #FFFFFF; }
.cta-final .btn-secondary {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.cta-final .btn-secondary:hover { background: #FFFFFF; color: var(--eco-green-deep); }

/* Noise sutil sobre CTA final */
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.cta-final > * { position: relative; z-index: 1; }

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.max-prose { max-width: 70ch; margin-left: auto; margin-right: auto; }

/* Lista en columna sin viñeta */
.list-clean { list-style: none; padding: 0; }
.list-clean li { padding: 0.4rem 0; }

/* Lista con check verde */
.list-check { list-style: none; padding: 0; }
.list-check li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  line-height: 1.55;
}
.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--eco-green);
  font-weight: 700;
}

/* ============================================================
   ARTÍCULO BLOG (prose)
   ============================================================ */
article.post {
  max-width: 720px;
  margin: 0 auto;
}
article.post h2 { margin-top: var(--space-6); margin-bottom: var(--space-3); font-size: clamp(1.5rem, 3vw, 2.2rem); }
article.post h3 { margin-top: var(--space-4); margin-bottom: var(--space-2); }
article.post p { font-size: 1.05rem; line-height: 1.75; margin-bottom: var(--space-3); }
article.post ul, article.post ol { margin: 0 0 var(--space-3) 1.4rem; }
article.post ul li, article.post ol li { padding: 0.3rem 0; line-height: 1.7; }
article.post .lead { margin-bottom: var(--space-4); color: var(--ink); }
article.post blockquote { margin: var(--space-5) 0; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; }

/* ============================================================
   PROPOSAL BADGE / FLOATING (solo páginas privadas, opcional)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--eco-green);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   FIN
   ============================================================ */

/* ============================================================
   RAPTOR BOTONES CONVERSION — skill botones-conversion
   Flotantes + modales WhatsApp / llamada · paleta Ecoplagas
   Superficies en --eco-green. Texto blanco SOLO sobre --eco-green-ink
   (#3B7516, contraste 5.6:1): el #69b42e con texto blanco no pasa AA.
   Selectores acotados a .wa-modal para no chocar con el formulario
   de /contacto/.
   ============================================================ */
:root { --eco-green-ink: #3B7516; }

/* --- Botón WhatsApp flotante (derecha) --- */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: var(--eco-green);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(15, 22, 20, 0.3);
  z-index: 2000;
  cursor: pointer;
  animation: wa-float 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.floating-wa-btn:hover { transform: scale(1.1); }
.floating-wa-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.wa-icon { width: 35px; height: 35px; object-fit: contain; }

/* --- Modal WhatsApp --- */
.wa-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 20, 0.55);
  z-index: 2100;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.wa-modal.active { display: flex; }

.wa-modal-content {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 15px 40px rgba(15, 22, 20, 0.2);
  animation: modalIn 0.3s ease-out;
  font-family: var(--font-body);
  color: var(--ink);
  text-align: left;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
}
.wa-modal-close:hover { color: var(--ink); }

.wa-modal-content h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 0.4rem;
}
.wa-modal-content > p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 1.2rem; }

.wa-modal .form-group { margin-bottom: 1rem; }
.wa-modal .form-group > label,
.wa-modal .form-group .form-label {
  display: block;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.wa-modal .form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid #C9CFC6;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #FFFFFF;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wa-modal .form-group input[type="text"]:focus {
  border-color: var(--eco-green-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(105, 180, 46, 0.18);
}

/* --- Radios (patrón canónico Metropolitan: tarjeta por opción + círculo que se rellena) --- */
.wa-modal .radio-group-grid,
.wa-modal .radio-group-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-modal .radio-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wa-modal .radio-option {
  position: relative;
  text-transform: none;
  letter-spacing: normal;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  min-height: 42px;
  background: var(--bg-soft);
  border: 1px solid #C9CFC6;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  transition: all 0.2s ease;
}
.wa-modal .radio-group-flex .radio-option { flex: 1 1 0; min-width: 0; }
.wa-modal .radio-option:hover { background: var(--eco-green-soft); border-color: var(--eco-green); }
.wa-modal .radio-option input { position: absolute; opacity: 0; cursor: pointer; }
.wa-modal .radio-custom {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #8C958E;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  background: #FFFFFF;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.wa-modal .radio-option input:checked ~ .radio-custom {
  background-color: var(--eco-green-deep);
  border-color: var(--eco-green-deep);
}
.wa-modal .radio-option input:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  background: #FFFFFF;
  border-radius: 50%;
}
.wa-modal .radio-option:has(input:checked) {
  border-color: var(--eco-green-deep);
  background: var(--eco-green-soft);
  font-weight: 600;
}
.wa-modal .radio-option input:focus-visible ~ .radio-custom { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Campo condicional "¿Cuál?" — oculto por defecto; main.js lo muestra al elegir Otro */
#otro-pest-container { display: none; }

/* --- Estado inválido: borde rojo + halo + shake + mensaje --- */
.wa-modal .form-group.is-invalid > label,
.wa-modal .form-group.is-invalid .form-label { color: #C2410C; }
.wa-modal .form-group.is-invalid .radio-custom { border-color: #E03E2F; }
.wa-modal .form-group.is-invalid .radio-group-grid,
.wa-modal .form-group.is-invalid .radio-group-flex {
  animation: fieldShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
.wa-modal .form-group.is-invalid input[type="text"] {
  border-color: #E03E2F;
  box-shadow: 0 0 0 3px rgba(224, 62, 47, 0.14);
  animation: fieldShake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}
.wa-modal .form-error {
  display: none;
  font-size: 0.8rem;
  color: #C2410C;
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}
.wa-modal .form-group.is-invalid .form-error { display: block; }
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.btn-wa-submit {
  width: 100%;
  padding: 0.95rem;
  background: var(--eco-green-ink);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-cta);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.btn-wa-submit:hover { background: #2F5E12; transform: translateY(-1px); }

/* --- Botón llamada flotante (izquierda, solo móvil) --- */
.floating-call-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 25px;
  width: 58px;
  height: 58px;
  background-color: var(--eco-green);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(15, 22, 20, 0.3);
  z-index: 2000;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.floating-call-btn:hover { transform: scale(1.1); }
.floating-call-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 768px) { .floating-call-btn { display: flex; } }

/* --- Modal llamada --- */
.call-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 20, 0.65);
  z-index: 2100;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}
.call-modal.active { display: flex; }

.call-modal-content {
  background: #FFFFFF;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 22, 20, 0.2);
  animation: modalIn 0.3s ease-out;
  font-family: var(--font-body);
}
.call-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.call-modal .modal-subtitle { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1.8rem; }

.call-modal-buttons { display: flex; flex-direction: column; gap: 0.8rem; }

.btn-call-confirm {
  background: var(--eco-green-ink);
  color: #FFFFFF;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.btn-call-confirm:hover { background: #2F5E12; }

.btn-call-cancel {
  background: transparent;
  color: var(--ink-soft);
  padding: 0.8rem;
  border: 1.5px solid #C9CFC6;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-call-cancel:hover { background: var(--bg-soft); border-color: var(--ink-muted); color: var(--ink); }

@media (max-width: 480px) {
  .wa-modal-content { padding: 1.75rem 1.25rem 1.5rem; }
  .wa-modal .radio-option { padding: 8px 10px; }
  .wa-modal .radio-custom { margin-right: 8px; }
}

@media (max-width: 380px) {
  .wa-modal .radio-group-flex .radio-option { padding: 8px; font-size: 0.85rem; }
  .wa-modal .radio-group-flex .radio-custom { width: 16px; height: 16px; min-width: 16px; margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-wa-btn { animation: none; }
  .wa-modal-content, .call-modal-content { animation: none; }
}

/* ============================================================
   PÁGINA 404
   ============================================================ */
.section-404 { padding-top: clamp(9rem, 16vh, 12rem); padding-bottom: clamp(3rem, 8vh, 5rem); }
.section-404 h1 { margin-inline: auto; }
.links-404 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; justify-items: center; }

/* ============================================================
   ACCESIBILIDAD — CONTRASTE (puerta técnica 2026-09-15)
   El verde de marca #69b42e da 2.57:1 como texto sobre blanco. Se conserva
   en fondos oscuros, botones, íconos y acentos; para leer sobre claro se usa
   --eco-green-text (#3B7516, 5.6:1).
   ============================================================ */
/* Sobre la banda verde del CTA final el texto va en blanco, como el párrafo */
.cta-final .eyebrow,
.cta-final .cta-arrow { color: #FFFFFF; border-bottom-color: currentColor; }
/* Enlaces dentro de un párrafo: subrayados para distinguirlos del texto (link-in-text-block) */
main p a:not([class]),
main li a:not([class]),
main dd a:not([class]),
main td a:not([class]) { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* ============================================================
   TABLA DE PRECIOS (copy SEO 2026-09)
   ============================================================ */
.price-table-wrap { max-width: 720px; overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.price-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  padding: 0 var(--space-2) var(--space-2);
  border-bottom: 2px solid var(--eco-green);
}
.price-table td { padding: var(--space-2); border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--eco-green-text); white-space: nowrap; }
.price-table th:last-child { text-align: right; }
@media (max-width: 480px) { .price-table { font-size: 0.95rem; } .price-table td:last-child { white-space: normal; } }

/* =====================================================================
   CAPA CRAFT 2026-09 — Raptor Kit Craft v1.2 aplicado a Ecoplagas
   Hero con video + parallax · fotos reales · composición de escritorio ·
   iconos contextuales · CTA con parallax · header sin estado "scrolled"
   (Va al FINAL de la hoja: pisa las reglas viejas con la misma especificidad)
   ===================================================================== */

/* ---------- RAPTOR LIB 13 — header absolute que NUNCA se vuelve sólido ---------- */
.header-transparent.scrolled:not(:hover):not(.is-open) {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header-transparent:not(.on-dark).scrolled:not(:hover):not(.is-open) .nav-links a,
.header-transparent:not(.on-dark).scrolled:not(:hover):not(.is-open) .menu-toggle { color: var(--ink); }
.header-transparent.on-dark.scrolled:not(:hover):not(.is-open) .nav-links a,
.header-transparent.on-dark.scrolled:not(:hover):not(.is-open) .menu-toggle { color: #FFFFFF; }

/* Páginas internas: la miga de pan ya no queda debajo del logo */
main > .breadcrumb.container { padding-top: clamp(7.4rem, 10vw, 8.6rem); margin-bottom: 0; }
main > .breadcrumb.container + .hero { padding-top: var(--space-4); }
@media (max-width: 768px) {
  main > .breadcrumb.container + .hero { padding-top: clamp(6.6rem, 26vw, 7.6rem); }
}

/* ---------- RAPTOR LIB 14 — HERO DE LA HOME: video de fondo con parallax ---------- */
.hero-with-bg { clip-path: inset(0); isolation: isolate; }
.hero-with-bg .hero-bg { display: none; }
.hero-bg-poster,
.hero-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.hero-bg-poster { z-index: 0; display: block; }
.hero-bg-poster img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-bg-video {
  z-index: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo);
}
.hero-bg-video.is-playing { opacity: 1; }
.hero-bg-video.is-movil { display: none; }
@media (max-width: 900px) {
  .hero-bg-video.is-desktop { display: none; }
  .hero-bg-video.is-movil { display: block; }
}
.hero-with-bg .hero-overlay {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 14, 11, .88) 0%, rgba(8, 14, 11, .66) 42%, rgba(8, 14, 11, .22) 100%),
    linear-gradient(180deg, rgba(8, 14, 11, .50) 0%, rgba(8, 14, 11, 0) 26%, rgba(8, 14, 11, 0) 70%, rgba(8, 14, 11, .55) 100%);
}
@media (max-width: 900px) {
  .hero-with-bg .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 14, 11, .72) 0%, rgba(8, 14, 11, .50) 40%, rgba(8, 14, 11, .66) 70%, rgba(8, 14, 11, .88) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-poster, .hero-bg-video { position: absolute; }
}

/* Entrada del hero — el H1 es el LCP: solo transform, nunca opacity (regla NK Art) */
.hero h1 { animation: ecoHeroSlide .9s var(--ease-out-expo) backwards; }
.hero .hero-sub,
.hero .hero-ctas,
.hero .trust-strip { animation: ecoHeroFade .9s var(--ease-out-expo) backwards; }
.hero .hero-sub { animation-delay: .12s; }
.hero .hero-ctas { animation-delay: .22s; }
.hero .trust-strip { animation-delay: .32s; }
@keyframes ecoHeroSlide { from { transform: translateY(22px); } }
@keyframes ecoHeroFade { from { opacity: 0; transform: translateY(18px); } }

/* ---------- FOTO REAL EN EL HERO DE LAS PÁGINAS INTERNAS ---------- */
.hero:not(.hero-with-bg) h1.fat { font-size: clamp(3.3rem, 6.2vw, 6.1rem); }
.hero-grid { align-items: center; }
.hero-aside { justify-content: flex-end; }
.hero-photo {
  position: relative;
  margin: 0 18px 18px 0;
  width: 100%;
  max-width: 470px;
  animation: ecoPhotoIn 1.1s var(--ease-out-expo) .1s backwards;
}
.hero-photo::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 74%;
  height: 74%;
  background: var(--eco-green);
  border-radius: var(--radius-md);
  z-index: 0;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 34px 60px -26px rgba(15, 22, 20, .45);
}
.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  background: rgba(15, 22, 20, .82);
  color: #FFFFFF;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
}
@keyframes ecoPhotoIn { from { transform: translateY(26px) scale(.98); } }
@media (max-width: 900px) {
  .hero-aside { justify-content: stretch; }
  .hero-photo { max-width: none; margin: 0 14px 14px 0; }
  .hero-photo::before { right: -14px; bottom: -14px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- COMPOSICIÓN DE ESCRITORIO (medir-escritorio.js) ---------- */
.eyebrow { margin-bottom: .85rem; }
.max-prose { margin-left: 0; margin-right: 0; }
.text-center .max-prose,
.cta-final .max-prose { margin-left: auto; margin-right: auto; }

/* Tarjetas: sin huérfanas en escritorio */
@media (min-width: 1040px) {
  .services-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-cards-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-cards-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services-cards-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .services-cards-grid:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .services-cards-grid:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
}

/* RAPTOR LIB 15 — Riel editorial (secciones de texto) y cabecera partida (secciones con componentes) */
@media (min-width: 1040px) {
  .ed-rail > .container,
  .ed-rail > .container-narrow,
  .ed-head > .container,
  .ed-head > .container-narrow {
    max-width: var(--container-max);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 6.5rem);
    align-items: start;
  }
  .ed-rail > div > *,
  .ed-head > div > * { grid-column: 2; min-width: 0; }
  /* El bloque de título (eyebrow + H2) es UNA unidad en la columna 1 (regla 4 del kit) */
  .ed-rail > div > .ed-title {
    grid-column: 1;
    grid-row: 1 / span 40;
    align-self: start;
    position: sticky;
    top: 2.5rem;
  }
  .ed-head > div > .ed-title { grid-column: 1; grid-row: 1; align-self: start; }
  .ed-rail > div > .ed-title + *,
  .ed-head > div > .ed-title + :not(.ed-wide) { grid-row: 1; margin-top: 0; }
  .ed-title h2 { font-size: clamp(2.6rem, 3.7vw, 3.9rem); }
  .ed-head > div > .ed-wide ~ p { max-width: 70ch; }
  .ed-head > div > .ed-wide ~ p.text-center { margin-inline: auto; }
  .ed-head > div > .ed-wide,
  .ed-head > div > .ed-wide ~ p,
  .ed-head > div > .ed-wide ~ blockquote { grid-column: 1 / -1; }
  .ed-head > div > .ed-wide { max-width: none !important; margin-top: var(--space-5); }
  .ed-rail > div > .max-prose,
  .ed-head > div > .max-prose { max-width: 64ch; }
  .ed-rail > div > .faq-list { max-width: none; margin: 0; }
  .ed-rail > div > .faq-list.mt-5 { margin-top: 0; }
  .ed-rail > div > .list-check { margin-top: var(--space-4); }
}

/* Etapas numeradas en dos columnas cuando son pares */
@media (min-width: 1040px) {
  ol.ed-wide:has(> li.stage:nth-child(4):last-child),
  ol.ed-wide:has(> li.stage:nth-child(6):last-child) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
  ol.ed-wide:has(> li.stage:nth-child(4):last-child) > .stage,
  ol.ed-wide:has(> li.stage:nth-child(6):last-child) > .stage { grid-template-columns: 92px 1fr; border-bottom: 0; }
  ol.ed-wide:has(> li.stage:nth-child(4):last-child) > .stage:nth-last-child(-n+2),
  ol.ed-wide:has(> li.stage:nth-child(6):last-child) > .stage:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stage { border-top-color: var(--line); }
.stage:first-child { border-top: 2px solid var(--ink); }

/* Cita de Teo — pull quote editorial (antes salía diminuta a 135 caracteres) */
.teo-quote {
  max-width: none;
  margin: var(--space-6) 0 0;
  padding: var(--space-4) 0 0 var(--space-4);
  text-align: left;
  border: 0;
  border-left: 3px solid var(--eco-green);
}
.teo-quote p {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--ink);
  max-width: 24ch;
  margin: 0;
}
.teo-quote cite { margin-top: var(--space-2); }
.text-center .teo-quote { margin-inline: auto; }

/* Tabla de precios con más presencia */
.price-table-wrap { max-width: 760px; }
.price-table td:first-child { color: var(--ink); }

/* Tarjetas de enlace: la flecha acompaña el hover */
a.service-card { color: inherit; }
a.service-card h3 { transition: color var(--dur-fast); }
a.service-card:hover h3 { color: var(--eco-green-text); }
a.service-card:hover .cta-arrow .arr { transform: translateX(6px); }

/* ---------- BANDA DE CIFRAS (home) — RAPTOR LIB 02 contadores ---------- */
.stats-band { background: var(--ink); color: #FFFFFF; padding: var(--space-6) 0; }
.stats-band .stats-row { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.stats-band .stat { text-align: left; padding: var(--space-3) 0 0; border-top: 2px solid var(--eco-green); }
.stats-band .stat-num { color: #FFFFFF; font-size: clamp(3rem, 5.4vw, 5rem); }
.stats-band .stat-num small { font-size: .45em; color: var(--eco-green); margin-left: .1em; }
.stats-band .stat-label { color: rgba(255, 255, 255, .78); letter-spacing: .08em; }
@media (max-width: 768px) {
  .stats-band .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- RAPTOR LIB 03 — iconos contextuales nuevos ---------- */
.service-card .icon-wrap svg { width: 56px; height: 56px; }
/* Burbuja de chat → los puntos "escriben" (te respondemos en minutos) */
.icon-chat .punto { animation: chatEscribe 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.icon-chat .punto:nth-of-type(2) { animation-delay: .2s; }
.icon-chat .punto:nth-of-type(3) { animation-delay: .4s; }
@keyframes chatEscribe { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
/* Calendario → la hoja pasa (años de oficio) */
.icon-calendario .hoja { transform-origin: 50% 0; transform-box: fill-box; animation: calendarioHoja 3.6s var(--ease-out-expo) infinite; }
@keyframes calendarioHoja { 0%, 55% { transform: rotateX(0); opacity: 1; } 80% { transform: rotateX(-80deg); opacity: .2; } 100% { transform: rotateX(0); opacity: 1; } }
/* Estrella → brilla (calificación) */
.icon-brillo .rayo { transform-origin: center; transform-box: fill-box; animation: estrellaBrilla 2.8s ease-in-out infinite; }
.icon-brillo .rayo:nth-of-type(2) { animation-delay: .35s; }
.icon-brillo .rayo:nth-of-type(3) { animation-delay: .7s; }
@keyframes estrellaBrilla { 0%, 100% { transform: scale(.4); opacity: .2; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .icon-chat .punto, .icon-calendario .hoja, .icon-brillo .rayo { animation: none; opacity: 1; transform: none; }
}

/* ---------- CTA FINAL con parallax de fondo fijo (LIB 14) ---------- */
.cta-final { clip-path: inset(0); isolation: isolate; background: #2F5E12; }
.cta-final::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../img/cta-equipo-ecoplagas-desktop.webp") center / cover no-repeat;
}
.cta-final::before {
  z-index: -1;
  opacity: 1;
  mix-blend-mode: normal;
  background-image: linear-gradient(100deg, rgba(40, 82, 15, .95) 0%, rgba(47, 94, 18, .9) 55%, rgba(47, 94, 18, .78) 100%);
}
.cta-final > * { z-index: auto; }
@media (max-width: 900px) {
  .cta-final::after { background-image: url("../img/cta-equipo-ecoplagas-movil.webp"); }
  .cta-final::before { background-image: linear-gradient(180deg, rgba(40, 82, 15, .93) 0%, rgba(47, 94, 18, .86) 50%, rgba(40, 82, 15, .95) 100%); }
}
@media (prefers-reduced-motion: reduce) { .cta-final::after { position: absolute; } }
.cta-final .btn-primary { color: #2F5E12; }

/* ---------- RESEÑAS EN VIVO (TrustIndex diferido) ---------- */
.trustindex-diferido { min-height: 320px; }

/* ---------- Ajustes de páginas hechas a mano ---------- */
/* Miga de pan con lista (empresas, residencial, sanitización): debajo del logo y en línea */
main > nav.breadcrumb:not(.container) { padding-top: clamp(7.4rem, 10vw, 8.6rem); margin-bottom: 0; }
main > nav.breadcrumb:not(.container) + .hero { padding-top: var(--space-4); }
.breadcrumb-list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0; }
.breadcrumb-list li { display: inline-flex; align-items: center; }
.breadcrumb-list li + li::before { content: "›"; margin-right: .5rem; opacity: .5; }
.breadcrumb-list a { color: var(--ink-muted); }
@media (max-width: 768px) {
  main > nav.breadcrumb:not(.container) + .hero { padding-top: clamp(6.6rem, 26vw, 7.6rem); }
}
/* Tarjetas dentro del CTA verde: vidrio claro con texto legible */
.cta-final .service-card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .24);
  color: #FFFFFF;
  text-align: left;
}
.cta-final .service-card h3 { color: #FFFFFF; }
.cta-final .service-card p { color: rgba(255, 255, 255, .9); max-width: none; margin-top: 0; }
.cta-final .service-card:hover { border-color: #FFFFFF; box-shadow: none; }
.cta-final .teo-quote p { color: #FFFFFF; }
.cta-final .teo-quote cite { color: rgba(255, 255, 255, .8); }
.text-center .teo-quote { max-width: 34rem; }
.ed-wide.hero-grid { align-items: start; }

/* Acento verde legible sobre el CTA oscuro (AA texto grande) */
.cta-final .accent-line { color: #C9F29B; }
.stats-band .stat-num small { color: #9BD66A; }

/* Sin párrafo introductorio: el bloque de título ocupa todo el ancho (no deja media fila vacía) */
@media (min-width: 1040px) {
  .ed-head > div > .ed-title:has(+ .ed-wide) { grid-column: 1 / -1; }
  .ed-head > div > .ed-title:has(+ .ed-wide) h2 { max-width: 28ch; }
}
/* Eyebrow dentro de tarjetas: pegado a su título (el gap de la tarjeta lo separaba 30px) */
.service-card > .eyebrow { margin-bottom: 0; }
.service-card > .eyebrow + h3 { margin-top: -.4rem; }

/* Eyebrow en tarjetas de casos: pegado a su H3 (el H3 trae margin-top en línea) */
.review-card > .eyebrow { margin-bottom: 0; }
.review-card > .eyebrow + h3 { margin-top: -.4rem !important; }

/* Tarjetas de zonas de riesgo (empresas): clases .card/.grid-3 que no tenían estilo */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .ed-head > div > .grid-3, .ed-rail > div > .grid-3 { grid-column: 1 / -1; margin-top: var(--space-5); } }
.card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.card > .eyebrow { margin-bottom: 0; }
.card > .eyebrow + h3 { margin-top: .35rem !important; margin-bottom: .9rem; }

/* ---------- Aire vertical: menos hueco en escritorio ---------- */
@media (min-width: 1040px) {
  section { padding: clamp(4.5rem, 8vh, 7rem) 0; }
  /* Secciones de texto corto: no merecen una pantalla completa */
  .ed-compact { padding: clamp(3rem, 5.5vh, 4.5rem) 0; }
  .ed-compact > .container,
  .ed-compact > .container-narrow { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: center; }
  .ed-compact .ed-title h2 { font-size: clamp(2rem, 2.6vw, 2.8rem); }
  .ed-compact .ed-title { position: static; }
}
/* La cita ya no deja media pantalla vacía */
.teo-quote p { max-width: 34ch; font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
@media (min-width: 1040px) {
  .ed-head > div > .teo-quote,
  .ed-rail > div > .teo-quote { margin-top: var(--space-5); }
}

/* ---------- CITA EN BARLOW (decisión de Alberto 15-sep-2026) ----------
   La cita dejaba de leerse como cita: iba en Mangogrotesque, mayúsculas y 49px,
   compitiendo con los H2 y dejando media pantalla vacía. */
.teo-quote {
  border-left: 3px solid var(--eco-green);
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  margin: var(--space-5) 0 0;
}
.teo-quote p {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  max-width: 52ch;
}
.teo-quote cite {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}
.cta-final .teo-quote p { color: #FFFFFF; }

/* ---------- Tamaños de título: menos peso, mismo sistema tipográfico ---------- */
h2 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.02; }
.ed-title h2 { font-size: clamp(2.2rem, 3.1vw, 3.2rem); }
.ed-compact .ed-title h2 { font-size: clamp(1.9rem, 2.4vw, 2.6rem); }
.cta-final h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
p.lead { font-size: clamp(1.12rem, 1.5vw, 1.28rem); }

/* =====================================================================
   ESCALA TIPOGRAFICA 2026-09-15 — jerarquía H2 > H3 > texto
   La display es CONDENSADA: a igual px pesa menos que Barlow, así que el H2
   sube y el H3 pasa a la misma familia para que subtítulo y título se lean
   como la misma línea tipográfica. Decisión de Alberto: la display se queda.
   ===================================================================== */
h2 {
  font-size: clamp(2.9rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -0.005em;
}
.ed-title h2 { font-size: clamp(2.6rem, 3.7vw, 3.7rem); }
.ed-compact .ed-title h2 { font-size: clamp(2.3rem, 3vw, 3.1rem); }
.cta-final h2 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); }

/* Subtítulos en la misma familia que los títulos, claramente por debajo */
h3,
.service-card h3,
.stage-body h3,
.service-body h3,
.review-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.75vw, 1.6rem);
  line-height: 1.06;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-heading,
.wa-modal-content h3,
#call-modal h3 { text-transform: uppercase; }
.footer-heading { font-family: var(--font-body); font-size: .8rem; letter-spacing: .15em; }

/* Texto: siempre por debajo del H3 */
p { font-size: clamp(.97rem, 1.05vw, 1.02rem); line-height: 1.68; }
p.lead { font-size: clamp(1.06rem, 1.3vw, 1.18rem); line-height: 1.55; }
.hero-sub.lead { font-size: clamp(1.08rem, 1.35vw, 1.22rem); }
.teo-quote p { font-size: clamp(1.12rem, 1.4vw, 1.28rem); }
.faq-item summary { font-size: clamp(1.02rem, 1.15vw, 1.1rem); }
.list-check li, .list-clean li, .nap-block dd { font-size: clamp(.97rem, 1.05vw, 1.02rem); }
.price-table { font-size: 1rem; }
.eyebrow { font-size: clamp(.74rem, .85vw, .82rem); letter-spacing: .2em; }

/* La flecha va pegada al texto, no al fondo de la tarjeta (dejaba un hueco
   que parecía una fila de tarjetas vacías) */
.service-card .cta-arrow { margin-top: var(--space-2); padding-top: 0; align-self: flex-start; }
a.service-card { justify-content: flex-start; }

/* ---------- H2 MAS GRANDES (Alberto, 15-sep-2026) — móvil y escritorio ---------- */
h2 { font-size: clamp(3.2rem, 5.4vw, 5rem); line-height: .95; }
.ed-title h2 { font-size: clamp(3.1rem, 4.6vw, 4.6rem); }
.ed-compact .ed-title h2 { font-size: clamp(2.7rem, 3.6vw, 3.6rem); }
.cta-final h2 { font-size: clamp(3rem, 4.8vw, 4.2rem); }
.faq h2, .reviews-section h2 { font-size: clamp(3rem, 4.8vw, 4.4rem); }
@media (max-width: 480px) {
  h2, .ed-title h2 { font-size: clamp(2.9rem, 12.5vw, 3.4rem); letter-spacing: .01em; }
  .ed-compact .ed-title h2 { font-size: clamp(2.5rem, 11vw, 3rem); }
}

/* ---------- H2 SOLO ESCRITORIO más grandes (Alberto, 15-sep-2026) ----------
   En móvil se quedan como están (43-49px); aquí solo crece de 1024px en adelante,
   sin rebasar el H1 de la página (89px a 1440). */
@media (min-width: 1024px) {
  h2 { font-size: clamp(3.6rem, 6vw, 5.8rem); line-height: .94; }
  .ed-title h2 { font-size: clamp(3.4rem, 5.6vw, 5.4rem); }
  .ed-compact .ed-title h2 { font-size: clamp(3rem, 4.4vw, 4.4rem); }
  .cta-final h2 { font-size: clamp(3.2rem, 5vw, 4.8rem); }
  .faq h2, .reviews-section h2 { font-size: clamp(3.4rem, 5.6vw, 5.4rem); }
}
