/* Clean Control Zihuatanejo — "Plano de Estaciones" */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #edf0e8;
  --paper-2: #e1e7dc;
  --paper-3: #d3dccb;
  --ink: #17212b;
  --ink-soft: #3b4856;
  --blue: #0b4c7a;
  --blue-deep: #083a5d;
  --green: #2f8f3e;
  --green-ink: #1d6a2a;
  --red: #b43424;
  --white: #ffffff;
  --foot-text: #cfe3f1;
  --placeholder: #5b6772;
  --sheen: rgba(255, 255, 255, 0.22);
  --line: rgba(11, 76, 122, 0.38);
  --line-soft: rgba(11, 76, 122, 0.16);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.58;
}

img, video, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }

::selection { background: var(--blue); color: var(--paper); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--blue) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--blue); border: 3px solid var(--paper-2); border-radius: 3px; }
input, select, textarea { caret-color: var(--blue); accent-color: var(--blue); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  background: var(--blue);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus, .skip-link:hover { top: 12px; color: var(--paper); }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 88%; }
p { margin: 0; }
.lead { font-size: 1.2rem; max-width: 52ch; color: var(--ink-soft); }
.measure { max-width: 66ch; }

/* Plano labels: small caps lettering used inside drawings, tables and title blocks */
.tag {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- Header (title-block strip) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--blue);
  box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--blue);
}
.header-in {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: block; flex: none; }
.brand img { width: 168px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.header-cta { margin-left: 8px; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--blue);
  background: var(--paper);
  color: var(--blue);
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }

/* ---------- Buttons (stamp-like) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--blue);
  color: var(--paper);
  border: 0;
  border-radius: 3px;
  outline: 1.5px solid var(--blue);
  outline-offset: 3px;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), outline-offset 0.2s var(--ease);
}
.btn:hover { background: var(--green-ink); outline-color: var(--green-ink); outline-offset: 5px; color: var(--paper); }
a.btn:hover, a.btn.ghost:hover { color: var(--paper); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 0.98rem; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: var(--paper); outline-color: var(--blue); }
.btn svg { width: 20px; height: 20px; flex: none; }

.link-arrow {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  grid-template-areas: "copy fig" "tb fig";
  grid-template-rows: auto 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.hero-copy { grid-area: copy; padding-top: clamp(0px, 2vw, 28px); }
.plano-fig { grid-area: fig; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-phone {
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.hero-phone small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.82rem; letter-spacing: 0; color: var(--ink-soft); }

/* title block: credentials as cajetín cells */
.title-block {
  grid-area: tb;
  align-self: start;
  margin-top: 0;
  border: 1.5px solid var(--blue);
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 0.92rem;
  background: rgba(237, 240, 232, 0.8);
}
.title-block div { padding: 10px 14px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.title-block div:nth-child(odd) { border-right: 1px solid var(--line); }
.title-block div:nth-last-child(-n + 2) { border-bottom: 0; }
.title-block .tag { display: block; margin-bottom: 2px; font-size: 0.72rem; }

/* plano figure */
.plano-fig { position: relative; margin: 0; }
.plano-stage { position: relative; border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.9); }
.plano-svg { width: 100%; height: auto; }
.plano-svg text { font-family: var(--display); font-stretch: 78%; font-weight: 700; letter-spacing: 0.06em; fill: var(--blue); }
.plano-svg .wall { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: miter; }
.plano-svg .thin { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.plano-svg .fine { fill: none; stroke: var(--blue); stroke-width: 1; opacity: 0.7; }
.plano-svg .dash { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 7 6; }
.plano-svg .zone-label { font-size: 15px; }
.plano-svg .note { font-size: 12px; opacity: 0.85; font-weight: 600; }
.plano-svg .plant { fill: rgba(47, 143, 62, 0.16); stroke: var(--green-ink); stroke-width: 1.3; }
.plano-svg .water { fill: rgba(11, 76, 122, 0.08); stroke: var(--blue); stroke-width: 1.3; }
.plano-svg .hallazgo { stroke: var(--red); stroke-width: 3; stroke-linecap: round; transition: opacity 0.25s; }

.pin {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--paper);
  color: var(--blue);
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}
.pin:hover { transform: scale(1.1); background: var(--white); }
.pin[aria-pressed="true"] { background: var(--blue); color: var(--paper); transform: scale(1.12); }
.pin[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
}
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.leader path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.leader circle { fill: var(--blue); }

