/* =========================================================================
   GESTAR EHS — Hoja de estilos principal
   -------------------------------------------------------------------------
   Estructura:
     1. Tokens de diseño (COLORES, tipografía, espaciado)  <-- EDITÁ ACÁ LA PALETA
     2. Reset y base
     3. Utilidades (container, botones, eyebrow, reveal...)
     4. Header / Nav
     5. Footer
     6. Componentes de Home (hero, servicios, galería, marquee, testimonios, contacto)
     7. Página Diagnóstico (checklist)
     8. Página Blog
     9. Página Nosotros + páginas legales
    10. Responsive y accesibilidad (reduced-motion)
   ========================================================================= */

/* ===== 1. TOKENS DE DISEÑO ============================================== */
/*  Cambiá cualquier color acá y se actualiza en todo el sitio.            */
:root {
  /* --- Marca (tomados del logo) --- */
  --green:        #3a5a22;   /* verde bosque del logo (primario) */
  --green-deep:   #243619;   /* verde oscuro para secciones/footer */
  --green-darker: #1b2913;   /* verde casi negro */
  --green-soft:   #eef1e7;   /* verde muy claro para fondos suaves */
  --orange:       #e98a14;   /* naranja del logo (acento / CTA) */
  --orange-bright:#f6a623;   /* naranja claro para hover */
  --orange-soft:  #fbeeda;   /* naranja muy claro de fondo */

  /* --- Azules corporativos desaturados --- */
  --blue:         #51708a;   /* azul acero desaturado (secundario) */
  --blue-deep:    #34495a;   /* azul profundo */
  --blue-soft:    #eaeef1;   /* azul muy claro de fondo */

  /* --- Marrones sobrios (neutros cálidos) --- */
  --brown:        #5b4a36;   /* marrón café */
  --brown-soft:   #8a7458;   /* marrón claro (captions, bordes cálidos) */
  --brown-pale:   #b9a98f;   /* marrón muy claro */

  /* --- Neutros / blanco hueso --- */
  --bone:         #f6f3ec;   /* blanco hueso (fondo base) */
  --bone-2:       #fbfaf5;   /* hueso más claro */
  --paper:        #ffffff;   /* blanco puro para tarjetas */
  --ink:          #1f2417;   /* casi negro verdoso (titulares) */
  --body:         #3f4a39;   /* texto de cuerpo (verde-grisáceo oscuro) */
  --muted:        #6b7363;   /* texto atenuado */
  --line:         #e4dfd3;   /* líneas/bordes claros cálidos */
  --line-2:       #d8d2c4;   /* bordes algo más marcados */

  /* --- Tipografía --- */
  --font-display: "Poppins", system-ui, sans-serif;        /* titulares */
  --font-body:    "Inter", system-ui, -apple-system, sans-serif; /* cuerpo / UI */
  --font-serif:   "Fraunces", Georgia, serif;              /* acentos editoriales */

  /* --- Radios y sombras --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 36, 23, .06), 0 2px 8px rgba(31, 36, 23, .05);
  --shadow-md: 0 8px 24px rgba(31, 36, 23, .08), 0 2px 8px rgba(31, 36, 23, .05);
  --shadow-lg: 0 24px 60px rgba(31, 36, 23, .14), 0 6px 18px rgba(31, 36, 23, .08);
  --shadow-green: 0 18px 40px rgba(36, 54, 25, .35);

  /* --- Layout --- */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 76px;

  /* --- Transiciones --- */
  --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --t: 240ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 600ms cubic-bezier(.16, 1, .3, 1);

  /* --- Z-index scale --- */
  --z-nav: 50;
  --z-overlay: 60;
  --z-top: 80;
}

/* ===== 2. RESET Y BASE ================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bone);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.02em;
}

::selection { background: var(--orange); color: #fff; }

/* Foco accesible y visible */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== 3. UTILIDADES =================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--bone { background: var(--bone); }
.section--paper { background: var(--bone-2); }
.section--green { background: var(--green-deep); color: #e8ede1; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section--green .eyebrow { color: var(--orange-bright); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}
.section--green .section-head p { color: #c4d0b8; }

.lead { font-size: 1.18rem; color: var(--body); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t), transform var(--t-fast), border-color var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-deep); box-shadow: var(--shadow-md); }

