/* ==========================================================================
   VANTEK CONTROL — Sistema de diseño de la landing
   Contenido: Manejo Integral de Plagas. Paleta alineada al logotipo.
   ========================================================================== */

:root {
  /* Tintas */
  --ink-950: #0A120E;
  --ink-900: #101A15;
  --ink-800: #18271F;

  /* Papeles */
  --paper: #FFFFFF;
  --paper-alt: #F6F8F3;

  /* Verde Vantek (oliva de marca) */
  --moss-800: #33491E;
  --moss-700: #456224;
  --moss-600: #577E31;
  --moss-500: #6E9B3F;
  --moss-400: #8CB55F;
  --moss-300: #B2CD8D;
  --moss-200: #D5E3BB;
  --moss-100: #E9F1D8;
  --moss-50: #F4F8EC;

  /* Texto y líneas */
  --text: #16221C;
  --muted: #5C6C62;
  --line: #E4E9DF;
  --line-strong: #D3DBC8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text-on-dark: #E8EDE6;
  --muted-on-dark: #9CAA9F;

  /* Estados */
  --danger: #B3261E;
  --danger-ring: rgba(179, 38, 30, 0.15);

  /* Formas */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-2: 0 18px 40px -22px rgba(16, 26, 21, 0.35);
  --container: 1180px;

  --font-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* El [hidden] del navegador pierde contra cualquier display de autor */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--moss-200); color: var(--ink-900); }

/* ---- Layout --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding: 6.5rem 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--ink-950); color: var(--text-on-dark); }
.section--dark h2 { color: #FFFFFF; }

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--ink-900); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--r-sm);
  font-size: 0.85rem; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--moss-500);
  outline-offset: 2px;
}

/* ---- Tipografía ----------------------------------------------------- */
.display-1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.display-2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); }

.lede { margin-top: 1.25rem; font-size: 1.075rem; color: var(--muted); max-width: 40rem; }
.section--dark .lede { color: var(--muted-on-dark); }

.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---- Botones -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--r-sm);
  font-size: 0.925rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--moss-600); color: #fff; }
.btn--primary:hover { background: var(--moss-700); transform: translateY(-1px); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--ink-900); background: var(--paper-alt); }

.btn--on-dark { border-color: var(--line-dark); color: #fff; }
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.08); }