.cajetin {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.5fr) minmax(0, 1fr);
  border-top: 1.5px solid var(--blue);
  background: var(--paper);
}
.cajetin > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.cajetin > div:last-child { border-right: 0; }
.cj-num {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--blue);
  background: var(--paper-2);
}
.cj-main h2 { margin: 2px 0 6px; font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 88%; }
.cj-main p { font-size: 0.98rem; }
.cj-side { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; font-size: 0.95rem; }
.cj-side .tag { display: block; }
.cj-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.plano-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* pin entrance — the one authored moment */
@media (prefers-reduced-motion: no-preference) {
  .js .pin { animation: stamp 0.6s var(--ease) both; animation-delay: calc(0.25s + var(--i) * 0.12s); }
  @keyframes stamp {
    from { opacity: 0; transform: scale(1.9) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
  }
  .js .pin[aria-pressed="true"] { animation-name: stamp-on; }
  @keyframes stamp-on {
    from { opacity: 0; transform: scale(1.9) rotate(-8deg); }
    to { opacity: 1; transform: scale(1.12) rotate(0); }
  }
  .leader path { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 0.6s var(--ease) 0.05s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) { .leader path { stroke-dasharray: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--blue); box-shadow: inset 0 4px 0 -3px var(--paper), inset 0 5px 0 -3px var(--blue); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { max-width: 56ch; }
.section.alt { background: rgba(211, 220, 203, 0.5); }

/* bitácora table */
.bitacora { width: 100%; border-collapse: collapse; border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.92); }
.bitacora th {
  text-align: left;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--blue);
  padding: 12px 16px;
}
.bitacora td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 0.98rem; }
.bitacora tr:hover td { background: rgba(11, 76, 122, 0.05); }
.bitacora .est { width: 76px; }
.bitacora .est a, .est-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--blue);
}
.bitacora .est a:hover { background: var(--blue); color: var(--paper); }
.bitacora .est-none { color: var(--ink-soft); padding-left: 12px; }
.bitacora .plaga { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.bitacora .plaga a { color: var(--ink); text-decoration: none; }
.bitacora .plaga a:hover { color: var(--blue); text-decoration: underline; }

/* split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.rev .split-media { order: 2; }
.frame { position: relative; border: 1.5px solid var(--blue); padding: 10px; background: var(--paper); }
.frame img { width: 100%; height: auto; }
.frame figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; }

/* leyenda (method legend) */
.leyenda { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1.5px solid var(--blue); }
.leyenda li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.leyenda svg { width: 44px; height: 44px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.leyenda h3 { font-size: 1.25rem; margin-bottom: 2px; }
.leyenda p { font-size: 0.98rem; color: var(--ink-soft); }

/* annotated photo (leader-line callouts) */
.anotada { position: relative; }
.anotada img { width: 100%; height: auto; }
.callout {
  position: absolute;
  max-width: 220px;
  font-size: 0.86rem;
  line-height: 1.35;
  background: var(--paper);
  border: 1.5px solid var(--blue);
  padding: 8px 10px;
  z-index: 2;
}
.callout .tag { display: block; font-size: 0.7rem; }
.anotada svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.anotada svg.lines path { stroke: var(--paper); stroke-width: 3; fill: none; }
.anotada svg.lines path.core { stroke: var(--blue); stroke-width: 1.6; }
.anotada svg.lines circle { fill: var(--paper); stroke: var(--blue); stroke-width: 2; }

/* garantia */
.garantia { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sello { width: 100%; max-width: 320px; margin-inline: auto; transform: rotate(-6deg); }
.sello text { font-family: var(--display); font-stretch: 78%; font-weight: 800; }
.docs { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1.5px solid var(--blue); }
.docs li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.docs strong { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.1rem; }
.fine-print { margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); }

/* videos */
.registro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.registro figure { margin: 0; border: 1.5px solid var(--blue); background: var(--paper); }
.registro video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
.registro figcaption { padding: 10px 12px; font-size: 0.9rem; border-top: 1px solid var(--line); line-height: 1.35; }
.registro figcaption b { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.05rem; }

/* reseñas */
.recom { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.92); }
.recom li { padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.recom li:nth-child(3n) { border-right: 0; }
.recom li:nth-last-child(-n + 3) { border-bottom: 0; }
.recom q { quotes: "“" "”"; font-size: 1.05rem; line-height: 1.5; }
.recom cite { font-style: normal; margin-top: auto; font-size: 0.9rem; color: var(--ink-soft); }
.recom cite b { font-family: var(--display); font-stretch: 85%; font-weight: 800; color: var(--ink); font-size: 1rem; }
.rating-line { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.95rem; }
.rating-line strong { font-family: var(--display); font-stretch: 80%; font-weight: 800; font-size: 1.3rem; color: var(--blue); }

/* cobertura */
.cobertura { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.zona-svg { width: 100%; max-width: 480px; margin-inline: auto; }
.zona-svg text { font-family: var(--display); font-stretch: 78%; font-weight: 700; letter-spacing: 0.08em; fill: var(--blue); }

/* cotizador */
.hoja { border: 1.5px solid var(--blue); background: var(--paper); position: relative; }
.hoja-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--blue); color: var(--paper); font-family: var(--display); font-stretch: 78%; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9rem; }
.hoja form { padding: clamp(18px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-stretch: 78%; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--blue); }
.field input, .field select, .field textarea {
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid var(--blue);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 2px 2px 0 0;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.form-foot p { font-size: 0.88rem; color: var(--ink-soft); max-width: 46ch; }
.form-error { grid-column: 1 / -1; color: var(--red); font-weight: 600; margin: 0; }

/* page headers (interior pages) */
.page-head { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); max-width: 18ch; margin-bottom: 18px; }
.crumbs { font-size: 0.9rem; margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }

/* plagas page */
.plagas-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.plagas-index { position: sticky; top: calc(var(--header-h) + 20px); border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.92); }
.plagas-index h2 { font-size: 0.82rem; font-family: var(--display); font-stretch: 75%; letter-spacing: 0.1em; text-transform: uppercase; background: var(--blue); color: var(--paper); padding: 10px 14px; font-weight: 700; }
.plagas-index ol { list-style: none; margin: 0; padding: 0; }
.plagas-index a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.plagas-index a:hover { background: rgba(11, 76, 122, 0.08); color: var(--blue); }
.plagas-index .est-num { width: 26px; height: 26px; font-size: 0.8rem; border-width: 1.5px; flex: none; }
.ficha { padding: 0 0 clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.ficha:last-child { border-bottom: 0; margin-bottom: 0; }
.ficha-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ficha-head .est-num { width: 52px; height: 52px; font-size: 1.5rem; flex: none; }
.ficha dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 20px 0 0; border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.92); }
.ficha dt, .ficha dd { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 0.98rem; }
.ficha dt:first-of-type, .ficha dt:first-of-type + dd { border-top: 0; }
.ficha dt { font-family: var(--display); font-stretch: 78%; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-size: 0.85rem; background: var(--paper-2); }
.ficha .btn { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1.5px solid var(--blue); background: var(--blue-deep); color: var(--paper); padding: clamp(40px, 5vw, 64px) 0 28px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot-logo { background: var(--paper); padding: 14px 16px; width: 200px; border-radius: 2px; }
.site-footer h2 { font-size: 0.85rem; font-family: var(--display); font-stretch: 78%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foot-text); margin-bottom: 12px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(237, 240, 232, 0.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--foot-text); }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green-ink);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(8, 58, 93, 0.35);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: var(--white); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "fig" "tb"; grid-template-rows: auto; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { max-width: 22ch; }
  .registro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--paper); border-bottom: 1.5px solid var(--blue); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { width: 100%; min-height: 52px; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .section-head, .split, .garantia, .cobertura, .plagas-layout { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .plagas-index { position: static; }
  .recom { grid-template-columns: 1fr; }
  .recom li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .recom li:last-child { border-bottom: 0 !important; }
  .garantia .sello { max-width: 240px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .plano-svg .m-hide { display: none; }
  .plano-svg .zone-label { font-size: 21px; }
  .plano-svg .note { font-size: 17px; }
  .pin { width: 32px; height: 32px; margin: -16px 0 0 -16px; font-size: 1rem; border-width: 1.5px; }
  .pin::before { content: ""; position: absolute; inset: -6px; }
  .pin[aria-pressed="true"]::after { inset: -5px; }
  .brand img { width: 140px; }
  .cajetin { grid-template-columns: 64px minmax(0, 1fr); }
  .cj-side { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .cj-num { font-size: 2.6rem; }
  .leader { display: none; }
  .title-block { grid-template-columns: 1fr; }
  .title-block div:nth-child(odd) { border-right: 0; }
  .title-block div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .bitacora thead { display: none; }
  .bitacora, .bitacora tbody, .bitacora tr, .bitacora td { display: block; width: 100%; }
  .bitacora tr { border-top: 1px solid var(--line); padding: 14px 16px; }
  .bitacora tr:first-child { border-top: 0; }
  .bitacora td { border: 0; padding: 4px 0; }
  .bitacora .est { width: auto; }
  .hoja form { grid-template-columns: 1fr; }
  .docs li { grid-template-columns: 1fr; gap: 2px; }
  .ficha dl { grid-template-columns: 1fr; }
  .ficha dt { border-top: 1px solid var(--line); padding-bottom: 4px; }
  .ficha dd { border-top: 0; padding-top: 6px; }
  .callout { position: static; max-width: none; margin-top: 10px; }
  .anotada svg.lines { display: none; }
  .registro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .registro { grid-template-columns: 1fr; }
  .registro video { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leader path { stroke-dasharray: none; }
  .btn, .pin, .nav a, .icon { transition-duration: 0.01s; }
}

/* ======================= v2: dibujos, imagenes y movimiento ======================= */

/* iconos vectoriales de plagas */
.icon { width: 44px; height: 44px; color: var(--blue); stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bitacora .plaga .icon { display: inline-block; vertical-align: middle; margin-right: 14px; width: 54px; height: 54px; transition: transform 0.35s var(--ease), color 0.2s; }
.bitacora .plaga-txt { display: inline-block; vertical-align: middle; max-width: calc(100% - 74px); }
.bitacora tr:hover .icon { transform: rotate(-8deg) scale(1.12); color: var(--green-ink); }
.ficha-head .icon { width: 56px; height: 56px; }

/* fichas con foto real */
.ficha-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; align-items: start; }
.ficha-body dl { margin: 0; }
.ficha-fig { margin: 0; border: 1.5px solid var(--blue); padding: 8px; background: var(--paper); overflow: hidden; }
.ficha-fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.ficha-fig:hover img { transform: scale(1.06); }
.ficha-fig figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 8px; }

/* galeria de negocios */
.galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.galeria figure { margin: 0; border: 1.5px solid var(--blue); background: var(--paper); padding: 8px; overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; transition: transform 0.8s var(--ease); }
.galeria figure:hover img { transform: scale(1.06); }
.galeria figcaption { margin-top: 8px; font-size: 0.9rem; line-height: 1.35; }
.galeria figcaption b { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.02rem; }
.registro.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.registro figure { transition: transform 0.3s var(--ease); }
.registro figure:hover { transform: translateY(-5px); }

.section-head h2, .page-head h1 { position: relative; padding-bottom: 14px; }
.section-head h2::after, .page-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 72px; background: var(--green); transform-origin: left; }

/* ---- movimiento (solo si el usuario no pidio reducirlo) ---- */
@media (prefers-reduced-motion: no-preference) {

  /* pines que invitan a tocar: latido suave y un anillo que se expande (solo transform/opacity) */
  .js .pin:not([aria-pressed="true"]) {
    animation: stamp 0.6s var(--ease) both, latido 2.4s ease-in-out infinite;
    animation-delay: calc(0.25s + var(--i) * 0.12s), calc(1.2s + var(--i) * 0.4s);
  }
  .js .pin:not([aria-pressed="true"])::after {
    content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; pointer-events: none;
    animation: onda 2.4s ease-out infinite; animation-delay: calc(1.2s + var(--i) * 0.4s);
  }
  @keyframes latido { 0%, 100% { scale: 1; } 50% { scale: 1.1; } }
  @keyframes onda { 0% { transform: scale(1); opacity: 0.75; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
  .js .pin[aria-pressed="true"]::after { animation: anillo 2.2s ease-in-out infinite; }
  @keyframes anillo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: 0.35; } }

  /* plano con vida: olas, palapa que gira, hallazgos que titilan */
  .plano-svg .olas { animation: olas 7s linear infinite; }
  .plano-svg .olas.b { animation-duration: 10s; animation-direction: reverse; }
  @keyframes olas { from { transform: translateX(0); } to { transform: translateX(-80px); } }
  .plano-svg .palapa-giro { transform-box: fill-box; transform-origin: center; animation: giro 80s linear infinite; }
  @keyframes giro { to { transform: rotate(360deg); } }
  .plano-svg .hallazgo path { animation: titileo 2.6s ease-in-out infinite; }
  .plano-svg .hallazgo path:nth-child(2n) { animation-delay: 0.8s; }
  .plano-svg .hallazgo path:nth-child(3n) { animation-delay: 1.5s; }
  @keyframes titileo { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

  /* portada: la copia entra en cascada */
  .js .hero-copy h1, .js .hero-copy .lead { animation: entra-t 0.9s var(--ease) both; }
  .js .hero-actions, .js .title-block { animation: entra 0.9s var(--ease) both; }
  @keyframes entra-t { from { transform: translateY(24px); } to { transform: none; } }
  .js .hero-copy .lead { animation-delay: 0.12s; }
  .js .hero-actions { animation-delay: 0.24s; }
  .js .title-block { animation-delay: 0.4s; }
  @keyframes entra { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  .js .btn:not(.sm):not(.ghost) { background-image: linear-gradient(100deg, transparent 35%, var(--sheen) 50%, transparent 65%); background-size: 250% 100%; background-position: 160% 0; }
  .js .btn:not(.sm):not(.ghost):hover { background-position: -60% 0; transition: background-position 0.9s var(--ease), background-color 0.2s var(--ease), outline-offset 0.2s var(--ease); }

  /* revelado al hacer scroll: cada bloque con su propio gesto */
  html.motion .rv { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), clip-path 1s var(--ease); transition-delay: var(--d, 0s); }
  html.motion .rv.in { opacity: 1; transform: none; clip-path: none; }
  html.motion .rv-up { transform: translateY(34px); }
  html.motion .rv-left { transform: translateX(-40px); }
  html.motion .rv-right { transform: translateX(40px); }
  html.motion .rv-pop { transform: scale(0.9); }
  html.motion .rv-wipe { clip-path: inset(0 100% 0 0); transform: translateX(-12px); }
  html.motion .rv-wipe.in { clip-path: inset(0 -2% 0 0); }
  html.motion .rv-frame { opacity: 1; position: relative; overflow: hidden; }
  html.motion .rv-frame::after { content: ""; position: absolute; inset: 0; background: var(--paper-3); transform-origin: top; transition: transform 1.1s var(--ease) var(--d, 0s); z-index: 4; pointer-events: none; }
  html.motion .rv-frame.in::after { transform: scaleY(0); }
  html.motion .sello.rv { opacity: 0; transform: rotate(-26deg) scale(1.7); transition: opacity 0.4s ease-out, transform 0.9s var(--ease); }
  html.motion .sello.rv.in { opacity: 1; transform: rotate(-6deg) scale(1); }

  /* iconos que se dibujan */
  html.motion .rv .icon { stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.4s var(--ease) calc(var(--d, 0s) + 0.2s), transform 0.35s var(--ease), color 0.2s; }
  html.motion .rv.in .icon { stroke-dashoffset: 0; }
  html.motion .leyenda .rv svg { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--d, 0s) + 0.2s); }
  html.motion .leyenda .rv.in svg { stroke-dashoffset: 0; }

  /* lineas guia de la foto del halcon y cobertura */
  html.motion .anotada .lines path { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1s var(--ease) 0.6s; }
  html.motion .anotada.in .lines path { stroke-dashoffset: 0; }
  html.motion .anotada .callout { opacity: 0; transform: scale(0.85); transition: opacity 0.5s var(--ease) 1.1s, transform 0.5s var(--ease) 1.1s; }
  html.motion .anotada.in .callout { opacity: 1; transform: none; }
  .zona-svg .pin-zona { transform-box: fill-box; transform-origin: center; }
  html.motion .zona-svg.rv .pin-zona { transform: scale(0); transition: transform 0.6s var(--ease) calc(var(--d, 0s) + 0.5s); }
  html.motion .zona-svg.rv.in .pin-zona { transform: scale(1); }
  .zona-svg .radar { transform-box: fill-box; transform-origin: center; animation: radar 3.2s ease-out infinite; }
  @keyframes radar { 0% { transform: scale(0.35); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }

  /* hoja de cotizacion: los campos entran uno a uno */
  html.motion .hoja .field { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease) calc(var(--f, 0) * 0.07s + 0.2s), transform 0.6s var(--ease) calc(var(--f, 0) * 0.07s + 0.2s); }
  html.motion .hoja.in .field { opacity: 1; transform: none; }

  /* encabezados: la regla verde se dibuja bajo el titulo */
  .section-head h2::after, .page-head h1::after { transition: transform 1s var(--ease) 0.3s; }
  html.motion .section-head.rv:not(.in) h2::after { transform: scaleX(0); }
  .wa-float { animation: wa 3.4s ease-in-out 2s infinite; }
  /* pausa manual (boton) y fuera de pantalla */
  html.pausa .olas, html.pausa .palapa-giro, html.pausa .hallazgo path, html.pausa .wa-float, html.pausa .zona-svg .radar, html.pausa .pin, html.pausa .pin::after { animation: none !important; }
  .plano-stage.fuera .olas, .plano-stage.fuera .palapa-giro, .plano-stage.fuera .hallazgo path, .plano-stage.fuera .pin, .plano-stage.fuera .pin::after { animation-play-state: paused; }
  @keyframes wa { 0%, 88%, 100% { transform: scale(1); } 92% { transform: scale(1.14) rotate(-8deg); } 96% { transform: scale(1.08) rotate(6deg); } }
}

@media (max-width: 1100px) { .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); } .registro.tres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ficha-body { grid-template-columns: 1fr; } .ficha-fig { max-width: 520px; } }
@media (max-width: 720px) {
  .bitacora .plaga .icon { margin-right: 10px; width: 44px; height: 44px; }
  .bitacora .plaga-txt { max-width: calc(100% - 60px); }
  .galeria, .registro.tres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 420px) { .galeria, .registro.tres { grid-template-columns: 1fr; } .galeria img { aspect-ratio: 4 / 3; } }