.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(233, 138, 20, .3); }
.btn--accent:hover { background: var(--orange-bright); box-shadow: 0 10px 26px rgba(233, 138, 20, .42); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--orange); color: #fff; }

.btn--lg { padding: 17px 32px; font-size: 1.04rem; }
.btn--block { width: 100%; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }
.reveal.d5 { transition-delay: 400ms; }

.accent { color: var(--orange); }
.accent-green { color: var(--green); }
.serif { font-family: var(--font-serif); font-weight: 500; }

/* Decoración: hoja/sprout */
.leaf-doodle { color: var(--orange); display: inline-block; vertical-align: middle; }

/* ===== 4. HEADER / NAV ================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(246, 243, 236, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(31, 36, 23, .06);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }

/* Logo: emblema + texto, alineados al centro */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(31, 36, 23, .2);
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand__ehs { color: var(--orange); margin-left: .22em; }
.brand--light .brand__text { color: #f4f1e9; }
.brand--light .brand__ehs { color: var(--orange-bright); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .96rem;
  color: var(--body);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  position: relative;
  transition: color var(--t), background var(--t);
}
.nav__link:hover { color: var(--green); background: var(--green-soft); }
.nav__link.active { color: var(--green); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav__cta {
  margin-left: 6px;
  padding: 11px 22px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  box-shadow: 0 6px 16px rgba(233, 138, 20, .3);
  transition: background var(--t), box-shadow var(--t), transform var(--t-fast);
}
.nav__cta:hover { background: var(--orange-bright); box-shadow: 0 10px 22px rgba(233, 138, 20, .42); }

.nav__socials { display: flex; align-items: center; gap: 4px; padding-left: 14px; margin-left: 8px; border-left: 1px solid var(--line-2); }
.social-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--green-deep);
  background: transparent;
  transition: background var(--t), color var(--t), transform var(--t-fast);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--green); color: #fff; }