.btn--wa { background: #128C4B; color: #fff; }
.btn--wa:hover { background: #0E7440; }
.btn--wa svg { fill: currentColor; }

/* ---- Encabezado / navegación --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { height: 40px; width: auto; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em;
  color: var(--ink-900); line-height: 1;
}
.brand__name em { color: var(--moss-500); font-style: normal; }
.brand__tag {
  display: block; font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; }
.nav a { position: relative; font-size: 0.9rem; font-weight: 500; color: var(--muted); padding: 0.35rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--moss-500); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--ink-900); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.87rem; font-weight: 600; color: var(--ink-900); }
.header-phone svg { width: 16px; height: 16px; color: var(--moss-600); }
.header-phone:hover { color: var(--moss-700); }

.menu-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink-900); }

.drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.drawer.open { display: block; }
.drawer nav { display: grid; padding: 1rem 0 1.5rem; gap: 0.25rem; }
.drawer nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-900); }
.drawer .btn { margin-top: 0.8rem; }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  padding: 6.5rem 0 5.5rem;
  background:
    radial-gradient(1000px 460px at 88% -8%, var(--moss-50), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.hero__title { margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2.2rem; }

/* ---- Espacios y plagas --------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.tile-item {
  display: flex; align-items: center; gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: 1.25rem 1.2rem;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
a.tile-item:hover { border-color: var(--moss-300); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile-item__icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--moss-50); color: var(--moss-700);
  border: 1px solid var(--moss-100);
}
.tile-item__icon svg { width: 21px; height: 21px; }
.tile-item h3 { font-size: 0.98rem; font-weight: 700; line-height: 1.25; }

/* ---- Plagas (acordeón) ---------------------------------------------- */
.pest {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.pest.is-open { border-color: var(--moss-300); box-shadow: var(--shadow-2); }
.pest__head { margin: 0; }
.pest__toggle {
  display: flex; align-items: center; gap: 0.85rem; width: 100%;
  padding: 1.25rem 1.2rem; text-align: left; font-size: 0.98rem;
}
.pest__name {
  flex: 1; font-family: var(--font-head); font-weight: 700;
  font-size: 0.98rem; line-height: 1.25; color: var(--ink-900);
}
.pest__count {
  display: none; flex: none; min-width: 21px; padding: 1px 7px;
  border-radius: 999px; background: var(--moss-600); color: #fff;
  font-size: 0.72rem; font-weight: 700; line-height: 19px; text-align: center;
}
.pest__count.is-on { display: block; }
.pest__chevron { flex: 0 0 16px; width: 16px; height: 16px; max-width: 16px; max-height: 16px; color: var(--muted); transition: transform 0.22s var(--ease); }
.pest.is-open .pest__chevron { transform: rotate(180deg); }
.pest__panel { border-top: 1px solid var(--line); padding: 0.45rem 0.6rem 0.8rem; }
.pest__list { display: grid; gap: 0.1rem; }
.pest__option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.6rem; border-radius: var(--r-sm);
  font-size: 0.9rem; color: var(--text); cursor: pointer;
}
.pest__option:hover { background: var(--moss-50); }
.pest__option.is-checked { background: var(--moss-50); color: var(--moss-800); font-weight: 600; }
.pest__option input { width: 17px; height: 17px; flex: none; accent-color: var(--moss-600); }
.pest__note { margin: 0.55rem 0.6rem 0; font-size: 0.8rem; color: var(--muted); }
.pest-cta { justify-content: center; }

/* ---- Resumen de plagas en el formulario ----------------------------- */
.pest-summary { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.7rem 0.8rem; }
.pest-summary__empty { font-size: 0.85rem; color: var(--muted); }
.pest-summary__empty a { color: var(--moss-700); text-decoration: underline; }
.pest-summary__list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pest-chip {
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--moss-100); color: var(--moss-800);
  font-size: 0.8rem; font-weight: 600;
}
.pest-summary__clear { margin-top: 0.7rem; }

/* ---- Metodología ---------------------------------------------------- */
.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.method { padding: 2rem 1.4rem 0.5rem 0; border-right: 1px solid var(--line); position: relative; }
.method:last-child { border-right: 0; padding-right: 0; }
.method::before {
  content: ""; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--moss-500); box-shadow: 0 0 0 4px var(--paper-alt);
}
.method__num { font-family: var(--font-head); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em; color: var(--moss-600); }
.method h3 { font-size: 1.16rem; margin: 0.7rem 0 0.6rem; }
.method p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ---- Sector alimentos ---------------------------------------------- */
.food__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
.standards { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.standard {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.4rem 0.8rem; border: 1px solid var(--line-dark);
  border-radius: 999px; color: var(--text-on-dark);
}
.food-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; }
.food-item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-dark); }
.food-item svg { width: 18px; height: 18px; color: var(--moss-300); flex: none; margin-top: 2px; }
.food-item span { font-size: 0.9rem; color: var(--text-on-dark); }
.food-cta, .pest-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }

/* ---- Higiene y Control Microbiológico Ambiental --------------------- */
.micro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem 3.5rem; align-items: start; }
.micro h3 { margin: 2rem 0 0.7rem; font-size: 1.16rem; }
.micro p { margin-bottom: 0.9rem; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.micro p:last-child { margin-bottom: 0; }
.micro__grid > div > :first-child,
.micro__evidence > :first-child,
.micro__apps > :first-child { margin-top: 0; }
.micro p.micro__lead { font-size: 1rem; color: var(--text); }
.micro p.micro__highlight { font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--ink-900); }
.micro__list { display: grid; gap: 0.35rem; margin-top: 1.1rem; }
.micro__item { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.micro__item svg { flex: 0 0 18px; width: 18px; height: 18px; max-width: 18px; color: var(--moss-700); margin-top: 2px; }
.micro__item span { font-size: 0.9rem; color: var(--text); }
.micro__evidence { margin-top: 3.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); text-align: center; }
.micro p.micro__flow {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 1rem;
  margin: 1.3rem 0 0; font-family: var(--font-head); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss-700);
}
.micro__arrow { color: var(--moss-400); }
.micro p.micro__note { max-width: 46rem; margin: 1.1rem auto 0; }
.micro__apps { margin-top: 3rem; }
.micro__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.micro__pill {
  padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted);
}
.micro__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2.8rem; }

/* ---- Contacto / formulario ----------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__intro .hero__actions { justify-content: flex-start; }
.contact__direct { display: grid; gap: 0.7rem; margin-top: 2rem; }
.contact__direct a { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--ink-900); }
.contact__direct a:hover { color: var(--moss-700); }
.contact__direct svg { width: 18px; height: 18px; color: var(--moss-600); }
.contact__direct small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.contact__note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--muted); max-width: 32rem; }
.contact__note + .contact__note { margin-top: 0.5rem; }

.form {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-2);
  padding: 2rem;
}
.field { margin-bottom: 1.3rem; }
.field > label, .field__label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink-900); margin-bottom: 0.55rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.control {
  width: 100%; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); font-size: 0.92rem; appearance: none;
}
.control:focus { outline: none; border-color: var(--moss-500); box-shadow: 0 0 0 3px var(--moss-100); }
.control.has-error { border-color: var(--danger); }
.control.has-error:focus { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring); }
.field__error { margin-top: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--danger); }
select.control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6C62' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 16px;
  padding-right: 2.4rem;
}

.form__done { text-align: center; padding: 1rem 0; }
.form__done svg { width: 44px; height: 44px; color: var(--moss-600); margin: 0 auto 0.8rem; }
.form__legal { margin-top: 0.9rem; text-align: center; font-size: 0.78rem; color: var(--muted); }
.form__legal a { color: var(--moss-700); text-decoration: underline; }

/* ---- Pie ------------------------------------------------------------ */
.footer { background: var(--ink-900); color: var(--muted-on-dark); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand img { height: 34px; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.footer ul { display: grid; gap: 0.6rem; }
.footer ul a:hover { color: #fff; }
.footer__contact li { display: grid; gap: 0.15rem; margin-bottom: 0.9rem; }
.footer__contact strong { color: #fff; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.79rem;
}
.footer__legal { display: flex; gap: 1.4rem; }

/* ---- WhatsApp flotante --------------------------------------------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80;
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.95rem 0.75rem 0.8rem;
  background: #128C4B; color: #fff; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(18, 140, 75, 0.55);
  font-size: 0.86rem; font-weight: 600;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}
.wa-float:hover { background: #0E7440; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--ease); }
.wa-float:hover span { max-width: 220px; }

/* ---- Páginas legales (aviso de privacidad) -------------------------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.22rem; margin: 2.4rem 0 0.7rem; }
.legal p, .legal li { font-size: 0.95rem; color: var(--muted); }
.legal p { margin-bottom: 0.9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.5rem; margin-bottom: 1.2rem; }
.legal a { color: var(--moss-700); text-decoration: underline; }
.legal .updated { font-size: 0.85rem; }

/* ---- Revelado al hacer scroll -------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.8rem 0; }
  .method::before { display: none; }
  .food__grid, .contact, .micro__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .section { padding: 4.5rem 0; }
  .nav, .header-phone { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 4rem 0 3.5rem; }
  .grid-4, .grid-3, .food-list, .form-row { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.85rem; }
}
