/* =========================================================
   EDRICS · Landing Google Ads
   Paleta y tipografía según documento DIN-2026-041
   ========================================================= */
:root {
  --navy: #0A2747;          /* tomado del logo */
  --navy-2: #123560;
  --navy-deep: #061A31;     /* pie de página */
  --silver: #A7AFB8;        /* [CONFIRMAR] */
  --green: #4D7F36;         /* barra de la “E” del logo */
  --green-light: #A9D18E;   /* verde sobre fondos oscuros */
  --green-hover: #5A9140;
  --white: #FFFFFF;
  --alt: #F4F6F9;
  --line: #DDE2E8;
  --text: #1C2B40;
  --muted: #56647A;

  --f-title: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 8px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(10, 39, 71, .06), 0 2px 8px rgba(10, 39, 71, .05);
  --shadow-md: 0 10px 30px -12px rgba(10, 39, 71, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 700; color: var(--navy); margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 7.6vw, 52px); }
h2 { font-size: clamp(28px, 4.6vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* Marcadores pendientes de validar: NO publicar */
mark.confirmar { background: #EFE6FF; color: #6B2FBF; font-size: .78em; font-weight: 600; padding: 1px 6px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-title); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.center .eyebrow::after, .eyebrow.center::after { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--green-light); letter-spacing: .08em; text-transform: none; font-size: 14px; }

.lead { font-size: 18px; color: var(--muted); }
.lead--strong { color: var(--navy); font-weight: 600; }

/* ---------- Botones: un solo estilo principal ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 16px/1.2 var(--f-body); text-decoration: none; text-align: center;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
/* Brillo sutil que cruza el botón al pasar el cursor */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(77, 127, 54, .7); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.btn--primary:hover { --bg: var(--green-hover); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; box-shadow: 0 10px 22px -12px rgba(10,39,71,.6); }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--line); width: 100%; }
.btn--ghost .ico { color: var(--green); }
.btn--ghost:hover { --bg: var(--green); border-color: var(--green); box-shadow: 0 10px 22px -12px rgba(77,127,54,.7); }
.btn--ghost:hover { --fg: #fff; }
.btn--ghost:hover .ico { color: #fff; }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.btn--navy:hover { --bg: var(--navy-2); box-shadow: 0 10px 22px -12px rgba(10,39,71,.7); }

/* ---------- 0 · Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.topbar.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px -12px rgba(10,39,71,.35); }
.topbar__inner { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo-text { font: 700 24px/1 var(--f-title); letter-spacing: .12em; color: var(--silver); }
.logo-e { color: var(--navy); position: relative; }
.logo-e::after { content: ""; position: absolute; left: 2px; right: 3px; top: 48%; height: 3px; background: var(--green); }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__hours { display: none; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.topbar__hours .ico { color: var(--silver); }
.only-desktop { display: none; }

/* ---------- 1 · Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 0%, #13305A 0%, var(--navy) 55%) var(--navy);
  color: #E6EBF1;
  padding: 28px 0 44px;
}
.hero__glow {
  position: absolute; width: 720px; height: 720px; right: -240px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(77,127,54,.22), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; pointer-events: none;
}
.hero::before { /* retícula muy tenue, evoca precisión técnica */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(167,175,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(167,175,184,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
@keyframes drift { to { transform: translate(-120px, 90px) scale(1.1); } }
.hero__grid { position: relative; display: grid; gap: 32px; }
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__sub { font-size: 17px; color: #C9D2DD; margin-bottom: 16px; }
.checks { display: grid; gap: 8px; margin-bottom: 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: #E6EBF1; }
.checks .ico { color: var(--green-light); margin-top: 3px; width: 20px; height: 20px; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.offer-pill {
  display: inline-block; margin: 0;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: #D5EBC6; background: rgba(77,127,54,.22); border: 1px solid rgba(169,209,142,.45);
  padding: 5px 12px; border-radius: 999px;
}
.microcopy { font-size: 14px; color: #A9B6C6; margin: 0; max-width: 460px; }
.hero__media { position: relative; }

/* Fotos propias: placeholder visible hasta colocar el archivo */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #1A355C, #0E2544); aspect-ratio: 4 / 3; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: saturate(.85) hue-rotate(-4deg); transition: transform 1.2s var(--ease-out); }
.photo:hover img { transform: scale(1.04); }
.photo__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--silver); font-size: 14px; font-weight: 500; text-align: center; padding: 16px; }
.photo__ph .ico { width: 28px; height: 28px; opacity: .8; }
.photo__ph small { font-size: 12px; opacity: .6; }
.photo--hero { aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.photo--duo img { filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
.photo--duo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(160deg, rgba(77,127,54,.28), rgba(10,39,71,.55)); mix-blend-mode: multiply; pointer-events: none; }
.hero__frame { display: none; }

/* Franja de confianza */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; }
.trust__item { padding: 22px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__item:nth-child(2n) { border-right: 0; }
.trust__item:nth-child(n+3) { border-bottom: 0; }
.trust__item p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.trust__num { font: 700 32px/1.1 var(--f-title) !important; color: var(--navy) !important; margin-bottom: 6px !important; font-variant-numeric: tabular-nums; }
.trust__num--word { font-size: 18px !important; padding-top: 7px; min-height: 42px; }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--alt); }
.anchor-title { font-size: clamp(34px, 6.4vw, 56px); margin-bottom: 28px; }
.anchor-title span { color: var(--green); display: inline-block; }
.subhead { font-size: 22px; margin: 56px 0 28px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CCD4DE; }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--alt); color: var(--navy); margin-bottom: 18px; transition: background-color .35s, color .35s; }
.icon-badge svg { width: 28px; height: 28px; }
.card:hover .icon-badge { background: var(--navy); color: #fff; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 16px; }

/* 2 · Beneficios */
.benefits { display: grid; gap: 18px; margin-bottom: 40px; }

/* 3 · Servicios */
.services { display: grid; gap: 18px; margin-top: 44px; }
.service { display: flex; flex-direction: column; }
.service h3 { margin-bottom: 10px; }
.service__num { font: 700 13px/1 var(--f-title) !important; letter-spacing: .14em; color: var(--green) !important; margin-bottom: 8px !important; }
.ideal { font-size: 15px !important; padding: 14px 0 0; border-top: 1px dashed var(--line); margin-top: auto; margin-bottom: 20px !important; }
.ideal strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.service > p:not(.ideal):not(.service__num) { margin-bottom: 18px; }
.service--featured { padding: 0; overflow: hidden; }
.service--featured .photo { border-radius: 0; aspect-ratio: 16 / 9; }
.service__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.service__body > p:not(.ideal):not(.service__num) { margin-bottom: 18px; }
.service--featured .btn { width: 100%; }

/* 4 · Proceso */
.timeline { display: grid; gap: 0; margin: 48px 0 32px; position: relative; counter-reset: s; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.timeline::after { background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease-out) .2s; }
.timeline.is-in::after { transform: scaleY(1); }
.timeline__step { position: relative; padding: 0 0 30px 80px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__num {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 56px; height: 56px; display: grid; place-items: center;
  font: 700 26px/1 var(--f-title); color: var(--green);
  background: #fff; border: 2px solid var(--green); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--alt);
}
.timeline__step h3 { font-size: 18px; margin: 14px 0 6px; }
.timeline__step p { color: var(--muted); font-size: 16px; margin: 0; }
.coverage { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 36px; }
.coverage p { margin: 0; font-size: 16px; color: var(--muted); }
.coverage__ico { color: var(--navy); width: 26px; height: 26px; margin-top: 1px; }

/* 5 · Respaldo */
.about { display: grid; gap: 32px; align-items: center; }
.photo--about { aspect-ratio: 5 / 6; max-width: 520px; }
.creds { display: grid; gap: 12px; margin-top: 8px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.creds li:last-child { border-bottom: 0; }
.creds .ico { color: var(--green); margin-top: 3px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 56px 0 32px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figures__item { background: #fff; padding: 24px 16px; text-align: center; }
.figures__item p { margin: 0; color: var(--muted); font-size: 14px; }
.figures__num { font: 700 36px/1.1 var(--f-title) !important; color: var(--navy) !important; margin-bottom: 4px !important; font-variant-numeric: tabular-nums; }
.figures__num--sm { font-size: 18px !important; min-height: 40px; display: grid; place-items: center; }
.gallery { display: grid; gap: 14px; }
.gallery .photo { aspect-ratio: 3 / 2; }

/* 6 · FAQ (acordeón) */
.section--faq { background: #fff; }
#respaldo { padding-bottom: 0; }
.section--faq { padding-top: 64px; }
.section--faq > .container { position: relative; padding-top: 64px; }
.section--faq > .container::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.faq { margin-top: 32px; border-top: 1px solid #D5DAE0; }
.faq__item { border-bottom: 1px solid #D5DAE0; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font: 600 17px/1.4 var(--f-title); color: var(--navy);
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__item summary .ico { width: 22px; height: 22px; color: var(--green); transition: transform .35s var(--ease); }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 4px 22px; color: var(--muted); font-size: 16px; max-width: 680px; }
.faq__item.is-closing .faq__a, .faq__item.is-opening .faq__a { grid-template-rows: 0fr; }

/* 7 · Cierre */
.closing { position: relative; overflow: hidden; background: var(--navy); color: #E6EBF1; padding: 72px 0 96px; }
.closing__lines { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(167,175,184,.05) 46px 47px); }
.closing__grid { position: relative; display: grid; gap: 40px; }
.closing h2 { color: #fff; }
.closing .lead { color: #C9D2DD; }
.offer-pill--block { display: block; border-radius: var(--radius); padding: 12px 16px; font-size: 15px; margin-bottom: 14px; }
.capacity { font-size: 14px; color: #A9B6C6; margin-bottom: 24px; }
.form-card { background: #fff; color: var(--text); border-radius: 12px; padding: 28px 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.form-card__sep { font: 700 19px/1.3 var(--f-title); color: var(--navy); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field label > span[aria-hidden] { color: var(--green); margin-left: 2px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 16px/1.4 var(--f-body); color: var(--text);
  background: #fff; border: 1.5px solid #CBD3DD; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath fill='none' stroke='%230B1F3A' stroke-width='1.8' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,39,71,.12); }
.field__err { display: none; margin: 6px 0 0; font-size: 13px; color: #B3261E; }
.field.is-invalid input, .field.is-invalid select { border-color: #B3261E; }
.field.is-invalid .field__err { display: block; animation: nudge .3s var(--ease); }
.field.is-valid input, .field.is-valid select { border-color: var(--green); }
@keyframes nudge { 0% { transform: translateY(-4px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.field--check { margin-top: 4px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; cursor: pointer; }
.check input { width: 22px !important; height: 22px; min-height: 0 !important; padding: 0 !important; margin: 1px 0 0; flex: none; border-radius: 4px !important; position: relative; cursor: pointer; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check a { color: var(--navy); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B3261E; font-size: 14px; }

/* Pie */
.footer { background: var(--navy-deep); color: var(--silver); padding: 56px 0 110px; font-size: 15px; }
.footer__grid { display: grid; gap: 28px; }
.footer__brand { font: 700 17px/1.4 var(--f-title); color: #fff; margin-bottom: 6px; }
.footer__slogan { margin-bottom: 18px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { color: var(--silver); display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(167,175,184,.25); border-radius: 50%; transition: color .25s, border-color .25s, transform .25s var(--ease); }
.footer__social a:hover { color: #fff; border-color: var(--green); transform: translateY(-2px); }
.footer__social svg { width: 24px; height: 24px; }
.footer__contact p { margin-bottom: 8px; }
.footer a { color: var(--silver); text-underline-offset: 3px; }
.footer a:hover { color: #fff; }
.footer__small { font-size: 13px; opacity: .8; }
.footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(167,175,184,.15); font-size: 13px; }

/* WhatsApp: flotante (desktop) / barra (móvil) */
.wa-float { display: none; }
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--green); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 -8px 24px -12px rgba(10,39,71,.45);
  transform: translateY(0); transition: transform .4s var(--ease);
}
.wa-bar.is-hidden { transform: translateY(110%); }

/* =========================================================
   Animaciones de entrada (sobrias)
   ========================================================= */
.load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 110ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* El recorte va en el contenido, no en la figura: si la figura queda 100% recortada,
   IntersectionObserver nunca la detecta y la foto no aparece. */
.js .photo.reveal { transform: none; transition: opacity .6s var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms); }
.js .photo.reveal > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out), transform 1.6s var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms); }
.js .photo.reveal.is-in > * { clip-path: inset(0 0 0 0); }

/* =========================================================
   Responsive (mobile first → 360 px base)
   ========================================================= */
@media (max-width: 767px) {
  .hero { padding-top: 20px; }
  .hero .eyebrow--light { font-size: 13px; margin-bottom: 10px; }
  .hero .eyebrow--light::before { display: none; }
  .hero h1 { font-size: 32px; margin-bottom: 10px; }
  .hero__sub { font-size: 16px; line-height: 1.5; margin-bottom: 12px; }
  .checks { gap: 6px; margin-bottom: 16px; }
  .checks li { font-size: 15px; }
  .checks .hide-xs { display: none; }   /* CTA sin scroll a 360 × 740: se recortan viñetas a 2 */
  .hero__cta { gap: 10px; }
}
@media (min-width: 640px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .service--featured { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .figures { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  :root { --topbar-h: 72px; }
  body { font-size: 18px; }
  .topbar__hours { display: inline-flex; }
  .only-desktop { display: inline; }
  .only-mobile { display: none; }
  .hero { padding: 64px 0 80px; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; padding: 30px 24px; }
  .trust__item:last-child { border-right: 0 !important; }
  .trust__num { font-size: 40px !important; }
  .section { padding: 104px 0; }
  .card { padding: 32px 30px; }
  .closing { padding: 104px 0; }
  .form-card { padding: 36px 34px; }
  .footer { padding-bottom: 56px; }
  .footer__grid { grid-template-columns: 1fr 1.2fr; }
  .wa-bar { display: none; }
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 60;
    width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff;
    box-shadow: 0 12px 28px -10px rgba(10,39,71,.55);
    opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .25s;
  }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float:hover { background: var(--green-hover); transform: translateY(-3px); }
  .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ring 3.2s var(--ease) infinite; }
  @keyframes ring { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
}
@media (min-width: 1000px) {
  h1 { font-size: 50px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
  .hero__sub { font-size: 18px; }
  .photo--hero { aspect-ratio: 5 / 6; }
  .hero__frame { display: block; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid rgba(167,175,184,.3); border-radius: var(--radius); z-index: -1; }
  .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service--featured { grid-column: span 4; display: grid; grid-template-columns: 1fr 1fr; }
  .service--featured .photo { aspect-ratio: auto; height: 100%; min-height: 100%; }
  /* polígrafo destacado (2/3) + riesgos en la primera fila; tres tarjetas en la segunda */
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; }
  .timeline::before, .timeline::after { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .timeline::after { transform: scaleX(0); transform-origin: left; }
  .timeline.is-in::after { transform: scaleX(1); }
  .timeline__step { padding: 0; }
  .timeline__num { position: relative; width: 56px; height: 56px; }
  .timeline__step h3 { margin-top: 22px; }
  .coverage { max-width: 900px; margin-left: auto; margin-right: auto; }
  .about { grid-template-columns: .9fr 1.1fr; gap: 72px; }
  .closing__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .load, .js .reveal, .js .photo.reveal > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* =========================================================
   Efectos adicionales
   ========================================================= */

/* Barra de progreso de lectura bajo la barra superior */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-light)); transform-origin: left; transform: scaleX(0); }

/* Logo del pie sobre tarjeta blanca (el archivo trae fondo blanco) */
.footer__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 18px; transition: transform .35s var(--ease); }
.footer__logo img { width: 120px; height: auto; }
.footer__logo:hover { transform: translateY(-3px); }

/* Hero: escudo de marca dibujado con trazo */
.hero__shield { position: absolute; right: -60px; bottom: -80px; width: 460px; height: auto; pointer-events: none; opacity: .5; }
.hero__shield path { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw-shield 2.8s var(--ease-out) .5s forwards; }
.hero__shield .shield-l { stroke: rgba(167, 175, 184, .35); }
.hero__shield .shield-r { stroke: rgba(169, 209, 142, .35); animation-delay: .8s; }
.hero__shield .shield-in { stroke: rgba(167, 175, 184, .16); stroke-dasharray: 640; stroke-dashoffset: 640; animation-delay: 1.3s; }
@keyframes draw-shield { to { stroke-dashoffset: 0; } }
@media (min-width: 1000px) { .hero__shield { right: auto; left: 38%; bottom: -120px; width: 520px; opacity: .45; } }

/* H1 palabra por palabra con máscara */
.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); animation: word-up .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 55ms + 250ms); }
.js .split.load { opacity: 1; transform: none; animation: none; }
@keyframes word-up { to { transform: none; } }

/* Hero: inclinación 3D sutil de la foto con el cursor */
.hero__media { perspective: 1200px; }
.hero__media .photo, .hero__frame { transition: transform .6s var(--ease-out); will-change: transform; }

/* Tarjetas: luz que sigue al cursor */
.card { position: relative; }
.card::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, 50%), rgba(77, 127, 54, .09), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card.is-tilting { transition: box-shadow .35s var(--ease), border-color .35s; }

/* Título ancla: subrayado que se dibuja */
.anchor-title span { position: relative; }
.anchor-title span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) .6s;
}
.anchor-title.is-in span::after { transform: scaleX(1); }

/* Eyebrow: las líneas crecen al aparecer */
.js .eyebrow.reveal::before, .js .eyebrow.reveal::after { transform: scaleX(0); transition: transform .8s var(--ease-out) .25s; }
.js .eyebrow.reveal::before { transform-origin: right; }
.js .eyebrow.reveal::after { transform-origin: left; }
.js .eyebrow.reveal.is-in::before, .js .eyebrow.reveal.is-in::after { transform: scaleX(1); }

/* Proceso: los números se encienden en secuencia */
.timeline__num { transition: background-color .5s, color .5s, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.js .timeline__step .timeline__num { transform: scale(.6); }
.js .timeline__step.is-in .timeline__num { transform: scale(1); transition-delay: calc(var(--d, 0) * 250ms + 200ms); }
.timeline.is-in .timeline__step.is-in .timeline__num { background: var(--green); color: #fff; transition-delay: calc(var(--d, 0) * 320ms + 500ms); }

/* Franja de confianza: destello que la recorre una vez */
.trust { position: relative; overflow: hidden; }
.trust::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(77, 127, 54, .08), transparent);
}
.trust.is-in::after { animation: sweep 1.8s var(--ease) .3s; }
@keyframes sweep { to { left: 110%; } }

/* Fotos: zoom de entrada al revelarse */
.js .photo.reveal img { transform: scale(1.15); transition: clip-path 1.1s var(--ease-out), transform 1.6s var(--ease-out); }
.js .photo.reveal.is-in img { transform: scale(1); }

/* Cierre: resplandor que sigue al cursor */
.closing__glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  left: var(--gx, 75%); top: var(--gy, 40%); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(77, 127, 54, .22), transparent 70%);
  transition: left .8s var(--ease-out), top .8s var(--ease-out);
}

/* Botones magnéticos: el desplazamiento lo pone JS */
.btn[data-magnetic] { transition: transform .35s var(--ease-out), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s; }

@media (prefers-reduced-motion: reduce) {
  .hero__shield path { stroke-dashoffset: 0 !important; }
  .js .split .w > span { transform: none !important; }
  .js .photo.reveal img, .js .timeline__step .timeline__num { transform: none !important; }
  .anchor-title span::after, .js .eyebrow.reveal::before, .js .eyebrow.reveal::after { transform: scaleX(1) !important; }
  .progress { display: none; }
}

/* Fotos colocadas */
.photo--hero img { object-position: 50% 60%; }
.photo--service img { object-position: 35% 40%; }
.photo--illus { background: var(--alt); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.photo--illus img { object-fit: contain; filter: none; }
.gallery:empty, .gallery:not(:has(figure)) { display: none; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.card.service--featured { padding: 0; }

/* =========================================================
   “Por qué evaluar”: historia gráfica en 3 pasos
   ========================================================= */
.why { display: grid; gap: 18px; margin-top: 12px; }
.why__col { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; box-shadow: var(--shadow-sm); }
.why__step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 12px/1 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.why__step > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; letter-spacing: 0; }
.why__step--inline { display: flex; margin-bottom: 6px; color: var(--green-light); }
.why__text { font: 600 19px/1.4 var(--f-title); color: var(--navy); margin-bottom: 18px; }
.why__arrow { display: grid; place-items: center; color: var(--green); }
.why__arrow svg { width: 44px; transform: rotate(90deg); animation: nudge-arrow 2.4s var(--ease) infinite; }
@keyframes nudge-arrow { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }

/* Paso 1: fichas de escenarios */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; min-height: 112px;
  background: var(--alt); border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--text);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s, box-shadow .35s;
}
.chip__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--navy); transition: background-color .35s, color .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.chip__ico svg { width: 24px; height: 24px; }
.chip:hover { transform: translateY(-4px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-md); }
.chip:hover .chip__ico { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.08); }
.js .why__col.reveal .chip { opacity: 0; transform: translateY(14px) scale(.96); }
.js .why__col.reveal.is-in .chip { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 110ms + 300ms); }
.js .why__col.reveal.is-in .chip:hover { transform: translateY(-4px); transition-delay: 0s; }
.chip:nth-child(1) { --i: 0; } .chip:nth-child(2) { --i: 1; } .chip:nth-child(3) { --i: 2; } .chip:nth-child(4) { --i: 3; }

/* Paso 2: costos que se van destacando */
.costs { display: grid; gap: 8px; }
.cost {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; min-height: 60px; text-align: left; cursor: pointer;
  font: 500 15px/1.35 var(--f-body); color: var(--muted);
  background: var(--alt); border: 1px solid transparent; border-radius: 10px;
  transition: background-color .4s, color .4s, border-color .4s, transform .4s var(--ease), box-shadow .4s;
}
.cost__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--navy); transition: background-color .4s, color .4s; }
.cost__ico svg { width: 22px; height: 22px; }
.cost::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.cost.is-active { background: #fff; color: var(--navy); font-weight: 600; border-color: var(--line); transform: translateX(6px); box-shadow: var(--shadow-md); }
.cost.is-active .cost__ico { background: var(--navy); color: #fff; }
.costs.is-playing .cost.is-active::after { animation: cost-timer 2.6s linear forwards; }
@keyframes cost-timer { to { transform: scaleX(1); } }
.cost:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

/* Dato: 5% en una cuadrícula de 100 puntos */
.stat { display: grid; gap: 22px; align-items: center; margin-top: 18px; padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat__figure { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center; }
.stat__num { margin: 0; font: 700 64px/1 var(--f-title); color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; max-width: 320px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: #DCE2EA; transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background-color .5s; transition-delay: calc(var(--n) * 7ms); }
.stat.is-in .dots i { transform: scale(1); }
.stat.is-in .dots i.is-lost { background: var(--green); transition-delay: calc(var(--n) * 7ms), calc(900ms + var(--k) * 180ms); }
.dots i.is-lost:hover, .dots i:hover { transform: scale(1.5); transition-delay: 0s; }
.stat__legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.stat__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.stat__text { margin: 0; font-size: 16px; color: var(--muted); }

/* Paso 3: conclusión */
.verdict { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 24px 20px; background: var(--navy); border-radius: 14px; color: #fff; }
.verdict::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(169, 209, 142, .16) 50%, transparent 65%); transform: translateX(-100%); }
.verdict.is-in::before { animation: verdict-sweep 1.6s var(--ease) .5s; }
@keyframes verdict-sweep { to { transform: translateX(100%); } }
.verdict p { position: relative; margin: 0; font: 700 clamp(19px, 2.6vw, 26px)/1.3 var(--f-title); }
.verdict__ico { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(169, 209, 142, .16); color: var(--green-light); }
.verdict__ico svg { width: 32px; height: 32px; }
#beneficios .subhead { margin-top: 64px; }

@media (min-width: 900px) {
  .why { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; margin-top: 24px; }
  .why__col { padding: 32px 30px; }
  .why__arrow svg { transform: none; animation-name: nudge-arrow-x; }
  @keyframes nudge-arrow-x { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
  .stat { grid-template-columns: auto 1fr; gap: 40px; padding: 32px 36px; }
  .stat__num { font-size: 84px; }
  .dots { width: 320px; }
  .stat__text { font-size: 18px; }
  .verdict { padding: 30px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .why__col.reveal .chip, .dots i { opacity: 1 !important; transform: none !important; }
  .cost::after { display: none; }
}
.why { margin-top: 28px; }
@media (min-width: 900px) { .why { margin-top: 44px; } }
