/* =============================================================
   VENDIFY · Hoja de estilos
   Landing B2B de alta conversión · mobile-first
   ----------------------------------------------------------------
   Índice:
   1. Tokens (variables de marca)
   2. Reset & base
   3. Tipografía & utilidades
   4. Botones
   5. Layout (container, grid, secciones)
   6. Header / Navegación
   7. Hero
   8. Tarjetas / specs / pasos / verticales / soporte
   9. ROI
   10. FAQ
   11. CTA final + formulario
   12. Footer + WhatsApp flotante
   13. Placeholders de imagen
   14. Animaciones de scroll
   15. Responsive
============================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Paleta institucional B2B */
  --teal: #039183;          /* Acento principal: CTAs e interacción */
  --teal-700: #027a6e;      /* Hover del teal */
  --green-dark: #3C6E71;    /* Verde oscuro secundario */
  --ink: #201E1F;           /* Texto y fondos oscuros */
  --paper: #FCFCFC;         /* Fondo base, blanco cálido (no puro) */

  /* Derivados neutros */
  --ink-80: #3a3839;
  --ink-60: #5f5d5e;
  --line: #e7e6e6;
  --soft: #f3f4f3;          /* Fondo de sección suave */

  /* Tipografía */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif; /* fallback de Aloevera Display */
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala / espaciado */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(32, 30, 31, 0.08);
  --shadow-sm: 0 4px 18px rgba(32, 30, 31, 0.06);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  --wa: #25D366;            /* Verde institucional de WhatsApp */
  --wa-700: #1ebe5a;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, figure { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-700); }