.social-btn--wa:hover { background: #25d366; }
.social-btn--ig:hover { background: #d6336c; }
.social-btn--li:hover { background: #0a66c2; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  margin-left: auto;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--bone-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  z-index: var(--z-nav);
  padding: 18px var(--gutter) 28px;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu a.active { color: var(--green); }
.mobile-menu__cta { margin-top: 18px; }
.mobile-menu__socials { display: flex; gap: 10px; margin-top: 18px; }
.mobile-menu__socials .social-btn { background: var(--green-soft); }

/* ===== 5. FOOTER ====================================================== */
.site-footer {
  background: var(--green-darker);
  color: #c7d0bb;
  padding-block: clamp(56px, 7vw, 88px) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { color: #93a085; font-size: .96rem; max-width: 30ch; }
.footer__col h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-display);
}
.footer__col a {
  display: block;
  padding: 7px 0;
  color: #c7d0bb;
  font-size: .98rem;
  transition: color var(--t), padding-left var(--t);
}
.footer__col a:hover { color: var(--orange-bright); padding-left: 6px; }
.footer__socials { display: flex; gap: 10px; margin-top: 6px; }
.footer__socials .social-btn { background: rgba(255, 255, 255, .07); color: #e8ede1; }
.footer__socials .social-btn:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: #8a9779;
}
.footer__bottom a { color: #8a9779; transition: color var(--t); }
.footer__bottom a:hover { color: var(--orange-bright); }

/* ===== 6. HOME — HERO ================================================== */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero__inner { text-align: center; max-width: 960px; margin-inline: auto; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 18px 8px 10px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 28px;
}
.hero__tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  letter-spacing: -.035em;
  line-height: 1.02;
}
.hero h1 .ln { display: block; }
.hero__sub {
  margin: 28px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.hero__media {
  position: relative;
  margin-top: clamp(44px, 6vw, 72px);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 8;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 41, 19, .55) 0%, rgba(27, 41, 19, .05) 38%, transparent 60%);
}
.hero__badge {
  position: absolute;
  left: clamp(20px, 4vw, 44px);
  bottom: clamp(20px, 4vw, 40px);
  z-index: 2;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  border-radius: var(--r-md);
  padding: 16px 22px;
}
.hero__badge .num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.hero__badge .lbl { font-size: .82rem; opacity: .9; margin-top: 4px; }

/* Decoración orgánica (floema): blobs/hojas suaves */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: -1;
}
.hero__blob--1 { width: 380px; height: 380px; background: var(--orange-soft); top: -80px; right: -60px; }
.hero__blob--2 { width: 420px; height: 420px; background: var(--green-soft); bottom: -120px; left: -80px; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--green);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__num span { color: var(--orange); }
.stat__lbl { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ===== 6b. SERVICIOS =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 22px;
  transition: background var(--t), color var(--t);
}
.service-card:hover .service-card__icon { background: var(--green); color: #fff; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .98rem; }
.service-card__more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .9rem;
  color: var(--green);
}
.service-card__more svg { width: 16px; height: 16px; transition: transform var(--t); }
.service-card:hover .service-card__more svg { transform: translateX(4px); }
/* destacar la primera tarjeta (estilo bento) */
.service-card--feature { background: var(--green-deep); border-color: var(--green-deep); }
.service-card--feature h3 { color: #fff; }
.service-card--feature p { color: #c4d0b8; }
.service-card--feature .service-card__icon { background: rgba(255, 255, 255, .12); color: var(--orange-bright); }
.service-card--feature:hover .service-card__icon { background: var(--orange); color: #fff; }
.service-card--feature .service-card__more { color: var(--orange-bright); }

/* ===== 6c. GALERÍA ==================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--green-soft);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27, 41, 19, .5), transparent 55%);
  opacity: 0;
  transition: opacity var(--t);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute;
  left: 16px; bottom: 14px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
  z-index: 2;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 28, 15, .9);
  display: none;
  place-items: center;
  z-index: var(--z-top);
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close svg { width: 24px; height: 24px; }

/* ===== 6d. MARQUEE LOGOS ============================================== */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto;
  height: 46px;
  display: grid; place-items: center;
  color: var(--brown-soft);
  opacity: .7;
  transition: opacity var(--t), color var(--t);
}
.marquee__item:hover { opacity: 1; color: var(--green); }
.marquee__item svg { height: 40px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== 6e. TESTIMONIOS =============================================== */
.testimonials { position: relative; }
.tslider {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}
.tslide {
  display: none;
  text-align: center;
  animation: fadeIn var(--t-slow);
}
.tslide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tslide__quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.01em;
}
.tslide__quote .accent { font-style: italic; }
.tslide__person { margin-top: 32px; display: inline-flex; align-items: center; gap: 14px; }
.tslide__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.tslide__meta { text-align: left; }
.tslide__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tslide__role { font-size: .9rem; color: var(--muted); }
.tslider__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; }
.tslider__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.tslider__btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.tslider__btn svg { width: 20px; height: 20px; }
.tslider__dots { display: flex; gap: 8px; }
.tdot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background var(--t), width var(--t); }
.tdot.active { background: var(--orange); width: 24px; border-radius: var(--r-pill); }

/* ===== 6f. CTA BAND ================================================== */
.cta-band {
  position: relative;
  background: var(--green-deep);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__leaf { position: absolute; right: -40px; bottom: -60px; opacity: .12; width: 320px; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); position: relative; }
.cta-band p { color: #c4d0b8; margin-top: 10px; position: relative; max-width: 46ch; }
.cta-band__actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 6g. CONTACTO ================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.contact-info .lead { margin-top: 18px; color: var(--muted); }
.contact-list { margin-top: 32px; display: grid; gap: 14px; }
.contact-row {
  display: flex; gap: 16px; align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t-fast);
}
.contact-row:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.contact-row__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row__t { font-size: .82rem; color: var(--muted); }
.contact-row__v { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.5vw, 42px);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.col-2 { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  background: var(--bone-2);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 1rem;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field input::placeholder, .field textarea::placeholder { color: var(--brown-pale); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58, 90, 34, .1);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 3px; flex-shrink: 0; }
.field--check label { font-weight: 400; font-family: var(--font-body); color: var(--muted); font-size: .9rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--green-soft); color: var(--green-deep); border: 1px solid #c4d6a8; }
.form-status.err { background: #fbe9e7; color: #a23b2e; border: 1px solid #f0c2bb; }
.form-status.sending { background: var(--blue-soft); color: var(--blue-deep); border: 1px solid #cdd8e0; }

/* ===== 7. DIAGNÓSTICO (CHECKLIST) ==================================== */
.diag {
  position: relative;
  background:
    radial-gradient(900px 500px at 50% -8%, var(--green-soft), transparent 60%),
    var(--bone);
  overflow: hidden;
}
.diag__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 560px) 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 56px;
}
.diag__side { display: grid; gap: 20px; padding-top: 30px; }
.diag__side--right { padding-top: 70px; }

/* Tarjeta central (estilo diagnostico01) */
.diag-card {
  position: relative;
  background: linear-gradient(160deg, #2f481f 0%, #1d2c14 100%);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.2vw, 40px);
  box-shadow: var(--shadow-green);
  color: #e8ede1;
  border: 1px solid rgba(255, 255, 255, .08);
}
.diag-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 220px at 85% 0%, rgba(246, 166, 35, .18), transparent 60%);
  pointer-events: none;
}
.diag-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.diag-card__head h2 { color: #fff; font-size: 1.5rem; }
.diag-card__head p { color: #aebda0; font-size: .92rem; margin-top: 4px; }
.diag-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 7px 13px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; font-family: var(--font-display);
}
.diag-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-bright); }