/* objetivos tactiles de 44 px */
.bitacora .est a { position: relative; }
.bitacora .est a::before { content: ""; position: absolute; inset: -5px; }
.site-footer li a, .site-footer .foot-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.brand { min-height: 44px; display: flex; align-items: center; }
.foot-h { font-size: 0.9rem; font-family: var(--display); font-stretch: 78%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foot-text); margin: 0 0 12px; font-weight: 700; }
.cj-title { font-family: var(--display); font-stretch: 88%; font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.02; margin: 2px 0 6px; color: var(--ink); text-wrap: balance; }
.pausa-btn { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 0.85rem; color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pausa-btn:hover { color: var(--blue-deep); }
.faq { margin-top: 8px; border-top: 1.5px solid var(--blue); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; min-height: 44px; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; max-width: 66ch; }
.consejos { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--blue); }
.consejos li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.consejos li::before { content: ""; position: absolute; left: 6px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--green-ink); border-bottom: 2.5px solid var(--green-ink); transform: rotate(-45deg); }
.otras { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0; border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.92); }
.otras a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.05rem; }
.otras a:hover { background: rgba(11, 76, 122, 0.08); color: var(--blue); }
.otras .icon { width: 40px; height: 40px; }
.pest-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pest-hero .ficha-fig img { aspect-ratio: 4 / 3; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 900px) { .pest-hero, .two-col { grid-template-columns: 1fr; } }

