/* ==========================================================================
   Macroambiental SAS — estilos
   Dirección: "clínico editorial" — serio, limpio, con carácter.
   ========================================================================== */

:root {
  /* Paleta — verde ecológico + naranja monarca y negro del logo */
  --ink: #0F1A12;
  --petrol: #0F2B1D;
  --petrol-2: #163A27;
  --petrol-3: #23573A;
  --green: #1D5C38;
  --green-2: #2F7D4A;
  --mint: #A6DB7F;
  --mint-2: #E2F3D6;
  --aqua: #5CC6D3;
  --orange: #E8921F;
  --orange-2: #F4AE45;
  --orange-soft: #FCEBD2;
  --paper: #F6F4EC;
  --paper-2: #ECE9DC;
  --white: #FFFFFF;
  --muted: #56685B;
  --line: rgba(15, 26, 18, .12);
  --line-light: rgba(255, 255, 255, .14);
  --error: #C2412D;

  /* Tipografía */
  /* Estilo Apple: SF Pro en iPhone/Mac; Inter (la más parecida) en el resto */
  --f-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Ritmo */
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --sec: clamp(80px, 11vw, 150px);
  --r: 22px;
  --r-sm: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(15, 26, 18, .05), 0 12px 40px -12px rgba(15, 26, 18, .18);
  --shadow-lg: 0 2px 4px rgba(15, 26, 18, .06), 0 30px 70px -20px rgba(15, 26, 18, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }
.btn svg, .nav svg, .svc svg, .trust svg, .why svg, .who svg, .step svg, .checks svg,
.hero__ticks svg, .contact__list svg, .float-card svg, .logo svg, .hero__seal svg, .wa-float svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
svg.fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

em { font-style: italic; }
h1 em, h2 em { font-family: var(--f-display); font-weight: 400; color: var(--green-2); font-variation-settings: 'opsz' 144; }

/* Barra de progreso de lectura */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--mint)); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15.5px; letter-spacing: -.005em; line-height: 1.2; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s;
  will-change: transform;
}
.btn::before { /* barrido de luz al pasar */
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(255,255,255,.28), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease-out); }
.btn:hover svg:not(.fill) { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { --fg: var(--ink); background: linear-gradient(135deg, var(--orange-2), var(--orange)); box-shadow: 0 10px 30px -10px rgba(232, 146, 31, .75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--primary:hover { box-shadow: 0 16px 40px -12px rgba(232, 146, 31, .9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--ghost { --fg: var(--white); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ghost svg.fill { color: #4BE08A; }
.btn--light { --bg: var(--mint); --fg: var(--ink); }
.btn--light:hover { --bg: var(--white); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Eyebrow / títulos de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2);
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--mint); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(166,219,127,.7); animation: pulse 2.4s infinite; }
.eyebrow:has(.dot)::before { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(166,219,127,.6); } 70% { box-shadow: 0 0 0 10px rgba(166,219,127,0); } 100% { box-shadow: 0 0 0 0 rgba(166,219,127,0); } }

.section { position: relative; padding: var(--sec) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--petrol); color: var(--white); overflow: hidden; }
.section--dark h2 em, .section--dark h1 em { color: var(--orange-2); }

.head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.head h2, .why h2, .faq h2, .contact h2 { margin-top: 18px; font-size: clamp(34px, 5.2vw, 60px); }
.head__lead { margin-top: 20px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; }
.section--dark .head__lead { color: rgba(255,255,255,.7); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head--split { max-width: none; display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.15fr 1fr; gap: 60px; } .head--split .head__lead { margin-top: 0; } }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px 0; color: var(--white);
  transition: padding .4s var(--ease), background-color .4s, box-shadow .4s, color .4s;
}
.header.is-scrolled {
  padding: 10px 0; color: var(--ink);
  background: rgba(246, 244, 236, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.logo__img { height: 40px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.18)); transition: transform .6s var(--ease-out); }
.logo:hover .logo__img { transform: rotate(-6deg) scale(1.06); }
.logo__txt { font-size: 18px; line-height: 1; display: flex; flex-direction: column; }
.logo__txt small { font-size: 10.5px; font-weight: 700; letter-spacing: .3em; opacity: .6; margin-top: 4px; }
.nav { display: none; }
.header__cta { display: none; margin-left: auto; }
.burger { margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.header.is-scrolled .burger { background: rgba(15,26,18,.06); }
.burger span { display: block; width: 20px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

@media (max-width: 1079px) {
  .nav {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: 100px var(--gutter) 40px; background: var(--petrol); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav a { font-family: var(--f-display); font-size: clamp(30px, 8vw, 44px); padding: 6px 0; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav.is-open a { transform: none; opacity: 1; }
  .nav.is-open a:nth-child(2) { transition-delay: .04s; } .nav.is-open a:nth-child(3) { transition-delay: .08s; }
  .nav.is-open a:nth-child(4) { transition-delay: .12s; } .nav.is-open a:nth-child(5) { transition-delay: .16s; } .nav.is-open a:nth-child(6) { transition-delay: .2s; }
  .nav__tel { margin-top: 24px; font-family: var(--f-body) !important; font-size: 18px !important; display: inline-flex; gap: 10px; align-items: center; color: var(--mint); }
  .nav__tel svg { width: 20px; height: 20px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (min-width: 1080px) {
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .nav a { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 600; opacity: .85; transition: opacity .2s; }
  .nav a:hover { opacity: 1; }
  .nav a:not(.nav__tel)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__tel { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
  .nav__tel svg { width: 17px; height: 17px; }
  .header__cta { display: inline-flex; margin-left: 10px; }
  .nav a { white-space: nowrap; }
}
.logo__txt { white-space: nowrap; }
@media (min-width: 1080px) and (max-width: 1279px) {
  .nav__tel { display: none !important; }
  .nav a { padding: 10px 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 85% 10%, var(--petrol-3) 0%, transparent 55%), linear-gradient(160deg, var(--petrol) 0%, var(--ink) 55%, #0A2213 100%);
  padding: clamp(118px, 16vw, 170px) 0 clamp(40px, 6vw, 70px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.05); -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(80% 70% at 70% 30%, #000 0%, transparent 75%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob--a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -12%; top: 30%; background: #1E6B3E; }
.blob--b { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; right: -8%; top: -10%; background: #C77A1C; opacity: .28; animation-duration: 26s; }
.blob--c { width: 22vw; height: 22vw; max-width: 300px; max-height: 300px; right: 30%; bottom: -8%; background: #4C8F3A; opacity: .35; animation-duration: 18s; }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(6%, -8%, 0) scale(1.12); } }

.hero__in { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.12fr .88fr; gap: 64px; } }

.hero__title { margin-top: 22px; font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 8.2vw, 104px); line-height: .98; letter-spacing: -.035em; font-variation-settings: 'opsz' 144; }
.hero__title .split, .hero__title em { display: block; }
.hero__title em { color: var(--mint); font-style: italic; }
.hero__kicker { display: block; margin-bottom: 18px; font-family: var(--f-body); font-size: clamp(14px, 1.5vw, 16px); font-weight: 600; letter-spacing: 0; line-height: 1.4; color: rgba(255,255,255,.72); }
.hero__lead { margin-top: 26px; max-width: 54ch; font-size: clamp(16.5px, 1.6vw, 19px); color: rgba(255,255,255,.76); }
.hero__lead strong { color: var(--white); font-weight: 600; }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ticks { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: rgba(255,255,255,.72); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks svg { width: 16px; height: 16px; color: var(--mint); stroke-width: 2.4; }
@media (max-width: 560px) { .hero__ctas .btn { width: 100%; } }

/* Palabras del titular (main.js las separa) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }
.is-split.in .w > span { transform: none; }

.hero__visual { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.ph--hero { aspect-ratio: 4 / 5; border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px); font-size: 14px; line-height: 1.25;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 700; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint-2); color: var(--green); flex: none; }
.float-card__ico--aqua { background: #D4F1F4; color: #136B78; }
.float-card__ico svg { width: 22px; height: 22px; }
.float-card__ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-2); color: var(--white); flex: none; }
.float-card__ok svg { width: 14px; height: 14px; stroke-width: 3; }
.float-card--cert { left: -6%; bottom: 14%; }
.float-card--water { right: -5%; top: 9%; animation-delay: -3s; }
@media (max-width: 560px) { .float-card--cert { left: -2%; bottom: 8%; } .float-card--water { right: -2%; top: 5%; } .float-card { font-size: 13px; padding: 10px 12px 10px 10px; } .float-card__ico { width: 34px; height: 34px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__seal { position: absolute; right: -4%; bottom: -6%; width: 118px; height: 118px; display: grid; place-items: center; color: var(--ink); }
.hero__seal > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.hero__seal text { font-family: var(--f-body); font-size: 10.4px; font-weight: 700; letter-spacing: .22em; fill: var(--orange-2); stroke: none; }
.hero__seal > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--paper); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.hero__seal > span img { width: 38px; height: auto; }
@media (max-width: 560px) { .hero__seal > span img { width: 30px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .hero__seal { width: 96px; height: 96px; right: 2%; bottom: -5%; } .hero__seal > span { width: 46px; height: 46px; } }

/* Barra de confianza */
.trust {
  position: relative; margin-top: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  border-radius: var(--r); overflow: hidden; background: var(--line-light);
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.trust li { display: flex; align-items: center; gap: 14px; padding: 20px 18px; background: rgba(10, 32, 20, .74); backdrop-filter: blur(8px); }
.trust b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.trust small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,255,255,.6); }
.trust__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: rgba(166,219,127,.12); color: var(--mint); }
.trust__ico svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
@media (min-width: 980px) { .trust { grid-template-columns: repeat(4, 1fr); } .trust li { padding: 24px 22px; } }

/* ---------- Marcadores de imagen ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--petrol-3), var(--green) 70%, #0E2A1A);
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 10px 14px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.25); border: 1px dashed rgba(255,255,255,.35);
}
.ph::before { /* icono de imagen */
  content: ''; position: absolute; left: 50%; top: 45%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 14px; border: 1.5px dashed rgba(255,255,255,.35);
  background: radial-gradient(circle at 35% 38%, rgba(255,255,255,.4) 0 5px, transparent 6px),
              linear-gradient(135deg, transparent 55%, rgba(255,255,255,.25) 55% 70%, transparent 70%);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph { isolation: isolate; }
.float-card, .hero__seal { z-index: 3; }

/* ---------- Tarjetas (luz que sigue el cursor) ---------- */
.card, [data-spot] { position: relative; }
[data-spot]::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(166, 219, 127, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 16px; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, 1fr); } }
.svc {
  display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: var(--r);
  background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(47,125,74,.25); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.svc__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(140deg, var(--mint-2), #EEF8E6); color: var(--green); transition: transform .6s var(--ease-out); }
.svc:hover .svc__ico { transform: rotate(-8deg) scale(1.06); }
.svc__ico svg { width: 28px; height: 28px; }
.svc__ico--aqua { background: linear-gradient(140deg, #CFEFF3, #EAF8FA); color: #136B78; }
.svc__ico--warm { background: linear-gradient(140deg, #F7E3C4, #FBF1E2); color: #8A5A1C; }
.svc__n { font-family: var(--f-display); font-size: 15px; color: var(--muted); }
.svc h3 { font-family: var(--f-display); font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.svc > p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.svc__list { margin: 20px 0 26px; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.svc__list li { display: flex; align-items: center; gap: 10px; }
.svc__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-2); flex: none; }
.svc__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--green-2); }
.svc__link svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.svc:hover .svc__link svg { transform: translateX(5px); }
.svc__link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); } /* tarjeta entera clicable */

/* ---------- Para quién ---------- */
.who { display: grid; gap: 16px; }
@media (min-width: 760px) { .who { grid-template-columns: repeat(3, 1fr); gap: 20px; } .who__feat { grid-column: 1 / -1; } }
.who__feat {
  display: grid; overflow: hidden; border-radius: 28px; color: var(--white);
  background: radial-gradient(90% 120% at 0% 0%, #2F7D4A 0%, transparent 60%), linear-gradient(140deg, var(--green), var(--petrol));
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .who__feat { grid-template-columns: 1.15fr .85fr; } }
.who__feat-copy { padding: clamp(28px, 4.5vw, 56px); }
.who__feat h3 { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: clamp(36px, 4.6vw, 54px); }
.who__feat h3 svg { width: 44px; height: 44px; color: var(--mint); stroke-width: 1.5; }
.who__feat p { margin-top: 16px; color: rgba(255,255,255,.78); max-width: 52ch; }
.checks { margin: 26px 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 15.5px; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; padding: 4px; border-radius: 50%; background: rgba(166,219,127,.18); color: var(--mint); stroke-width: 3; }
.ph--who { min-height: 280px; }
@media (max-width: 899px) { .ph--who { aspect-ratio: 16 / 10; min-height: 0; } .who__feat .btn { white-space: normal; text-align: left; } }
.tag { display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tag--mint { background: var(--orange); color: var(--ink); }
.who__card { padding: 28px 26px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.who__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.who__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--paper); color: var(--petrol-3); box-shadow: inset 0 0 0 1px var(--line); }
.who__ico svg { width: 26px; height: 26px; }
.who__card h3 { margin-top: 22px; font-family: var(--f-display); font-size: 23px; }
.who__card p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* ---------- Proceso ---------- */
#proceso .hero__bg, .contact .hero__bg { opacity: .7; }
.steps { position: relative; display: grid; gap: 18px; counter-reset: s; }
.steps::before, .steps::after { /* línea de progreso */
  content: ''; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; background: var(--line-light);
}
.steps::after { background: linear-gradient(var(--orange), var(--mint)); transform-origin: 0 0; transform: scaleY(var(--p, 0)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 6px 0; }
.step__n { grid-row: span 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--petrol-2); box-shadow: inset 0 0 0 1.5px var(--line-light); font-family: var(--f-display); font-size: 26px; color: var(--mint); transition: background-color .5s, color .5s, box-shadow .5s; }
.step.in .step__n { background: var(--mint); color: var(--petrol); box-shadow: 0 0 0 8px rgba(166,219,127,.12); }
.step__ico { display: none; }
.step h3 { font-family: var(--f-display); font-size: 26px; margin-top: 6px; }
.step p { margin-top: 8px; color: rgba(255,255,255,.7); font-size: 15.5px; max-width: 42ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps::before, .steps::after { left: 32px; right: 32px; top: 31px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform: scaleX(var(--p, 0)); }
  .step { grid-template-columns: 1fr; padding: 0; }
  .step__n { grid-row: auto; }
  .step h3 { margin-top: 26px; }
}

/* ---------- Por qué ---------- */
.why { display: grid; gap: 44px; }
@media (min-width: 960px) { .why { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } .why__aside { position: sticky; top: 120px; } }
.why__aside .btn { margin-top: 32px; }
.ph--why { aspect-ratio: 4 / 3; margin-top: 36px; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.why__list { display: grid; }
.why__item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--white); color: var(--green-2); box-shadow: var(--shadow); transition: background-color .4s, color .4s, transform .6s var(--ease-out); }
.why__item:hover .why__ico { background: var(--green-2); color: var(--white); transform: rotate(-6deg); }
.why__ico svg { width: 26px; height: 26px; }
.why__item h3 { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); }
.why__item p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 54ch; }

/* ---------- Testimonios ---------- */
.quotes { display: grid; gap: 16px; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1150px) { .quotes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 759px) {
  .quotes { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: center; }
}
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; margin: 0; padding: 30px 26px 26px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .6s var(--ease-out); }
.quote:hover { transform: translateY(-5px); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 19px; line-height: 1.45; letter-spacing: -.01em; }
.quote blockquote::before { content: '“'; display: block; height: 38px; font-size: 72px; line-height: 1; color: var(--green-2); opacity: .35; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote b { display: block; font-size: 15px; }
.quote small { color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: linear-gradient(140deg, var(--green-2), var(--petrol-3)); color: var(--white); font-weight: 800; font-size: 14px; letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; } .faq__aside { position: sticky; top: 120px; } }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s, background-color .4s; }
.qa[open] { box-shadow: var(--shadow), inset 0 0 0 1px rgba(47,125,74,.3); }
.qa summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa__pm { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--paper); transition: background-color .3s, transform .5s var(--ease-out); }
.qa__pm::before, .qa__pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -0.9px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease-out), background-color .3s; }
.qa__pm::after { transform: rotate(90deg); }
.qa[open] .qa__pm { background: var(--green-2); transform: rotate(180deg); }
.qa[open] .qa__pm::before, .qa[open] .qa__pm::after { background: var(--white); }
.qa[open] .qa__pm::after { transform: rotate(0); }
.qa__a { padding: 0 24px 24px; color: var(--muted); font-size: 16px; }
.qa__a strong { color: var(--ink); }
.qa[open] .qa__a { animation: qaIn .5s var(--ease-out); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contacto ---------- */
.contact__in { position: relative; display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact__in { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
@media (max-width: 999px) { /* en celular: formulario justo después del título */
  .contact__in { gap: 0; }
  .contact__info { display: contents; }
  .contact__info > * { order: 0; }
  .contact .form { order: 1; margin-top: 36px; }
  .contact__list, .map { order: 2; }
}
.contact__list { margin-top: 36px; display: grid; gap: 4px; }
.contact__list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.contact__list li > span { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(166,219,127,.1); color: var(--mint); }
.contact__list li > span svg { width: 22px; height: 22px; }
.contact__list small { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.contact__list a, .contact__list p { font-weight: 600; font-size: 17px; }
.contact__list a:hover { color: var(--mint); }
.map { margin-top: 28px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--petrol-2); box-shadow: inset 0 0 0 1px var(--line-light); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

.form { position: relative; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); scroll-margin-top: 100px; }
.form__head h3 { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 38px); }
.form__head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.form__head { margin-bottom: 26px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; /* 16px evita el zoom en iPhone */
  transition: box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23546B70' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #93A3A6; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px rgba(15,26,18,.25); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--green-2), 0 0 0 5px rgba(47,125,74,.12); }
.field__err { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--error); }
.field.has-error input, .field.has-error select { box-shadow: inset 0 0 0 2px var(--error); }
.field.has-error .field__err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green-2); }
.consent a { color: var(--green-2); text-decoration: underline; text-underline-offset: 2px; }
.consent.has-error span { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 14px; min-height: 1.4em; font-size: 14.5px; font-weight: 600; text-align: center; }
.form__status.is-error { color: var(--error); }
.form.is-sending .btn { pointer-events: none; opacity: .75; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(64px, 8vw, 96px) 0 28px; font-size: 15px; }
.footer__in { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer__in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.logo--light { color: var(--white); }
.footer__brand p { margin-top: 18px; max-width: 40ch; }
.footer__nit { font-size: 13.5px; opacity: .7; }
.footer h4 { margin-bottom: 14px; font-family: var(--f-body); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.footer nav a, .footer__in > div a { display: block; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--mint); }
.footer__credits { flex-basis: 100%; order: 3; font-size: 12px; opacity: .55; }
.footer__credits a { text-decoration: underline; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13.5px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px 0 16px; border-radius: 999px;
  background: #1FB858; color: var(--white); font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 34px -10px rgba(31,184,88,.75), 0 4px 10px rgba(0,0,0,.12);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31,184,88,.5); animation: waPulse 2.8s infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(31,184,88,.45); } 70% { box-shadow: 0 0 0 16px rgba(31,184,88,0); } 100% { box-shadow: 0 0 0 0 rgba(31,184,88,0); } }
@media (max-width: 560px) { .wa-float { width: 60px; padding: 0; justify-content: center; } .wa-float span { display: none; } }

/* ---------- Animación de entrada al hacer scroll ----------
   Solo se oculta si hay JS (clase .js en <html>). Sin JS todo se ve. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal--scale { transform: translateY(24px) scale(.96); }
.js .reveal.in { opacity: 1; transform: none; }

/* Entrada del primer pantallazo: solo CSS, no espera a nada */
.rise { animation: rise 1s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Movimiento reducido: solo se apagan los efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .hero__seal > svg, .wa-float::before, .eyebrow .dot { animation: none; }
  .float-card { animation: none; }
}

/* ---------- Páginas internas de servicio ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(120% 90% at 85% 10%, var(--petrol-3) 0%, transparent 55%), linear-gradient(160deg, var(--petrol) 0%, var(--ink) 60%, #0A2213 100%); padding: clamp(130px, 16vw, 180px) 0 clamp(64px, 8vw, 100px); }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.crumbs a:hover { color: var(--mint); }
.page-hero h1 { max-width: 16ch; font-family: var(--f-display); font-weight: 400; font-size: clamp(42px, 7vw, 84px); line-height: 1; letter-spacing: -.035em; }
.page-hero h1 em { color: var(--mint); }
.page-hero .hero__lead { max-width: 60ch; }
.page-body { display: grid; gap: 40px; }
@media (min-width: 960px) { .page-body { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; } }
.page-body h2 { font-size: clamp(30px, 4vw, 44px); }
.page-body .checks li { color: var(--ink); }
.page-body .checks svg { background: var(--mint-2); color: var(--green); }
.ph--page { aspect-ratio: 4 / 3; border-radius: var(--r); }
.cta-band { margin-top: 0; padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: var(--white); background: radial-gradient(90% 120% at 0% 0%, #2F7D4A 0%, transparent 60%), linear-gradient(140deg, var(--green), var(--petrol)); display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 42px); }
.cta-band p { margin-top: 8px; color: rgba(255,255,255,.75); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.thanks .float-card__ok { width: 72px; height: 72px; margin: 0 auto 28px; }
.thanks .float-card__ok svg { width: 34px; height: 34px; }
.thanks h1 { max-width: none; margin: 0 auto; }
.thanks .hero__lead { margin-inline: auto; }
.thanks .hero__ctas { justify-content: center; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p { color: var(--muted); max-width: 70ch; margin-top: 10px; }

/* ==========================================================================
   MEZCLA VERDE + BLANCO
   Portada, encabezados internos y contacto en fondo claro con bloques
   verdes de acento. (Va al final para que tenga prioridad.)
   ========================================================================== */

/* Cabecera sobre fondo claro */
.header { color: var(--ink); }
.burger { background: rgba(15, 26, 18, .06); }

/* Portada clara */
.hero, .page-hero {
  color: var(--ink);
  background:
    radial-gradient(60% 55% at 100% 0%, rgba(166, 219, 127, .38), transparent 62%),
    radial-gradient(45% 45% at 0% 100%, rgba(232, 146, 31, .10), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
}
.hero .hero__grid, .page-hero .hero__grid { color: rgba(29, 92, 56, .08); }
.hero .blob--a, .page-hero .blob--a { background: #CBEAB2; opacity: .55; }
.hero .blob--b, .page-hero .blob--b { background: #F7CF95; opacity: .35; }
.hero .blob--c { background: #A9D98F; opacity: .35; }
.hero .eyebrow--light, .page-hero .eyebrow--light { color: var(--green-2); }
.hero__kicker { color: var(--muted); }
.hero .hero__lead, .page-hero .hero__lead { color: #3D5144; }
.hero .hero__lead strong { color: var(--ink); }
.hero__title em, .page-hero h1 em { color: var(--green-2); }
.hero__ticks { color: var(--muted); }
.hero__ticks svg { color: var(--green-2); }
.hero .btn--ghost, .page-hero .btn--ghost {
  --fg: var(--green); background: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(29, 92, 56, .28), 0 8px 24px -14px rgba(15, 26, 18, .35);
  backdrop-filter: none;
}
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { background: var(--mint-2); }
.hero .btn--ghost svg.fill, .page-hero .btn--ghost svg.fill { color: #1FB858; }

/* Bloque verde detrás de la foto */
.hero__in { isolation: isolate; }
.hero__visual::before {
  content: ''; position: absolute; z-index: -1;
  inset: 9% -16px -7% 14%; border-radius: 36px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    radial-gradient(80% 80% at 20% 10%, var(--green-2), transparent 70%),
    linear-gradient(150deg, var(--green), var(--petrol));
  box-shadow: 0 40px 80px -40px rgba(15, 43, 29, .7);
}
@media (min-width: 980px) {
  .hero__visual::before { inset: 10% -100vw -9% 22%; border-radius: 44px 0 0 44px; }
}
.ph--hero { box-shadow: 0 40px 80px -30px rgba(15, 43, 29, .55); }

/* Barra de confianza: tarjetas verdes sobre fondo claro */
.trust { gap: 12px; background: transparent; box-shadow: none; overflow: visible; border-radius: 0; }
.trust li {
  border-radius: 18px; color: var(--white); backdrop-filter: none;
  background: linear-gradient(140deg, var(--green), var(--petrol));
  box-shadow: 0 18px 40px -22px rgba(15, 43, 29, .7);
  transition: transform .5s var(--ease-out);
}
.trust li:hover { transform: translateY(-4px); }
.trust li:nth-child(even) { background: linear-gradient(140deg, var(--green-2), var(--green)); }

/* Encabezado de páginas internas: círculo verde decorativo */
.page-hero::after {
  content: ''; position: absolute; z-index: 0; right: -140px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green-2), var(--petrol) 75%);
  box-shadow: 0 0 0 28px rgba(166, 219, 127, .18);
}
.page-hero .wrap { z-index: 1; }
.crumbs { color: var(--muted); }
.crumbs a:hover { color: var(--green-2); }
@media (max-width: 760px) { .page-hero::after { width: 220px; height: 220px; right: -110px; top: -70px; box-shadow: 0 0 0 16px rgba(166, 219, 127, .18); } }

/* Contacto: fondo blanco y formulario en tarjeta verde */
.contact { background: linear-gradient(180deg, var(--white), var(--paper)); color: var(--ink); }
.contact .blob--a { background: #CBEAB2; opacity: .4; }
.contact .blob--b { background: #F7CF95; opacity: .25; }
.contact .eyebrow--light { color: var(--green-2); }
.contact h2 em { color: var(--green-2); }
.contact .head__lead { color: var(--muted); }
.contact__list li { border-bottom-color: var(--line); }
.contact__list li > span { background: var(--mint-2); color: var(--green); }
.contact__list small { color: var(--muted); }
.contact__list a:hover { color: var(--green-2); }
.map { box-shadow: var(--shadow); }

.contact .form {
  color: var(--white);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(166, 219, 127, .22), transparent 60%),
    linear-gradient(150deg, var(--green), var(--petrol));
  box-shadow: 0 40px 90px -35px rgba(15, 43, 29, .75);
}
.contact .form__head p, .contact .field .opt { color: rgba(255, 255, 255, .7); }
.contact .consent { color: rgba(255, 255, 255, .75); }
.contact .consent a { color: var(--mint); }
.contact .field input, .contact .field select, .contact .field textarea { color: var(--ink); box-shadow: inset 0 0 0 1.5px transparent; }
.contact .field input:focus, .contact .field select:focus, .contact .field textarea:focus { box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 5px rgba(232, 146, 31, .25); }
.contact .field__err, .contact .consent.has-error span, .contact .form__status.is-error { color: #FFC3AE; }
.contact .field.has-error input, .contact .field.has-error select { box-shadow: inset 0 0 0 2px #FF8A6B; }
.contact .consent input { accent-color: var(--orange); }

/* ==========================================================================
   TIPOGRAFÍA ESTILO APPLE
   Todo en una sola familia sin remates: titulares gruesos y apretados,
   palabras destacadas en color (degradado) en lugar de cursiva.
   ========================================================================== */
body { letter-spacing: -.011em; font-feature-settings: 'kern', 'liga'; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; }
.head h2, .why h2, .faq h2, .contact h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.hero__title, .page-hero h1 { font-weight: 700; letter-spacing: -.045em; line-height: 1.02; font-variation-settings: normal; }
.hero__kicker { letter-spacing: -.01em; }

h1 em, h2 em {
  font-style: normal; font-weight: inherit; font-variation-settings: normal;
  background: linear-gradient(90deg, var(--green-2) 0%, #5FAF3C 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--green-2);
}
.section--dark h2 em { background-image: linear-gradient(90deg, var(--orange-2), var(--orange)); }
/* El titular principal se anima palabra por palabra: color sólido para que no falle el degradado */
.hero__title em { background: none; -webkit-text-fill-color: currentColor; color: var(--green-2); font-style: normal; }
.hero__title em .w > span { background: linear-gradient(90deg, var(--green-2), #5FAF3C); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.svc h3, .who__card h3, .why__item h3, .step h3 { font-weight: 600; letter-spacing: -.022em; }
.who__feat h3 { font-weight: 700; letter-spacing: -.035em; }
.svc__n, .step__n { font-weight: 600; letter-spacing: -.02em; }
.quote blockquote { font-weight: 500; font-size: 18px; letter-spacing: -.015em; line-height: 1.5; }
.quote blockquote::before { font-family: Georgia, serif; }
.form__head h3, .cta-band h2 { font-weight: 700; letter-spacing: -.03em; }
.eyebrow { letter-spacing: .08em; }
.btn { letter-spacing: -.01em; font-weight: 600; }
@media (max-width: 1079px) { .nav a { font-weight: 600; letter-spacing: -.03em; } }

/* ==========================================================================
   VERSIÓN 2: confianza, garantía, captación y más impacto
   ========================================================================== */
:root { --petrol-blue: #0D3B4A; --petrol-blue-2: #155566; --orange-ink: #B86A0B; }

.topbar svg, .tabs svg, .guarantee__core svg, .guarantee-line svg, .guarantee-card svg, .guarantee-mini svg,
.mbar svg:not(.fill), .nav__hours svg, .footer__hours svg, .leadm svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Animaciones rápidas (200–400 ms) ---------- */
.js .reveal { transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); transition-delay: var(--d, 0s); }
.split .w > span { transition: transform .4s var(--ease-out); transition-delay: calc(var(--i) * 60ms + 60ms); }
.rise { animation-duration: .4s; }
.btn { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s; }
.btn svg, .svc__link svg { transition: transform .25s var(--ease-out); }
.svc, .who__card, .quote, .trust li { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.why__ico, .svc__ico, .logo__img, .qa__pm, .step__n { transition-duration: .3s; }

/* ---------- Barra superior con horario ---------- */
.header { padding: 0 0 14px; }
.header.is-scrolled { padding: 0 0 10px; }
.header__in { padding-top: 12px; }
.header.is-scrolled .header__in { padding-top: 10px; }
.topbar { max-height: 40px; overflow: hidden; border-bottom: 1px solid var(--line); font-size: 13px; transition: max-height .3s var(--ease-out), opacity .3s, border-color .3s; }
.header.is-scrolled .topbar, body.menu-open .topbar { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.topbar__in { display: flex; align-items: center; gap: 20px; height: 36px; color: var(--muted); }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__item svg { width: 14px; height: 14px; color: var(--green-2); }
.topbar__tel:hover { color: var(--green-2); }
.topbar__right { margin-left: auto; }
@media (max-width: 759px) { .topbar__in { justify-content: center; } .topbar__tel, .topbar__right { display: none; } }
.nav__hours { display: none; }
@media (max-width: 1079px) {
  .nav__hours { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; color: rgba(255,255,255,.7); }
  .nav__hours svg { width: 18px; height: 18px; color: var(--mint); }
  .nav__hours + .nav__tel { margin-top: 10px; }
}
.hero { padding-top: clamp(150px, 18vw, 200px); }
.page-hero { padding-top: clamp(160px, 18vw, 210px); }

/* ---------- Hero con más impacto ---------- */
.hero__title { font-size: clamp(52px, 9.2vw, 122px); }
.ph--hero img { will-change: transform; }
.guarantee-line {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px; padding: 10px 16px;
  border-radius: 999px; font-size: 15px; line-height: 1.35; color: var(--ink);
  background: rgba(232, 146, 31, .1); box-shadow: inset 0 0 0 1px rgba(232, 146, 31, .35);
}
.guarantee-line svg { width: 22px; height: 22px; flex: none; color: var(--orange-ink); }
.page-hero .guarantee-line { margin-top: 24px; }

/* ---------- Tarjetas de servicio: elevación, borde verde, ícono animado ---------- */
.svc:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -24px rgba(29, 92, 56, .5), inset 0 0 0 1.5px var(--green-2), 0 0 0 5px rgba(166, 219, 127, .28);
}
.svc:hover .svc__ico { animation: icoPop .4s var(--ease-out) both; }
@keyframes icoPop { 0% { transform: scale(1); } 55% { transform: scale(1.16) rotate(-10deg); } 100% { transform: scale(1.06) rotate(-6deg); } }

/* ---------- Cifras ---------- */
.stats { position: relative; overflow: hidden; color: var(--white); padding: clamp(48px, 6vw, 76px) 0; background: linear-gradient(115deg, var(--petrol-blue) 0%, var(--green) 100%); }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 80% at 85% 20%, rgba(166, 219, 127, .22), transparent 70%); pointer-events: none; }
.stats__in { position: relative; display: grid; gap: 28px; text-align: center; }
@media (min-width: 640px) { .stats__in { grid-template-columns: repeat(3, 1fr); } .stat + .stat { border-left: 1px solid rgba(255,255,255,.14); } }
.stat__n {
  display: block; font-size: clamp(46px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  background: linear-gradient(90deg, #FFFFFF, var(--mint)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__l { display: block; margin-top: 10px; font-size: 15.5px; color: rgba(255,255,255,.78); }

/* ---------- Pestañas "Para quién" ---------- */
.tabs__list { display: none; }
.js .tabs__list {
  display: flex; gap: 6px; width: fit-content; max-width: 100%; margin-bottom: 22px; padding: 6px;
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.js .tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 12px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s;
}
.tabs__tab svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .js .tabs__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
  .tabs__tab { justify-content: center; border-radius: 14px; padding: 12px 10px; }
}
.tabs__tab:hover { color: var(--green); background: var(--mint-2); }
.tabs__tab.is-active { color: var(--white); background: linear-gradient(140deg, var(--green-2), var(--green)); box-shadow: 0 8px 20px -10px rgba(29, 92, 56, .7); }
.tabs__panel + .tabs__panel { margin-top: 16px; }
.js .tabs__panel:not(.is-active) { display: none; }
.js .tabs__panel.is-active { margin-top: 0; animation: tabIn .35s var(--ease-out); }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } }
.tabs__panel.who__feat { background: radial-gradient(90% 120% at 0% 0%, var(--green-2) 0%, transparent 60%), linear-gradient(140deg, var(--green), var(--petrol-blue)); }
.ph--who:not(.has-img) { min-height: 280px; }

/* ---------- Proceso: fondo verde → azul petróleo ---------- */
#proceso { background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-blue) 100%); }

/* ---------- Garantía ---------- */
.guarantee {
  display: grid; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 60px); border-radius: 32px; color: var(--white);
  background: radial-gradient(70% 90% at 0% 0%, rgba(166, 219, 127, .2), transparent 60%), linear-gradient(140deg, var(--green) 0%, var(--petrol-blue) 100%);
  box-shadow: 0 40px 90px -40px rgba(13, 59, 74, .8);
}
@media (min-width: 860px) { .guarantee { grid-template-columns: auto 1fr; gap: 60px; } }
.guarantee__seal { position: relative; display: grid; place-items: center; width: clamp(180px, 22vw, 240px); aspect-ratio: 1; margin: 0 auto; }
.guarantee__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 32s linear infinite; }
.guarantee__ring text { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; fill: var(--orange-2); }
.guarantee__core {
  display: grid; place-items: center; align-content: center; gap: 4px; width: 62%; aspect-ratio: 1; border-radius: 50%;
  color: var(--ink); background: radial-gradient(circle at 30% 30%, #F8C266, var(--orange) 70%);
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 22px 44px -14px rgba(0,0,0,.55);
}
.guarantee__core svg { width: 44px; height: 44px; stroke-width: 1.8; }
.guarantee__core b { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.js .guarantee__seal { opacity: 0; transform: rotate(-30deg) scale(.7); transition: opacity .3s .1s, transform .4s var(--ease-out) .1s; }
.guarantee.in .guarantee__seal { opacity: 1; transform: none; }
.guarantee__copy h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.guarantee__copy h2 em { background-image: linear-gradient(90deg, var(--orange-2), var(--orange)); }
.guarantee__text { margin-top: 18px; max-width: 56ch; font-size: clamp(16.5px, 1.6vw, 19px); color: rgba(255,255,255,.88); }
.guarantee__text strong { color: var(--white); }
.guarantee__note { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.62); }
.guarantee__copy .btn { margin-top: 26px; }

.guarantee-card {
  display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px 20px; border-radius: 18px; color: var(--white);
  background: linear-gradient(140deg, var(--green), var(--petrol-blue)); box-shadow: var(--shadow-lg);
}
.guarantee-card__seal { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; color: var(--ink); background: radial-gradient(circle at 30% 30%, #F8C266, var(--orange) 70%); }
.guarantee-card__seal svg { width: 28px; height: 28px; }
.guarantee-card p { font-size: 15.5px; color: rgba(255,255,255,.9); }
.guarantee-card b { color: var(--white); }

.guarantee-mini { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 18px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); background: var(--orange-soft); }
.guarantee-mini svg { width: 26px; height: 26px; flex: none; color: var(--orange-ink); }
.contact .guarantee-mini { color: rgba(255,255,255,.85); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.contact .guarantee-mini svg { color: var(--orange-2); }
.contact .guarantee-mini b { color: var(--white); }

/* ---------- Testimonios ---------- */
.quote small span { white-space: nowrap; }
@media (min-width: 1000px) { .quotes--3 { grid-template-columns: repeat(3, 1fr); } }
.stars { color: #F2A93B; letter-spacing: .12em; font-size: 16px; line-height: 1; }
.quote .stars { margin-bottom: -8px; }
.quote blockquote::before { display: none; }
.reviews-score { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.reviews-score .stars { font-size: 20px; }

/* ---------- Logos de clientes ---------- */
.clients { padding: 8px 0 clamp(56px, 7vw, 88px); }
.clients[hidden] { display: none; }
.clients__title { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.clients__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
@media (max-width: 639px) { .client { height: 70px; padding: 8px 10px; border-radius: 12px; } .client img { max-height: 48px; } }
@media (min-width: 640px) { .clients__row { gap: 12px; } }
@media (min-width: 1000px) { .clients__row { grid-template-columns: repeat(5, 1fr); } }
.client { display: grid; place-items: center; height: 92px; padding: 12px 16px; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: #9DA39E; font-size: 13px; font-weight: 600; transition: box-shadow .3s, transform .3s var(--ease-out); }
.client:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px rgba(47,125,74,.3); }
.client img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: opacity .3s, filter .3s; }
.client:hover img { filter: none; opacity: 1; }
@media (hover: none) { .client img { filter: none; opacity: 1; } }

/* ---------- Checklist gratis ---------- */
.leadm { display: grid; gap: 40px; }
@media (min-width: 960px) { .leadm { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.leadm h2 { margin-top: 18px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.leadm .checks li { color: var(--ink); }
.leadm .checks svg { background: var(--mint-2); color: var(--green); }
.leadm__doc { position: relative; width: 230px; margin-top: 8px; padding: 20px 20px 24px; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-lg); transform: rotate(-4deg); }
.leadm__doc-tag { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; color: var(--ink); background: var(--orange); }
.leadm__doc b { display: block; margin: 10px 0 6px; font-size: 15px; }
.leadm__doc i { position: relative; display: block; height: 12px; margin-top: 10px; }
.leadm__doc i::before { content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--green-2); }
.leadm__doc i::after { content: ''; position: absolute; left: 20px; right: 0; top: 3px; height: 6px; border-radius: 3px; background: var(--paper-2); }
.leadm__doc i:nth-child(odd)::after { right: 30%; }
.form--light { background: var(--white); box-shadow: 0 30px 70px -30px rgba(15, 43, 29, .45); }
.form--light .btn svg { width: 20px; height: 20px; }

/* ---------- Pie ---------- */
.footer__hours { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.footer__hours svg { width: 16px; height: 16px; color: var(--mint); }

/* ---------- Página de gracias ---------- */
.thanks__msg[hidden] { display: none; }
.thanks .js-download { margin-top: 22px; }

/* ---------- Barra inferior en celular ---------- */
.mbar { display: none; }
@media (max-width: 759px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -10px 30px -14px rgba(15, 26, 18, .35);
  }
  .mbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; font-size: 16px; font-weight: 700; color: var(--white); transition: transform .2s; }
  .mbar__btn:active { transform: scale(.97); }
  .mbar__btn svg { width: 20px; height: 20px; }
  .mbar__btn--call { background: linear-gradient(140deg, var(--green-2), var(--green)); }
  .mbar__btn--wa { background: #1FB858; }
  .wa-float { display: none; }
  body { padding-bottom: 76px; }
  body.menu-open .mbar { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .guarantee__ring { animation: none; }
  .js .guarantee__seal { transition: opacity .3s; transform: none; }
  .svc:hover .svc__ico { animation: none; }
  .split .w > span { transition-duration: .01s; }
}
