/* =========================================================
   SUAN Consultores Ambientales — Hoja de estilos principal
   Concepto: cartografía / curvas de nivel + rigor técnico
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --pine:   #103a2c;   /* verde pino profundo (marca) */
  --pine-2: #0b2a20;   /* pino más oscuro */
  --moss:   #2f8a56;   /* verde vivo (acciones) */
  --moss-d: #256e44;   /* moss oscuro para hover */
  --paper:  #f6f4ee;   /* papel cálido (fondo) */
  --paper-2:#eee9df;   /* papel un tono más */
  --ink:    #15201b;   /* texto principal */
  --ink-2:  #4a564e;   /* texto secundario */
  --sand:   #c19a4b;   /* acento tierra / topográfico */
  --mist:   #dfe6df;   /* verde-gris suave */
  --line:   #d6cfc1;   /* hairlines sobre papel */
  --white:  #ffffff;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Escala */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 5rem);
  --step-5:  clamp(3.2rem, 2.2rem + 5vw, 6.5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 24px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--sand);
}
.eyebrow--light { color: #a9d8b9; }
.eyebrow--light::before { background: var(--sand); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; }
.display { font-size: var(--step-4); font-weight: 400; }
h2.section-title { font-size: var(--step-3); font-weight: 500; margin-top: 0.4em; }
.lead { font-size: var(--step-1); color: var(--ink-2); font-weight: 400; }

strong { font-weight: 700; color: inherit; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--step-0);
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--moss); color: var(--white); box-shadow: 0 10px 24px -12px rgba(47,138,86,.7); }
.btn--primary:hover { background: var(--moss-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--pine); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--pine); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(0,0,0,.5); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 1.1rem;
}
.site-header::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: var(--paper); opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.scrolled { padding-block: .55rem; box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled::after { opacity: .96; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand img { height: 60px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand img { height: 60px; }
/* logo swap: blanco sobre hero, verde al hacer scroll */
.brand .logo-light { display: block; }
.brand .logo-dark { display: none; }
.site-header.scrolled .brand .logo-light,
.site-header.solid .brand .logo-light { display: none; }
.site-header.scrolled .brand .logo-dark,
.site-header.solid .brand .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .01em;
  color: #eafff1;
  position: relative;
  padding-block: .3rem;
  transition: color .3s;
}
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:0;
  background: var(--sand); transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.site-header.scrolled .nav-links a,
.site-header.solid .nav-links a { color: var(--ink); }
.site-header.scrolled .nav-links a.active,
.site-header.solid .nav-links a.active { color: var(--moss); }

.header-cta { display: flex; align-items: center; gap: .9rem; }
.wa-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); color:#fff;
  transition: background .3s, transform .3s;
}
.wa-link:hover { background: var(--moss); transform: translateY(-2px); }
.wa-link svg { width: 20px; height: 20px; }
.site-header.scrolled .wa-link, .site-header.solid .wa-link { background: var(--mist); color: var(--pine); }
.site-header.scrolled .wa-link:hover, .site-header.solid .wa-link:hover { background: var(--moss); color:#fff; }
.header-cta .btn--brochure {
  padding: .6em 1.3em; font-size: var(--step--1);
  border: 1.5px solid rgba(255,255,255,.4); color:#fff; border-radius: 100px;
  font-weight: 600; transition: all .3s var(--ease);
}
.header-cta .btn--brochure:hover { background:#c9ea63; color: var(--pine); }
.site-header.scrolled .btn--brochure, .site-header.solid .btn--brochure { border-color: var(--line); color: var(--pine); }
.site-header.scrolled .btn--brochure:hover, .site-header.solid .btn--brochure:hover { background: var(--pine); color:#fff; border-color: var(--pine); }

/* Botón hamburguesa */
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-toggle span { position:absolute; left:10px; right:10px; height:2px; background:#fff; transition: all .35s var(--ease); }
.menu-toggle span:nth-child(1){ top:15px; }
.menu-toggle span:nth-child(2){ top:22px; }
.menu-toggle span:nth-child(3){ top:29px; }
.site-header.scrolled .menu-toggle span, .site-header.solid .menu-toggle span { background: var(--ink); }
body.menu-open .menu-toggle span { background:#fff; }
body.menu-open .menu-toggle span:nth-child(1){ top:22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2){ opacity:0; }
body.menu-open .menu-toggle span:nth-child(3){ top:22px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--pine);
  color: #f3f7f2;
  padding-top: clamp(8rem, 16vh, 12rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-topo { position: absolute; inset: -10% -5% -10% -5%; z-index: 0; opacity: .5; pointer-events: none; }
.hero-topo path { fill: none; stroke: #2c6b4d; stroke-width: 1.2; }
.hero-glow {
  position:absolute; z-index:0; width: 60vw; height: 60vw; max-width:720px; max-height:720px;
  right: -12vw; top: -14vw; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle, rgba(47,138,86,.35), transparent 62%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero-copy .display { color:#fff; margin-top: 1.1rem; max-width: 15ch; }
.hero-copy .display em { font-style: italic; color: #bfe6cb; }
.hero-copy .lead { color: #cfe0d4; margin-top: 1.4rem; max-width: 46ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta { display:flex; gap: 2.5rem; margin-top: 3rem; flex-wrap:wrap; }
.hero-meta .stat-num { font-family: var(--font-display); font-size: var(--step-3); color:#fff; line-height:1; }
.hero-meta .stat-lbl { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing:.08em; color:#9dc4ac; text-transform:uppercase; margin-top:.4rem; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
}
.hero-figure .coord {
  position:absolute; bottom: 1rem; left:1rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing:.1em;
  color:#fff; background: rgba(11,42,32,.7); backdrop-filter: blur(6px);
  padding:.4em .8em; border-radius: 100px;
}

/* Cinta inferior del hero */
.hero-strip {
  position: relative; z-index:2; margin-top: clamp(2.5rem,6vh,4rem);
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem;
  display:flex; align-items:center; gap: 1.5rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing:.06em; color:#9dc4ac;
}
.hero-strip span { display:inline-flex; align-items:center; gap:.5em; }
.hero-strip .dot { width:6px; height:6px; border-radius:50%; background: var(--sand); }

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
section { position: relative; }
.section { padding-block: clamp(4.5rem, 10vh, 8rem); }
.section--paper2 { background: var(--paper-2); }
.section--pine { background: var(--pine); color:#eaf3ec; }
.section--pine .section-title { color:#fff; }
.section-head { max-width: 62ch; }
.section-head.center { margin-inline:auto; text-align:center; }
.section-head .lead { margin-top: 1.1rem; }

/* Divisor curvas de nivel */
.topo-divider { display:block; width:100%; height:48px; color: var(--line); }
.topo-divider path { fill:none; stroke: currentColor; stroke-width:1; }

/* ---------- Intro / texto + imagen ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
.split.reverse .split-media { order: 2; }
.split-media img { width:100%; border-radius: var(--radius-lg); }
.split-copy p { margin-top: 1.2rem; color: var(--ink-2); }
.split-copy .btn { margin-top: 1.8rem; }

/* =========================================================
   SERVICIOS (grid tarjetas)
   ========================================================= */
.svc-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 3rem; }
.svc-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem 2.2rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.svc-card::before {
  content:""; position:absolute; left:0; top:0; height:100%; width:3px;
  background: var(--moss); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(16,58,44,.5); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--sand); letter-spacing:.1em; }
.svc-icon { width: 46px; height:46px; margin: 1.2rem 0 1rem; color: var(--moss); }
.svc-icon svg { width:100%; height:100%; }
.svc-card h3 { font-size: var(--step-1); }
.svc-card p { margin-top:.7rem; color: var(--ink-2); font-size: var(--step--1); line-height:1.6; }

/* Lista de servicios detallada (página servicios) */
.svc-detail { display:grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; margin-top: 3rem; }
.svc-block {
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.svc-block:hover { box-shadow: 0 24px 48px -32px rgba(16,58,44,.45); transform: translateY(-3px); }
.svc-block-head { display:flex; align-items:flex-start; gap: 1rem; }
.svc-block-head .svc-icon { flex: none; width:40px; height:40px; margin:0; }
.svc-block h3 { font-size: var(--step-1); }
.svc-block .svc-tag { font-family: var(--font-mono); font-size:.72rem; color: var(--sand); letter-spacing:.08em; text-transform:uppercase; }
.svc-list { margin-top: 1.3rem; display:grid; gap:.55rem; }
.svc-list li { position:relative; padding-left: 1.5rem; font-size: var(--step--1); color: var(--ink-2); line-height:1.55; }
.svc-list li::before { content:""; position:absolute; left:0; top:.55em; width:8px; height:8px; border:1.5px solid var(--moss); border-radius:2px; transform: rotate(45deg); }
.svc-details{ margin-top:.3rem; }
.svc-details summary{ cursor:pointer; list-style:none; font-weight:600; color:var(--ink); padding:.35rem 0; transition:.25s; }
.svc-details summary::-webkit-details-marker{ display:none; }
.svc-details summary::after{ content:"+"; float:right; font-size:1.2rem; color:var(--moss); transition:transform .3s; }
.svc-details[open] summary::after{ content:"−"; }
.svc-details summary:hover{ color:var(--moss); }
.svc-sublist{ margin-top:.75rem; padding-left:1.2rem; }

/* =========================================================
   STATS
   ========================================================= */
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap:2rem; margin-top:3rem; }
.stat {
  text-align:center; padding: 2rem 1rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
}
.stat .num { font-family: var(--font-display); font-size: var(--step-4); line-height:1; color:#fff; }
.stat .num .suffix { color: var(--sand); }
.stat .lbl { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing:.1em; text-transform:uppercase; color:#a9c9b5; margin-top:.8rem; }

/* =========================================================
   CLIENTES
   ========================================================= */
.clients { text-align:center; }
.client-logos { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap: clamp(2rem,6vw,5rem); margin-top:3rem; }
.client-logos img { height: 58px; width:auto; filter: grayscale(1); opacity:.55; transition: filter .4s var(--ease), opacity .4s var(--ease); }
.client-logos img:hover { filter: grayscale(0); opacity:1; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { position:relative; overflow:hidden; background: var(--pine-2); color:#eaf3ec; text-align:center; }
.cta-band .topo-bg { position:absolute; inset:0; opacity:.28; color:#2c6b4d; }
.cta-band .topo-bg path { fill:none; stroke: currentColor; stroke-width:1; }
.cta-inner { position:relative; z-index:2; max-width: 60ch; margin-inline:auto; }
.cta-inner h2 { font-size: var(--step-3); color:#fff; }
.cta-inner p { color:#cfe0d4; margin-top:1rem; }
.cta-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:2rem; }

/* =========================================================
   PAGE HERO (páginas internas)
   ========================================================= */
.page-hero {
  background: var(--pine); color:#eef6f0; position:relative; overflow:hidden; isolation:isolate;
  padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: clamp(3rem,7vh,5rem);
}
.page-hero .hero-topo { opacity:.45; }
.page-hero-inner { position:relative; z-index:2; max-width: 60ch; }
.page-hero h1 { color:#fff; font-size: var(--step-4); margin-top:1rem; }
.page-hero p { color:#cfe0d4; margin-top:1.2rem; font-size: var(--step-1); }
.breadcrumb { font-family: var(--font-mono); font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; color:#9dc4ac; }
.breadcrumb a:hover { color:#fff; }

/* =========================================================
   MISIÓN / VISIÓN
   ========================================================= */
.mv-card {
  background:var(--white); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem,4vw,3rem); position:relative; overflow:hidden;
}
.mv-card .tag { font-family:var(--font-mono); font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color:var(--moss); }
.mv-card h3 { font-size: var(--step-2); margin-top:.6rem; }
.mv-card p { margin-top:1.1rem; color:var(--ink-2); }
.mv-card .ghost-num { position:absolute; right:-.2rem; bottom:-1.5rem; font-family:var(--font-display); font-size:9rem; color:var(--paper-2); z-index:0; line-height:1; }
.mv-card > * { position:relative; z-index:1; }

/* =========================================================
   FORMULARIO / CONTACTO
   ========================================================= */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
.contact-info .info-item { display:flex; gap:1rem; padding: 1.3rem 0; border-bottom:1px solid var(--line); }
.contact-info .info-item:first-child { padding-top:0; }
.info-item .ic { flex:none; width:44px; height:44px; border-radius:12px; background:var(--mist); color:var(--pine); display:grid; place-items:center; }
.info-item .ic svg { width:20px; height:20px; }
.info-item h4 { font-family:var(--font-mono); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-2); font-weight:400; }
.info-item p, .info-item a { font-family:var(--font-body); font-size:var(--step-0); font-weight:600; margin-top:.2rem; }
.info-item a:hover { color:var(--moss); }

.form-card { background:var(--white); border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.6rem); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.field { margin-bottom:1.1rem; }
.field label { display:block; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); margin-bottom:.45rem; }
.field input, .field textarea {
  width:100%; padding:.85em 1em; font:inherit; color:var(--ink);
  background:var(--paper); border:1.5px solid var(--line); border-radius:10px;
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus { outline:none; border-color:var(--moss); background:#fff; }
.field textarea { resize:vertical; min-height:130px; }
.form-note { font-size:.8rem; color:var(--ink-2); margin-top:1rem; }
.form-status { margin-top:1rem; font-size:.9rem; font-weight:600; display:none; }
.form-status.show { display:block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--pine-2); color:#c8d8cd; padding-top: clamp(3.5rem,7vh,5rem); }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:2.5rem; padding-bottom:3rem; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand img { height:80px; margin-bottom:1.2rem; }
.footer-brand p { max-width:34ch; color:#9db7a7; font-size:var(--step--1); }
.footer-col h4 { font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color:var(--sand); font-weight:400; margin-bottom:1.1rem; }
.footer-col ul { display:grid; gap:.7rem; }
.footer-col a, .footer-col li { font-size:var(--step--1); color:#c8d8cd; }
.footer-col a:hover { color:#fff; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%;  display: flex; align-items: center; justify-content: center; transition: .3s; }
.footer-social a:hover {  transform: translateY(-3px); }
.footer-social img{ display:block; object-fit:contain; }
.footer-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding-block:1.8rem; font-size:.8rem; color:#7d9788; }


/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.wa-float {
  position:fixed; right:1.4rem; bottom:1.4rem; z-index:90;
  width:58px; height:58px; border-radius:50%; background:#25D366;
  display:grid; place-items:center; box-shadow:0 12px 30px -8px rgba(37,211,102,.6);
  transition:transform .3s var(--ease); animation: waPulse 2.8s infinite;
}
.wa-float:hover { transform:scale(1.08); }
.wa-float svg { width:30px; height:30px; color:#fff; }
@keyframes waPulse { 0%,100%{ box-shadow:0 12px 30px -8px rgba(37,211,102,.6);} 50%{ box-shadow:0 12px 40px -6px rgba(37,211,102,.85);} }

.whatsapp-btn img{
    width: 24px;
    height: 24px;
    display: block;
}



/* =========================================================
   ANIMACIONES SCROLL
   ========================================================= */
[data-reveal] { opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity:1; transform:none; }
[data-reveal-delay="1"]{ transition-delay:.08s; }
[data-reveal-delay="2"]{ transition-delay:.16s; }
[data-reveal-delay="3"]{ transition-delay:.24s; }
[data-reveal-delay="4"]{ transition-delay:.32s; }
[data-reveal-delay="5"]{ transition-delay:.4s; }

.topo-anim path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: drawTopo 3s var(--ease) forwards; }
@keyframes drawTopo { to { stroke-dashoffset: 0; } }

/* =========================================================
   MENÚ MÓVIL
   ========================================================= */
.mobile-menu {
  position:fixed; inset:0; z-index:110; background:var(--pine);
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:1.6rem;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .6s var(--ease);
  pointer-events:none;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events:auto; }
.mobile-menu a { font-family:var(--font-display); font-size:var(--step-2); color:#eef6f0; opacity:0; transform:translateY(14px); transition:opacity .4s, transform .4s; }
body.menu-open .mobile-menu a { opacity:1; transform:none; }
body.menu-open .mobile-menu a:nth-child(1){ transition-delay:.15s; }
body.menu-open .mobile-menu a:nth-child(2){ transition-delay:.22s; }
body.menu-open .mobile-menu a:nth-child(3){ transition-delay:.29s; }
body.menu-open .mobile-menu a:nth-child(4){ transition-delay:.36s; }
body.menu-open .mobile-menu a:nth-child(5){ transition-delay:.43s; }
.mobile-menu .mm-cta { margin-top:1rem; opacity:0; transition:opacity .4s .5s; }
body.menu-open .mobile-menu .mm-cta { opacity:1; }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; }
  .split { grid-template-columns:1fr; }
  .split.reverse .split-media { order:0; }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .svc-detail { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .header-cta .btn--brochure, .header-cta .wa-link { display:none; }
  .menu-toggle { display:block; }
  .svc-grid { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; }
  .hero-meta { gap:1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  [data-reveal]{ opacity:1; transform:none; }
}

/* =========================================================
   NOTICIAS
   ========================================================= */
.news-wrap { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Destacado */
.news-featured{
  display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(1.5rem,4vw,3rem);
  align-items:center; margin-bottom:clamp(2.5rem,6vw,4.5rem);
}
.news-featured-media{
  position:relative; display:block; width:100%; border:0; padding:0; cursor:pointer;
  aspect-ratio:16/10; border-radius:var(--radius-lg); overflow:hidden;
  background:var(--pine); box-shadow:0 24px 60px -30px rgba(16,58,44,.45);
}
.news-featured-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.news-featured-media:hover img{ transform:scale(1.04); }
.news-featured-body .eyebrow{ margin-bottom:.9rem; }
.news-featured-body h2{
  font-family:var(--font-display); font-weight:400; font-size:var(--step-3);
  line-height:1.08; letter-spacing:-.01em; color:var(--ink); margin:.4rem 0 .8rem;
}
.news-featured-body p{ color:var(--ink-2); max-width:46ch; margin-bottom:1.4rem; }

/* Filtros */
.news-filters{
  display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:2rem;
  border-top:1px solid var(--line); padding-top:1.6rem;
}
.chip{
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-2); background:transparent; border:1px solid var(--line);
  padding:.5rem .95rem; border-radius:100px; cursor:pointer;
  transition:all .25s ease;
}
.chip:hover{ border-color:var(--moss); color:var(--pine); }
.chip.is-active{ background:var(--pine); border-color:var(--pine); color:#fff; }

/* Grilla */
.news-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(300px,1fr));
  gap:clamp(1.25rem,3vw,2rem);
}
.news-card{
  display:flex; flex-direction:column; background:var(--white);
  border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden;
  opacity:0; transform:translateY(24px); transition:opacity .6s ease, transform .6s ease, box-shadow .35s ease, border-color .35s ease;
}
.news-card.in{ opacity:1; transform:none; }
.news-card:hover{ box-shadow:0 22px 50px -30px rgba(16,58,44,.4); border-color:#c9d3c9; }
.news-card-media{
  position:relative; display:block; width:100%; border:0; padding:0; cursor:pointer;
  aspect-ratio:16/10; overflow:hidden; background:var(--pine);
}
.news-card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.7,.2,1); }
.news-card:hover .news-card-media img{ transform:scale(1.05); }

/* Etiqueta de categoría */
.news-cat{
  position:absolute; top:.85rem; left:.85rem; z-index:2;
  font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase;
  color:#fff; background:rgba(16,58,44,.72); backdrop-filter:blur(6px);
  padding:.35rem .7rem; border-radius:100px; border:1px solid rgba(255,255,255,.18);
}
.news-card-body{ padding:1.3rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.news-date{
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--moss-d); margin-bottom:.55rem;
}
.news-title{
  font-family:var(--font-display); font-weight:400; font-size:1.28rem; line-height:1.18;
  letter-spacing:-.01em; color:var(--ink); margin-bottom:.55rem;
}
.news-excerpt{ color:var(--ink-2); font-size:.94rem; line-height:1.6; margin-bottom:1.1rem; flex:1; }
.news-more{
  align-self:flex-start; display:inline-flex; align-items:center; gap:.4rem;
  font-family:var(--font-body); font-weight:600; font-size:.9rem; color:var(--pine);
  background:transparent; border:0; padding:0; cursor:pointer;
}
.news-more svg{ width:16px; height:16px; transition:transform .3s ease; }
.news-more:hover svg{ transform:translateX(4px); }

/* Placeholder topográfico (cuando aún no hay foto) */
.news-ph{ position:absolute; inset:0; background:linear-gradient(135deg,var(--pine),var(--pine-2)); }
.news-ph svg{ position:absolute; inset:0; width:100%; height:100%; }
.news-ph .news-ph-label{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(255,255,255,.5);
}

.news-empty{
  grid-column:1/-1; text-align:center; padding:3rem 1rem; color:var(--ink-2);
  font-family:var(--font-mono); font-size:.8rem; letter-spacing:.06em;
}

/* =========================================================
   MODAL DE NOTA
   ========================================================= */
.news-modal[hidden]{ display:none; }
.news-modal{
  position:fixed; inset:0; z-index:200; display:flex; align-items:flex-start; justify-content:center;
  padding:clamp(1rem,4vw,3rem) 1rem;
}
.news-modal-overlay{ position:absolute; inset:0; background:rgba(11,42,32,.55); backdrop-filter:blur(4px); animation:fadeIn .3s ease; }
.news-modal-panel{
  position:relative; z-index:1; width:min(860px,100%); max-height:calc(100dvh - 2rem);
  overflow-y:auto; background:var(--paper); border-radius:var(--radius-lg);
  box-shadow:0 40px 100px -40px rgba(0,0,0,.5); animation:panelUp .4s cubic-bezier(.2,.7,.2,1);
  -webkit-overflow-scrolling:touch;
}
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes panelUp{ from{opacity:0; transform:translateY(24px)} to{opacity:1; transform:none} }
.news-modal-close{
  position:sticky; top:1rem; float:right; margin:1rem 1rem 0 0; z-index:3;
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line);
  background:var(--white); color:var(--ink); font-size:1.4rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:all .2s ease;
}
.news-modal-close:hover{ background:var(--pine); color:#fff; border-color:var(--pine); }
.news-modal-cover{ width:100%; aspect-ratio:16/9; object-fit:cover; }
.news-modal-cover.is-ph{ position:relative; background:linear-gradient(135deg,var(--pine),var(--pine-2)); }
.news-article{ padding:2rem clamp(1.5rem,5vw,3.5rem) 3rem; }
.news-article .news-cat{ position:static; display:inline-block; background:var(--mist); color:var(--pine); border-color:transparent; margin-bottom:1rem; }
.news-article-date{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--moss-d); margin-left:.75rem; }
.news-article h2{ font-family:var(--font-display); font-weight:400; font-size:var(--step-3); line-height:1.1; letter-spacing:-.01em; color:var(--ink); margin:.4rem 0 1.2rem; }
.news-article p{ color: var(--ink-2); line-height: 1.9; margin-bottom: 1.4rem; max-width: 70ch; text-align: justify; }
.news-article ul, .news-article ol{ margin: 1rem 0 1.5rem 1.5rem; padding: 0; color: var(--ink-2); line-height: 1.9; }
.news-article li{ margin-bottom: .8rem; text-align: justify; }

/* Galería dentro de la nota */
.news-gallery{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:.6rem; margin-top:1.8rem;
}
.news-gallery button{
  border:0; padding:0; cursor:pointer; aspect-ratio:1; border-radius:12px; overflow:hidden; background:var(--mist);
}
.news-gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.news-gallery button:hover img{ transform:scale(1.08); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox[hidden]{ display:none; }
.lightbox{
  position:fixed; inset:0; z-index:300; display:flex; align-items:center; justify-content:center;
  background:rgba(8,20,15,.92); animation:fadeIn .25s ease; padding:1.5rem;
}
.lightbox img{ max-width:92vw; max-height:86vh; object-fit:contain; border-radius:6px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lb-btn{
  position:absolute; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  color:#fff; width:52px; height:52px; border-radius:50%; cursor:pointer; font-size:1.6rem; line-height:1;
  display:flex; align-items:center; justify-content:center; transition:background .2s ease;
}
.lb-btn:hover{ background:rgba(255,255,255,.22); }
.lb-close{ top:1.2rem; right:1.2rem; font-size:1.5rem; }
.lb-prev{ left:1.2rem; top:50%; transform:translateY(-50%); }
.lb-next{ right:1.2rem; top:50%; transform:translateY(-50%); }
.lb-count{
  position:absolute; bottom:1.4rem; left:50%; transform:translateX(-50%);
  font-family:var(--font-mono); font-size:.75rem; letter-spacing:.1em; color:rgba(255,255,255,.7);
}
body.no-scroll{ overflow:hidden; }

/* Responsive noticias */
@media (max-width:860px){
  .news-featured{ grid-template-columns:1fr; }
  .news-featured-media{ aspect-ratio:16/9; }
  .lb-prev{ left:.5rem; } .lb-next{ right:.5rem; }
}