/* ======================= v3: bichos que viven en la pagina ======================= */

/* raton que se asoma por el borde de los botones "Cotizar" */
.tiene-raton { position: relative; }
.raton { position: absolute; left: var(--rx, 66%); bottom: calc(100% + 1px); width: 72px; height: 48px; margin-left: -36px; overflow: hidden; pointer-events: none; z-index: 2; }
.raton.abajo { bottom: auto; top: calc(100% + 1px); rotate: 180deg; }
.btn .raton-svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(112%); transition: transform 0.45s var(--ease); }
.raton .cabeza, .raton .oreja > circle:first-child, .raton .pata { fill: var(--white); }
.raton .oreja .dentro { fill: var(--paper-3); stroke: none; }
.raton .ojos circle { fill: var(--ink); stroke: none; }
.raton .nariz { fill: var(--blue); stroke: none; }
.raton .bigotes { stroke-width: 1.2; }
.raton .oreja, .raton .bigotes { transform-box: fill-box; }
.raton .oreja.oi { transform-origin: 80% 90%; }
.raton .oreja.od { transform-origin: 20% 90%; }
.raton .bigotes { transform-origin: center; }
.raton.fijo .raton-svg { transform: none; animation: none; }

/* un bicho paseante cruza el borde inferior y huye del cursor */
.bicho { position: fixed; left: 0; bottom: 8px; width: 32px; height: 32px; z-index: 30; pointer-events: none; will-change: transform; color: var(--ink-soft); }
.bicho svg { display: block; width: 100%; height: 100%; animation: k-paso 0.22s ease-in-out infinite; }
.bicho.huye svg { animation-duration: 0.11s; color: var(--green-ink); }
@keyframes k-paso { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.5px; } }

