/* =============================================================
   PestHunter 2026 — Sistema de diseño · HOME V2
   minimalista · premium · técnico · humano · confiable
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0F1E18;
  --ink-soft: #33453D;
  --muted: #5D6C64;
  --bg: #FFFFFF;
  --bg-alt: #F3F6F4;
  --bg-deep: #0B1A14;
  --line: #E1E7E3;
  --line-strong: #C7D1CB;

  --brand: #0E5C4A;
  --brand-dark: #093F32;
  --brand-tint: #E6F0EB;

  --accent: #B15C25;          /* cálido · uso mínimo */

  --wa: #128C7E;
  --wa-dark: #0B5C52;

  --danger: #B42318;
  --focus: #B15C25;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --h1: clamp(2.15rem, 4.4vw + 1rem, 3.1rem);
  --h2: clamp(1.55rem, 2.2vw + 0.9rem, 2.05rem);
  --h3: 1.2rem;
  --lead: clamp(1.05rem, 0.5vw + 0.95rem, 1.2rem);

  --container: 1140px;
  --pad-inline: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(2.5rem, 5vw, 3.75rem);   /* ~25% más denso que V1 */

  --radius: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(15, 30, 24, 0.05), 0 12px 32px -22px rgba(15, 30, 24, 0.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--h1); letter-spacing: -0.022em; }
h2 { font-size: var(--h2); letter-spacing: -0.018em; }
h3 { font-size: var(--h3); font-weight: 600; letter-spacing: -0.01em; }
p { max-width: 66ch; }
.lead { font-size: var(--lead); color: var(--ink-soft); line-height: 1.55; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}
.muted { color: var(--muted); }
small, .small { font-size: 0.875rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-inline); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: calc(var(--section-y) * 0.72); }
.section__head { max-width: 44rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section__head p { margin-top: 0.55rem; }

.skip-link {
  position: absolute; left: 0.5rem; top: 0.5rem;
  transform: translateY(-150%);
  background: var(--ink); color: #fff;
  padding: 0.55rem 1rem; border-radius: var(--radius-sm);
  z-index: 200; transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.9rem; }
.btn .icon { width: 17px; height: 17px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--brand-dark);
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform 0.15s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 82px; }
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 1.9rem; }
.primary-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; padding-block: 0.4rem; }
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; flex: none; }
.client-access {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem;
}
.client-access:hover { color: var(--ink); text-decoration: none; }
.client-access .icon { width: 13px; height: 13px; }

.nav-toggle { display: none; }
.mobile-nav { display: none; }   /* clave: nunca visible en desktop */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.1rem; max-width: 44ch; }
.hero__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__trust {
  margin-top: 1.35rem;
  font-size: 0.86rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center;
}
.hero__trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* Imagen del hero (provisional) */
.hero__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

/* ---------- Barra de confianza ---------- */
.trustbar { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trustbar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.65rem 2.2rem; padding-block: 0.95rem;
}
.trustbar__item {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
}
.trustbar__item .icon { width: 16px; height: 16px; color: var(--brand); flex: none; }
.trustbar__item .stars { color: var(--accent); letter-spacing: 0.06em; }
.trustbar__item a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Grid de plagas ---------- */
.pest-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pest-grid a {
  background: #fff; padding: 1.1rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  color: var(--ink); transition: background-color 0.14s ease;
}
.pest-grid a:hover { background: var(--brand-tint); text-decoration: none; }
.pest-grid .pest-name { font-weight: 600; font-size: 0.98rem; }
.pest-grid .pest-note { font-size: 0.8rem; color: var(--muted); }
.pest-grid__foot { margin-top: 1.25rem; }

/* ---------- MIP (editorial) ---------- */
.mip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mip__step {
  padding: 1.15rem 1.35rem 0 0;
  border-top: 2px solid var(--ink);
}
.mip__step .num {
  font-size: 2.6rem; font-weight: 300; line-height: 1;
  color: var(--brand); letter-spacing: -0.03em;
}
.mip__step h3 { margin-top: 0.7rem; font-size: 1.02rem; }
.mip__step p { margin-top: 0.3rem; font-size: 0.88rem; color: var(--muted); }

/* ---------- Hogar / Empresa ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.split__card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  background: #fff; display: flex; flex-direction: column;
}
.split__card h3 { font-size: 1.2rem; font-weight: 700; }
.split__card p { color: var(--ink-soft); margin-top: 0.55rem; font-size: 0.95rem; flex: 1; }
.split__card .link-arrow { margin-top: 1.1rem; }
.split__card--b2b { background: var(--brand-tint); border-color: transparent; }
.split__sectors-label {
  margin-top: 0.9rem; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--muted);
}
.split__sectors {
  list-style: none; padding: 0; margin-top: 0.5rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.split__sectors li {
  font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
  background: rgba(255,255,255,0.6); border: 1px solid rgba(14,92,74,0.18);
  border-radius: 999px; padding: 0.28rem 0.7rem;
}

/* ---------- Servicios: hub de plagas ---------- */
.svc-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.svc-card {
  padding: 1.25rem 1.35rem; border-top: 1px solid var(--line);
}
.svc-card:nth-child(1), .svc-card:nth-child(2) { border-top: 0; }
.svc-card:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-card h3 { font-size: 1rem; font-weight: 600; }
.svc-card p { font-size: 0.9rem; margin-top: 0.5rem; max-width: none; }
.svc-card .prob { color: var(--muted); }
.svc-card .appr { color: var(--ink); }