/* progreso */
.diag-progress { margin-top: 24px; position: relative; }
.diag-progress__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.diag-progress__count { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.diag-progress__pct { font-size: .85rem; color: #aebda0; }
.diag-bar { height: 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); overflow: hidden; }
.diag-bar__fill {
  height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  transition: width var(--t-slow), background var(--t);
}

/* estado en vivo */
.diag-status {
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: background var(--t), border-color var(--t);
}
.diag-status__ring {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background var(--t), color var(--t);
}
.diag-status__ring svg { width: 24px; height: 24px; }
.diag-status__txt small { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #aebda0; }
.diag-status__label { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: #fff; }
/* variantes por estado (la clase la setea diagnostico.js) */
.diag-status.s-nulo    { background: rgba(150,160,140,.10); }
.diag-status.s-nulo    .diag-status__ring { background: rgba(150,160,140,.2); }
.diag-status.s-abismal { background: rgba(176, 58, 46, .16); border-color: rgba(176,58,46,.4); }
.diag-status.s-abismal .diag-status__ring { background: #b03a2e; }
.diag-status.s-revisar { background: rgba(246, 166, 35, .16); border-color: rgba(246,166,35,.4); }
.diag-status.s-revisar .diag-status__ring { background: var(--orange); }
.diag-status.s-aldia   { background: rgba(123, 178, 79, .18); border-color: rgba(123,178,79,.45); }
.diag-status.s-aldia   .diag-status__ring { background: #7bb24f; }

/* checklist */
.diag-cat { margin-top: 26px; }
.diag-cat__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange-bright);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.diag-cat__title::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.diag-item {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t);
}
.diag-item:hover { background: rgba(255, 255, 255, .05); }
.diag-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.diag-item__box {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center;
  transition: background var(--t), border-color var(--t), transform var(--t-fast);
}
.diag-item__box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.5); transition: opacity var(--t-fast), transform var(--t-fast); }
.diag-item input:checked + .diag-item__box { background: #7bb24f; border-color: #7bb24f; }
.diag-item input:checked + .diag-item__box svg { opacity: 1; transform: none; }
.diag-item input:focus-visible + .diag-item__box { outline: 3px solid var(--orange-bright); outline-offset: 2px; }
.diag-item__label { font-size: .96rem; color: #dbe4d2; line-height: 1.45; }
.diag-item input:checked ~ .diag-item__label { color: #fff; }

.diag-card__actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.diag-reset {
  font-size: .9rem; color: #aebda0; display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--t), color var(--t);
}
.diag-reset:hover { background: rgba(255,255,255,.08); color: #fff; }

/* tarjetas flotantes laterales */
.float-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}
.float-card__head { display: flex; align-items: center; gap: 12px; }
.float-card__icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.float-card__icon svg { width: 20px; height: 20px; }
.float-card h3 { font-size: 1rem; }
.float-card p { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.float-card__num { font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 1.6rem; }
.float-card--accent .float-card__icon { background: var(--orange-soft); color: var(--orange); }

/* ===== 8. BLOG ====================================================== */
.blog-hero { text-align: center; padding-block: clamp(48px, 7vw, 88px) 0; }
.blog-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.chip {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--brown);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.chip:hover, .chip.active { background: var(--green); color: #fff; border-color: var(--green); }

.blog-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.blog-feature__img { aspect-ratio: 4/3; }
.blog-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-feature__body { padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.post-tag {
  font-family: var(--font-display); font-weight: 600; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft);
  padding: 5px 12px; border-radius: var(--r-pill);
}
.blog-feature__body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 18px 0 14px; }
.blog-feature__body p { color: var(--muted); }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { font-size: 1.35rem; margin: 14px 0 10px; }
.post-card__body p { color: var(--muted); font-size: .96rem; flex: 1; }
.post-card__link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--green);
}
.post-card__link svg { width: 16px; height: 16px; transition: transform var(--t); }
.post-card:hover .post-card__link svg { transform: translateX(4px); }

/* artículo completo */
.article { max-width: 760px; margin-inline: auto; padding-top: clamp(40px, 5vw, 72px); }
.article__head { text-align: center; margin-bottom: 40px; }
.article__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0; }
.article__cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/8; box-shadow: var(--shadow-md); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: 1.12rem; line-height: 1.8; color: var(--body); }
.article__body h3 { font-size: 1.6rem; margin: 38px 0 14px; }
.article__body p { margin-bottom: 22px; }
.article__body blockquote {
  border-left: 4px solid var(--orange);
  padding: 6px 0 6px 26px;
  margin: 30px 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
}
.article__body ul { display: grid; gap: 12px; margin: 0 0 24px; }
.article__body ul li { position: relative; padding-left: 30px; }
.article__body ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px;
  background: var(--green-soft);
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px var(--green);
}
.article + .article { border-top: 1px solid var(--line); margin-top: 64px; }