/* hormigas que marchan sobre el borde del pie */
.site-footer { position: relative; }
.fila-hormigas { position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; overflow: hidden; pointer-events: none; }
.hormiga-m { position: absolute; bottom: -2px; left: 0; width: 26px; height: 26px; color: var(--blue); animation: marcha-pie var(--t, 46s) linear infinite; animation-delay: var(--dl, 0s); }
.hormiga-m svg { width: 100%; height: 100%; display: block; animation: k-marcha-m 0.32s ease-in-out infinite; }
.hormiga-m.carga::before { content: ""; position: absolute; left: -3px; top: 3px; width: 8px; height: 8px; background: var(--green); border-radius: 1px; transform: rotate(14deg); }
.fila-hormigas.fuera .hormiga-m { animation-play-state: paused; }
@keyframes marcha-pie { from { transform: translateX(calc(100vw + 40px)); } to { transform: translateX(-60px); } }
@keyframes k-marcha-m { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-1.5px) rotate(3deg); } }

/* arana que baja por un hilo hasta la hoja de cotizacion */
.arana-hilo { position: absolute; right: 42px; bottom: calc(100% - 3px); width: 30px; height: 96px; pointer-events: none; z-index: 2; opacity: 0; transform: translateY(-60%); transition: transform 1.6s var(--ease), opacity 0.4s ease; }
.arana-hilo.baja { opacity: 1; transform: none; }
.arana-hilo.sube { transition-duration: 0.7s; transform: translateY(-60%); opacity: 0; }
.arana-hilo .col { position: absolute; inset: 0; transform-origin: 50% 0; }
.arana-hilo .hilo { position: absolute; left: 50%; top: 0; bottom: 26px; width: 1px; background: var(--ink-soft); }
.arana-hilo svg { position: absolute; left: 0; bottom: 0; width: 30px; height: 30px; color: var(--ink); stroke-width: 2.4; pointer-events: auto; cursor: pointer; }
@media (pointer: coarse) { .arana-hilo svg { pointer-events: none; } }
@keyframes balanceo { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

@media (prefers-reduced-motion: no-preference) {
  .raton.asoma .raton-svg { animation: r-sube 3.8s var(--ease) both; }
  .raton.asoma .ojos { animation: r-mira 3.8s ease-in-out both; }
  .raton.asoma .oi { animation: r-oi 3.8s ease-in-out both; }
  .raton.asoma .od { animation: r-od 3.8s ease-in-out both; }
  .raton.asoma .bigotes { animation: r-bigote 3.8s ease-in-out both; }
  .raton.fijo .ojos { translate: calc(var(--ex, 0) * 1px) calc(var(--ey, 0) * 1px); transition: translate 0.12s linear; }
  .raton.fijo .bigotes { animation: r-bigote-f 1.1s ease-in-out infinite; }
  .raton.fijo .oi { animation: r-oi-f 2.6s ease-in-out infinite; }
  @keyframes r-sube { 0% { transform: translateY(112%); } 13%, 84% { transform: none; } 100% { transform: translateY(112%); } }
  @keyframes r-mira { 0%, 15% { transform: none; } 26%, 40% { transform: translateX(-3.4px); } 52%, 68% { transform: translateX(3.4px); } 78%, 100% { transform: none; } }
  @keyframes r-oi { 0%, 28% { transform: none; } 34% { transform: rotate(-14deg); } 40% { transform: rotate(4deg); } 46%, 100% { transform: none; } }
  @keyframes r-od { 0%, 54% { transform: none; } 60% { transform: rotate(14deg); } 66% { transform: rotate(-4deg); } 72%, 100% { transform: none; } }
  @keyframes r-bigote { 0%, 42% { transform: none; } 48% { transform: scaleY(1.35); } 54% { transform: scaleY(0.8); } 60% { transform: scaleY(1.25); } 66%, 100% { transform: none; } }
  @keyframes r-bigote-f { 0%, 100% { transform: none; } 50% { transform: scaleY(1.3); } }
  @keyframes r-oi-f { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-12deg); } 88% { transform: rotate(3deg); } }

  /* cada plaga se mueve a su manera al tocarla o al aparecer */
  .icon[data-p="cucaracha"] { --k: k-corre; --kd: 0.5s; --kn: 3; }
  .icon[data-p="chinche"] { --k: k-salto; --kd: 0.7s; --kn: 2; }
  .icon[data-p="termita"] { --k: k-rumia; --kd: 0.4s; --kn: 4; }
  .icon[data-p="hormiga"] { --k: k-marcha; --kd: 0.7s; --kn: 3; }
  .icon[data-p="alacran"] { --k: k-cola; --kd: 0.7s; --kn: 3; transform-origin: 35% 75%; }
  .icon[data-p="arana"] { --k: k-cuelga; --kd: 1s; --kn: 2; transform-origin: 50% -30%; }
  .icon[data-p="mosquito"] { --k: k-zumba; --kd: 0.3s; --kn: 6; }
  .icon[data-p="rata"] { --k: k-olfatea; --kd: 0.55s; --kn: 3; }
  .icon[data-p="ave"] { --k: k-aletea; --kd: 0.4s; --kn: 5; }
  .icon[data-p="garrapata"] { --k: k-hincha; --kd: 0.7s; --kn: 3; }
  .icon[data-p]:hover, tr:hover .icon[data-p], a:hover .icon[data-p], .icon[data-p].anima { animation: var(--k) var(--kd) ease-in-out var(--kn); }
  html.pausa .icon.anima { animation: none; }
  @keyframes k-corre { 0%, 100% { transform: none; } 25% { transform: translateX(-5px) rotate(-5deg); } 75% { transform: translateX(5px) rotate(5deg); } }
  @keyframes k-salto { 0%, 100% { transform: none; } 40% { transform: translateY(-9px) rotate(6deg); } 70% { transform: translateY(1px) rotate(-3deg); } }
  @keyframes k-rumia { 0%, 100% { transform: none; } 50% { transform: rotate(-7deg) translateY(2px); } }
  @keyframes k-marcha { 0%, 100% { transform: none; } 25% { transform: translate(-5px, -1.5px); } 75% { transform: translate(5px, -1.5px); } }
  @keyframes k-cola { 0%, 100% { transform: none; } 50% { transform: rotate(9deg); } }
  @keyframes k-cuelga { 0%, 100% { transform: none; } 25% { transform: rotate(12deg); } 75% { transform: rotate(-12deg); } }
  @keyframes k-zumba { 0%, 100% { transform: none; } 20% { transform: translate(2px, -3px); } 40% { transform: translate(-3px, 1px); } 60% { transform: translate(3px, 2px); } 80% { transform: translate(-2px, -2px); } }
  @keyframes k-olfatea { 0%, 100% { transform: none; } 30% { transform: translateX(4px) rotate(-3deg); } 60% { transform: translateX(1px) rotate(2deg); } }
  @keyframes k-aletea { 0%, 100% { transform: none; } 50% { transform: scale(1.08, 0.78) translateY(2px); } }
  @keyframes k-hincha { 0%, 100% { transform: none; } 50% { transform: scale(1.16); } }

  .leader .viajero { color: var(--blue); }
  html.pausa .hormiga-m { animation: none; opacity: 0; }
  .arana-hilo.baja .col { animation: balanceo 3.4s ease-in-out 1.6s infinite; }
}
@media (prefers-reduced-motion: reduce) { .bicho, .fila-hormigas, .arana-hilo { display: none; } }