/* ---------- Migas de pan (páginas interiores) ---------- */
.crumbs {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.45rem; align-items: center;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* ---------- Chips (listados compactos, p. ej. sectores) ---------- */
.chips { list-style: none; padding: 0; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
  background: var(--brand-tint); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.4rem 0.9rem;
}

/* ---------- Prosa compacta (páginas de servicio) ---------- */
.prose { max-width: 60ch; }
.prose > p + p { margin-top: 0.9rem; }
.prose p { color: var(--ink-soft); }
.prose p.lead-line { color: var(--ink); font-weight: 500; }
.prose ul { margin-top: 0.9rem; padding-left: 1.1rem; color: var(--ink-soft); }
.prose li { margin-top: 0.35rem; }

/* ---------- Banda CTA (final de página interior) ---------- */
.cta-band { text-align: center; max-width: 40rem; margin-inline: auto; }
.cta-band p { margin: 0.6rem auto 0; color: var(--ink-soft); }
.cta-band .hero__cta { justify-content: center; margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; list-style: none;
  min-width: 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 17px; height: 17px; flex: none; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq p { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.75rem, 4vw, 3rem); }
.contact__aside p { color: var(--ink-soft); }
.contact__ways { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.contact__ways li { display: flex; align-items: center; gap: 0.65rem; font-weight: 500; font-size: 0.95rem; }
.contact__ways .icon { width: 17px; height: 17px; color: var(--brand); flex: none; }
.contact__cta { align-self: start; }
.contact__cta p { color: var(--ink-soft); }
.contact__cta .btn { margin-top: 1rem; }
.contact__cta .form-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); }

form .field { margin-bottom: 0.85rem; }
form label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink-soft); }
form input, form textarea {
  width: 100%; font: inherit;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--brand); }
form textarea { min-height: 96px; resize: vertical; }
form .btn { width: 100%; justify-content: center; margin-top: 0.15rem; }
form .form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.65rem; }

/* ---------- Footer (compacto) ---------- */
.site-footer {
  background: var(--bg-deep); color: #C6D4CD;
  padding-block: clamp(2.25rem, 5vw, 3rem) 1.5rem;
  font-size: 0.88rem;
}
.site-footer a { color: #E7F1EC; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 1.75rem; }
.site-footer h4 {
  color: #fff; font-size: 0.76rem; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.site-footer .foot-brand img {
  height: 38px; width: auto; background: #fff;
  padding: 0.35rem 0.55rem; border-radius: var(--radius-sm);
}
.site-footer .foot-brand p { margin-top: 0.75rem; max-width: 32ch; color: #9FB2AA; }
.site-footer .cert-line { color: #9FB2AA; }
.site-footer__certline {
  margin-top: 1.5rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: center;
  font-size: 0.82rem; color: #9FB2AA;
}
.site-footer__certline .icon { width: 14px; height: 14px; color: #6FB39F; }
.site-footer__certline a { color: #E7F1EC; }
.site-footer__bottom {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
  color: #8C9E96; font-size: 0.82rem;
}
.site-footer__bottom nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- Barra de acción móvil ---------- */
.action-bar { display: none; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 16 / 10; }
  .pest-grid { grid-template-columns: repeat(2, 1fr); }
  .mip { grid-template-columns: repeat(2, 1fr); }
  .mip__step { padding-right: 1rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .primary-nav,
  .header-actions { display: none; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  }
  .nav-toggle .icon { width: 22px; height: 22px; }

  .mobile-nav {
    display: none;
    border-top: 1px solid var(--line); background: #fff;
    padding: 0.5rem var(--pad-inline) 1.25rem;
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; padding: 0; }
  .mobile-nav a {
    display: block; padding: 0.8rem 0; font-size: 1.05rem; font-weight: 500;
    color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .mobile-nav .btn { width: 100%; justify-content: center; margin-top: 1rem; }
  .mobile-nav .client-access { margin-top: 1rem; }

  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px -10px rgba(15, 30, 24, 0.25);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 0.18rem;
    padding: 0.55rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom));
    font-size: 0.72rem; font-weight: 600; color: var(--ink-soft);
  }
  .action-bar a:hover { text-decoration: none; }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar .icon { width: 19px; height: 19px; }
  .action-bar .act-wa .icon { color: var(--wa); }
  .action-bar .act-call .icon { color: var(--brand); }
  .action-bar .act-quote .icon { color: var(--accent); }
  body { padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .brand img { height: 46px; }
  .pest-grid { grid-template-columns: 1fr 1fr; }
  .mip { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card:nth-child(2) { border-top: 1px solid var(--line); }
  .svc-card:nth-child(odd) { border-right: 0; }
}

@media (max-width: 400px) {
  .pest-grid { grid-template-columns: 1fr; }
}