/* Foco visible para navegación por teclado (accesibilidad) */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Salto de accesibilidad */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 3. TIPOGRAFÍA & UTILIDADES ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 .9rem;
}
.eyebrow--light { color: #6fd9cd; }

.accent { color: var(--teal); }

/* ---------- 4. BOTONES ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--teal); box-shadow: 0 8px 24px rgba(3, 145, 131, .28); }
.btn--primary:hover { --btn-bg: var(--teal-700); }

.btn--whatsapp { --btn-bg: var(--wa); }
.btn--whatsapp:hover { --btn-bg: var(--wa-700); }

.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--block { width: 100%; }

.ico-wa { width: 1.25em; height: 1.25em; }

/* ---------- 5. LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .section__lead { color: #c7c5c6; }

.section__head { max-width: 700px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section__title { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.section__lead { font-size: 1.12rem; color: var(--ink-60); margin: 0; }
.section--dark .section__title { color: #fff; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 252, 252, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

/* Logo wordmark */
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.logo__y { position: relative; display: inline-block; }
.logo__check {
  position: absolute;
  right: -.62em;
  top: -.18em;
  width: .85em;
  height: .85em;
  color: var(--teal);
}
.logo--footer .logo__word { font-size: 1.7rem; color: #fff; }

.nav { display: flex; align-items: center; }
.nav__menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav__menu a:not(.btn) { color: var(--ink-80); font-weight: 500; font-size: .98rem; }
.nav__menu a:not(.btn):hover { color: var(--teal); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. HERO ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
.hero__subtitle { font-size: 1.18rem; color: var(--ink-60); max-width: 34ch; margin: 0 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.6rem; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding: 0; margin: 0; }
.hero__badges li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .92rem;
  color: var(--ink-80);
  font-weight: 500;
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0; top: .35em;
  width: .95rem; height: .95rem;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Cinta de confianza */
.trust-strip { background: var(--green-dark); color: #eafffb; }
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .6rem 1.1rem;
  padding-block: .85rem;
  font-size: .9rem;
  font-weight: 500;
}
.trust-strip span[aria-hidden] { opacity: .5; }

/* ---------- 8. TARJETAS / SPECS / PASOS / VERTICALES / SOPORTE ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon, .spec__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(3, 145, 131, .1);
  color: var(--teal);
  margin-bottom: 1rem;
}
.card__icon svg, .spec__icon svg { width: 26px; height: 26px; }
.card__title, .spec__title { font-size: 1.18rem; margin-bottom: .35rem; }
.card p, .spec p { margin: 0; color: var(--ink-60); font-size: .98rem; }

/* Specs (sección oscura) */
.spec {
  background: #2a2829;
  border: 1px solid #393738;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.spec__icon { background: rgba(3, 145, 131, .18); }
.spec__title { color: #fff; }
.spec p { color: #b9b7b8; }
.specs__note { text-align: center; color: #8f8d8e; font-size: .9rem; margin-top: 1.75rem; }

/* Prueba en operación real (sección oscura) */
.proof { background: var(--ink); color: var(--paper); padding-block: var(--section-y); }
.proof__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.proof__title { font-size: clamp(1.7rem, 4vw, 2.4rem); color: #fff; }
.proof__lead { margin: 0; color: #c7c5c6; font-size: 1.08rem; }
.proof__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.proof__stat {
  background: #2a2829;
  border: 1px solid #393738;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  text-align: center;
}
.proof__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1;
  color: var(--teal);
}
.proof__label {
  display: block;
  margin-top: .55rem;
  color: #b9b7b8;
  font-size: .92rem;
}

/* Pasos */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: .9rem;
}
.step__title { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-60); font-size: .96rem; }

/* Verticales */
.vertical {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vertical:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vertical__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.vertical__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.vertical:hover .vertical__media img { transform: scale(1.04); }
.vertical__title { font-size: 1.12rem; margin: 1.1rem 1.25rem .25rem; }
.vertical p { margin: 0 1.25rem 1.3rem; color: var(--ink-60); font-size: .95rem; }

/* Soporte */
.support__item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.support__title { font-size: 1.1rem; margin-bottom: .3rem; }
.support__item p { margin: 0; color: var(--ink-60); font-size: .96rem; }

/* ---------- 9. ROI ---------- */
.roi__card {
  background: #2a2829;
  border: 1px solid #393738;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
}
.roi__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #6fd9cd;
  line-height: 1;
  margin-bottom: .5rem;
}
.roi__label { display: block; font-weight: 600; color: #fff; margin-bottom: .5rem; }
.roi__hint { margin: 0; color: #a9a7a8; font-size: .9rem; }
.roi__disclaimer { text-align: center; color: #8f8d8e; font-size: .88rem; margin-top: 1.75rem; max-width: 620px; margin-inline: auto; }

/* ---------- 10. FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.3rem 1.2rem; }
.faq__body p { margin: 0; color: var(--ink-60); }

/* ---------- 11. CTA FINAL + FORMULARIO ---------- */
.cta-final { background: var(--ink); color: var(--paper); padding-block: var(--section-y); }
.cta-final__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.cta-final__title { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; }
.cta-final__lead { color: #c7c5c6; font-size: 1.12rem; margin: 0 0 1.4rem; }
.cta-final__list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .55rem; }
.cta-final__list li { position: relative; padding-left: 1.7rem; color: #e3e2e2; }
.cta-final__list li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 1.1rem; height: 1.1rem;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Formulario */
.quote-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field__opt { color: var(--ink-60); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid #d4d3d3;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(3, 145, 131, .25);
  outline-offset: 0;
}
.quote-form__alt { text-align: center; font-size: .95rem; color: var(--ink-60); margin: -.25rem 0 0; }
.form-status { text-align: center; font-weight: 600; color: var(--teal); margin: 0; }

/* Honeypot oculto (anti-spam) */
.hp-field { position: absolute; left: -5000px; }

/* ---------- 12. FOOTER + WHATSAPP FLOTANTE ---------- */
.site-footer { background: var(--ink); color: #c7c5c6; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.site-footer__tagline { font-family: var(--font-display); color: #fff; margin: .8rem 0 0; max-width: 22ch; }
.site-footer__nav { display: grid; gap: .55rem; align-content: start; }
.site-footer__nav a { color: #c7c5c6; }
.site-footer__nav a:hover { color: #6fd9cd; }
.site-footer__contact h3 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.site-footer__contact p { margin: 0 0 .4rem; }
.site-footer__contact a { color: #c7c5c6; }
.site-footer__contact a:hover { color: #6fd9cd; }
.site-footer__social { display: flex; gap: 1rem; margin-top: .7rem; }
.site-footer__bottom { border-top: 1px solid #393738; }
.site-footer__bottom p { padding-block: 1.1rem; margin: 0; font-size: .88rem; text-align: center; color: #8f8d8e; }

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 13. PLACEHOLDERS DE IMAGEN ---------- */
.img-placeholder {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(3,145,131,.12), rgba(60,110,113,.12)),
    var(--soft);
  border: 1px dashed #c2c1c1;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--green-dark);
  text-align: center;
}
.img-placeholder__inner { display: grid; place-items: center; gap: .75rem; padding: 1.5rem; }
.img-placeholder__inner svg { width: 46px; height: 46px; color: var(--teal); opacity: .85; }
.img-placeholder__label { font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.img-placeholder--hero { aspect-ratio: 4 / 5; }
.img-placeholder--card { aspect-ratio: 16 / 10; border-radius: 0; border: 0; border-bottom: 1px dashed #c2c1c1; }
.img-placeholder--card .img-placeholder__label { padding: 1rem; }

/* Imagen del hero */
.hero__figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 14. ANIMACIONES DE SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Respetar preferencia de reducir movimiento (accesibilidad) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .vertical, .wa-float { transition: none; }
}

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; margin-inline: auto; }
  .cta-final__inner { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .proof__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  /* Navegación mobile desplegable */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-130%);
    transition: transform .28s ease;
    visibility: hidden;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__menu li { padding: .25rem 0; }
  .nav__menu a:not(.btn) { display: block; padding: .6rem 0; font-size: 1.05rem; }
  .nav__menu .btn { margin-top: .5rem; }

  .grid--4, .grid--3, .steps { grid-template-columns: 1fr; }
  .proof__stats { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
}