/* mosquito que ronda el boton de WhatsApp */
.mosquito-wa { position: fixed; right: 18px; bottom: 18px; width: 60px; height: 60px; z-index: 61; pointer-events: none; color: var(--ink); animation: orbita 1.5s linear 4; transition: opacity 0.4s; }
.mosquito-wa svg { position: absolute; left: 14px; top: -40px; width: 32px; height: 32px; animation: k-zumba2 0.2s linear infinite; }
.mosquito-wa.se-va { opacity: 0; translate: 0 -60px; transition: opacity 0.4s, translate 0.5s; }
@keyframes orbita { to { transform: rotate(360deg); } }
@keyframes k-zumba2 { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(2px, -2px) rotate(-8deg); } 75% { transform: translate(-2px, 2px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .mosquito-wa { display: none; } }

/* plagas que aparecen en "Pide tu cotizacion" y son exterminadas */
#cotizador { position: relative; }
.zona-plagas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.plaga-v { position: absolute; left: 0; top: 0; width: 36px; height: 36px; color: var(--ink); pointer-events: auto; cursor: crosshair; will-change: transform; opacity: 0; }
.plaga-v svg { display: block; width: 100%; height: 100%; stroke-width: 2.4; transition: opacity 0.5s, color 0.2s; }
.plaga-v.muerta { pointer-events: none; }
.plaga-v.muerta svg { opacity: 0.35; color: var(--red); animation: none; }
.plaga-v .x-muerta { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 var(--display); color: var(--red); animation: sello-x 1.6s var(--ease) forwards; }
@keyframes sello-x { 0% { transform: scale(2.2); opacity: 0; } 15% { transform: scale(1); opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.nube-fumiga { position: absolute; top: 0; bottom: 0; left: 0; width: 260px; opacity: 0; transition: opacity 0.3s; background: linear-gradient(90deg, rgba(47, 143, 62, 0) 0%, rgba(47, 143, 62, 0.22) 55%, rgba(237, 240, 232, 0.75) 100%); pointer-events: none; }
.zona-plagas.rocia .nube-fumiga { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .zona-plagas { display: none; } }

/* paginas de plaga: contenido ampliado */
.saber { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--blue); background: rgba(237, 240, 232, 0.92); }
.saber > div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.saber h3 { font-size: 1.2rem; margin-bottom: 6px; }
.saber p { color: var(--ink-soft); max-width: 60ch; }
.donde, .pasos { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--blue); }
.donde li, .pasos li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.donde b, .pasos b { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 1.1rem; }
.donde span, .pasos span { color: var(--ink-soft); }
.pasos { counter-reset: paso; }
.pasos li { position: relative; padding-left: 46px; }
.pasos li::before { counter-increment: paso; content: counter(paso); position: absolute; left: 0; top: 14px; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--blue); border-radius: 50%; font-family: var(--display); font-weight: 800; color: var(--blue); }
@media (max-width: 720px) { .saber { grid-template-columns: 1fr; } }
