/* Ventix — mobile-first. Layout: bloques apilados en celular, 2 columnas desde 900px.
   Motivo de marca: la diagonal verde del logo. */
:root {
  /* Paleta oficial del Manual de Marca VENTIX */
  --green: #2bca44;          /* Verde VENTIX, solo acento */
  --green-dark: #2bca44;
  --green-soft: rgba(43,202,68,.12);
  --ink: #545454;            /* Gris VENTIX, color base */
  --ink-2: #545454;
  --muted: #545454;
  --mid: #a7a7a7;            /* Gris medio, auxiliar */
  --line: rgba(167,167,167,.45);
  --bg: #ffffff;
  --bg-alt: #f3f4f4;         /* Gris claro, auxiliar */
  --dark: #545454;
  --dark-2: rgba(255,255,255,.08);
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255,255,255,.85);

  --f-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Montserrat", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --radius: 6px;             /* bloques con esquinas limpias */
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before {
  content: ""; width: 22px; height: 10px; background: var(--green);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
}
.section--dark .eyebrow { color: #fff; }

.h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); font-weight: 700; }
.h2 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); font-weight: 700; }
.h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.accent { color: var(--green); }
.lead { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 720px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn { font-weight: 600; }
.btn--light { background: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo img { height: 34px; width: auto; }
.nav { display: none; }
.nav a {
  font-family: var(--f-display); font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink-2);
  padding: 8px 2px; position: relative;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.nav a { font-weight: 500; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); border-radius: 2px;
}
.header__cta { display: none; }
.burger {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: .25s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff;
  padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
}
.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a.mm-link {
  font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--ink);
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a.mm-link[aria-current="page"] { color: var(--green); }
.mobile-menu .btn { margin-top: 22px; }
body.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: flex; gap: 30px; }
  .header__cta { display: inline-flex; min-height: 46px; padding: 10px 22px; }
  .burger, .mobile-menu { display: none; }
  :root { --header-h: 80px; --gutter: 32px; }
  .logo img { height: 40px; }
}

/* Hero inicio */
.hero { padding-block: 40px 64px; overflow: hidden; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; object-position: center 20%; }
.hero__media::before {
  content: ""; position: absolute; z-index: -1; right: -14px; top: -14px; width: 55%; height: 45%;
  background: var(--green); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.hero__badge {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: #fff; color: var(--ink); box-shadow: 0 16px 34px -18px rgba(84,84,84,.6); border-radius: 12px; padding: 14px 16px;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; line-height: 1.35;
  display: flex; gap: 12px; align-items: center;
}
.hero__badge b { color: var(--ink); box-shadow: inset 0 -3px 0 var(--green); }
.hero__badge img { width: 34px; height: 34px; aspect-ratio: auto; border-radius: 0; flex: none; }
@media (min-width: 900px) {
  .hero { padding-block: 64px 96px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero__badge { left: -28px; right: auto; bottom: 36px; max-width: 290px; }
}

/* Page hero (interiores) */
.page-hero { padding-block: 48px 56px; background: var(--bg-alt); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -70px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%);
  background: url("../img/icon-512.png") center / contain no-repeat; opacity: .10;
}
.page-hero .wrap { display: grid; gap: 16px; position: relative; z-index: 1; }
@media (min-width: 900px) { .page-hero { padding-block: 80px; } .page-hero::after { width: 380px; height: 380px; right: 40px; opacity: .14; } }

/* Tarjetas de servicio */
.cards { display: grid; gap: 22px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(84,84,84,.45); }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card__body { padding: 22px 22px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card__link {
  margin-top: 6px; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.card__link svg { color: var(--green); }
.card__link:hover { text-decoration: underline; text-decoration-color: var(--green); }

/* Bloque split */
.split { display: grid; gap: 36px; align-items: center; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.split__copy { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split__media { order: 2; }
}
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--f-display); font-weight: 700; font-size: .9rem; color: var(--ink);
  background: var(--green-soft); border-radius: 999px; padding: 8px 16px;
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 10px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}

/* Proceso */
.steps { display: grid; gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--dark-2); border-radius: var(--radius); padding: 26px 22px; display: grid; gap: 10px;
  align-content: start; position: relative; overflow: hidden;
}
.step__num {
  font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--green);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--on-dark-muted); font-size: 1rem; }

/* Por qué */
.why { display: grid; gap: 28px; }
@media (min-width: 720px) { .why { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
.why__item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.why__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center;
}
.why__icon svg { width: 24px; height: 24px; stroke: var(--green-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why__item h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* Frase */
.quote { padding-block: 72px; text-align: left; }
.quote blockquote {
  margin: 0; font-family: var(--f-display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.5rem, 4.6vw, 2.5rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 26ch;
}
.quote blockquote span { color: var(--green); }

/* CTA band */
.cta {
  background: var(--dark); color: var(--on-dark-muted); border-radius: var(--radius); padding: 44px 26px;
  display: grid; gap: 22px; position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -50px; top: -20px; width: 110px; height: 140%;
  background: var(--green); opacity: .9; clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%);
}
.cta > * { position: relative; z-index: 1; max-width: 640px; }
@media (max-width: 899px) { .cta > * { max-width: calc(100% - 40px); } }
.cta h2 { color: var(--on-dark); }
@media (min-width: 900px) { .cta { padding: 64px 56px; } .cta::after { width: 300px; right: 20px; } }

/* Servicio detalle */
.service { display: grid; gap: 32px; align-items: center; scroll-margin-top: 100px; }
.service + .service { margin-top: 72px; }
.service img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service__copy { display: grid; gap: 16px; min-width: 0; }
.service__tag { font-family: var(--f-display); font-weight: 700; color: var(--mid); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; gap: 64px; }
  .service:nth-of-type(even) .service__media { order: 2; }
}

/* Contacto */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.channels { display: grid; gap: 14px; }
.channel {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff;
  transition: border-color .2s;
}
a.channel:hover { border-color: var(--green); }
.channel small { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.channel strong { font-family: var(--f-display); color: var(--ink); font-size: 1.05rem; word-break: break-word; }
.form { background: var(--bg-alt); border-radius: var(--radius); padding: 26px 20px; display: grid; gap: 16px; }
@media (min-width: 600px) { .form { padding: 36px; } .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #cfd6d2; border-radius: 10px; padding: 13px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(43,202,68,.2); }
.form__note { font-size: .9rem; color: var(--muted); }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark-muted); padding-block: 56px 28px; font-size: .98rem; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer img.flogo { height: 38px; width: auto; margin-bottom: 14px; }
.footer h4 { color: var(--on-dark); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--on-dark-muted); }
.footer a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Animación de entrada suave (contenido visible por defecto) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s ease both; }
  .reveal-2 { animation-delay: .12s; }
  .reveal-3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.cta .eyebrow { color: #fff; }