/* ===== 9. NOSOTROS + LEGAL ========================================= */
.about-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.about-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.03em; }
.about-hero__img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  transition: transform var(--t), box-shadow var(--t);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card__icon { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.value-card__icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: .96rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { text-align: center; }
.team-card__photo { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px; background: var(--green-soft); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card h3 { font-size: 1.1rem; }
.team-card p { color: var(--orange); font-weight: 500; font-size: .9rem; font-family: var(--font-display); }

/* página legal */
.legal { max-width: 820px; margin-inline: auto; padding-top: clamp(40px, 5vw, 72px); }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--body); margin-bottom: 14px; }
.legal ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.legal .note { background: var(--orange-soft); border: 1px solid #f0d8b0; border-radius: var(--r-md); padding: 18px 20px; color: var(--brown); font-size: .95rem; }

/* ===== 10. RESPONSIVE ============================================== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
  .diag__stage { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
  .diag__side { grid-template-columns: 1fr 1fr; display: grid; padding-top: 0; }
  .diag__side--right { padding-top: 0; }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature__img { aspect-ratio: 16/9; }
  .blog-feature__body { padding: 0 clamp(24px,4vw,40px) clamp(28px,4vw,40px); }
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-hero__img { aspect-ratio: 16/10; max-height: 420px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__links, .nav__socials, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item--wide { grid-column: span 2; }
  .contact-wrap { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat + .stat { border-left: none; padding-top: 28px; border-top: 1px solid var(--line); }
  .services-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .diag__side { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hero__media { aspect-ratio: 4/5; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Fallback de imágenes (si una foto no carga, se ve un bloque
   de marca con su rótulo en vez de un ícono roto) ==================== */
.img-host { position: relative; isolation: isolate; }
.img-host > img { position: relative; z-index: 1; }
.img-host::after {
  content: attr(data-label);
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-soft), var(--orange-soft));
  color: var(--green);
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  text-align: center; padding: 16px; line-height: 1.4;
}

/* ===== ACCESIBILIDAD: reduced motion =============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
}
