/* =========================================================
   Infinity Rotomolding — Landing de generación de leads B2B
   Sistema visual estilo "HOOX": fondo oscuro cálido + acento
   lima neón, tipografía bold, tarjetas redondeadas grandes.
   Contenido 100% real de Infinity Rotomolding.
   ========================================================= */

:root {
  --color-bg: #17140f;
  --color-bg-soft: #1e1a14;
  --color-card: #221e19;
  --color-card-border: #35302a;
  --color-lime: #d6ff4f;
  --color-lime-dark: #b8e62e;
  --color-ink: #17140f;
  --color-white: #ffffff;
  --color-text-soft: #cbc7be;
  --color-text-dim: #948f84;

  --color-light-bg: #f7f4ec;
  --color-light-card: #ffffff;
  --color-light-border: #e7e1d3;
  --color-light-ink: #17140f;
  --color-light-ink-soft: #55503f;

  --color-success: #6bd66b;
  --color-error: #ff7a6e;
  --color-whatsapp: #25d366;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.4);
  --shadow-lime: 0 10px 28px rgba(214, 255, 79, 0.25);

  --header-h: 84px;
  --container-w: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text-soft);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--color-white); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--color-lime); color: var(--color-ink);
  padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem;
  font-weight: 800; color: var(--color-lime); margin-bottom: 1em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-lime); margin-right: 8px; vertical-align: middle;
}
.eyebrow.on-light { color: #7a9400; }
.eyebrow.on-light::before { background: #a8cc1e; }
.eyebrow.center { display: block; text-align: center; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-intro { max-width: 640px; color: var(--color-text-soft); font-size: 1.08rem; }
.section-intro.center { margin-left: auto; margin-right: auto; }

section { padding: 100px 0; }
section h2 { margin-bottom: 0.5em; }

/* Alternating section surfaces */
section.on-dark { background: var(--color-bg); color: var(--color-text-soft); }
section.on-soft-dark { background: var(--color-bg-soft); color: var(--color-text-soft); }
section.on-light { background: var(--color-light-bg); color: var(--color-light-ink-soft); }
.on-light h2, .on-light h3, .on-light h1 { color: var(--color-light-ink); }
.on-light .section-intro { color: var(--color-light-ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.98rem;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-lime); color: var(--color-ink); border-color: var(--color-lime); }
.btn-primary:hover { background: var(--color-lime-dark); border-color: var(--color-lime-dark); box-shadow: var(--shadow-lime); }
.btn-outline { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--color-lime); color: var(--color-lime); box-shadow: none; }
.on-light .btn-outline { color: var(--color-light-ink); border-color: var(--color-light-border); }
.on-light .btn-outline:hover { border-color: var(--color-ink); color: var(--color-ink); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb559; box-shadow: var(--shadow-md); }
.btn-dark { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); }
.btn-dark:hover { background: #000; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(23, 20, 15, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo-link { display: inline-flex; align-items: center; background: var(--color-white); padding: 8px 14px; border-radius: var(--radius-pill); }
.logo-img { height: 28px; width: auto; }

.main-nav ul { display: flex; gap: 22px; flex-wrap: nowrap; }
.main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--color-text-soft); padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--color-white); border-color: var(--color-lime); }
.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }

/* El backdrop-filter del header crea containing block propio para
   descendientes position:fixed (spec CSS Filter Effects), lo que rompía
   la altura del panel #main-nav.is-open en móvil. Se neutraliza mientras
   el menú está abierto para que el panel use el viewport como referencia. */
.site-header.menu-open { backdrop-filter: none; }
.header-cta .btn { padding: 12px 22px; font-size: 0.92rem; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--color-white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-cta-bar { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 64px 0 72px; overflow: hidden; background: var(--color-bg);
}
.hero-copy { max-width: 600px; position: relative; z-index: 1; }

.hero-bg-media {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: url('../img/hero-bg-poster.jpg') center/cover;
}
.hero-bg-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,20,15,0.94) 0%, rgba(23,20,15,0.82) 42%, rgba(23,20,15,0.55) 75%, rgba(23,20,15,0.4) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-media video { display: none; }
}
.hero h1 { color: var(--color-white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hero-sub { font-size: 1.1rem; color: var(--color-text-soft); margin-bottom: 24px; }

.hero-stats-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--color-card-border); }
.hero-stats-mini li { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num { font-size: 1.5rem; font-weight: 900; color: var(--color-lime); line-height: 1; }
.hero-stat-label { font-size: 0.72rem; color: var(--color-text-dim); }

.hero-trust-mini { display: flex; flex-direction: column; gap: 8px; margin: 0 0 26px; }
.hero-trust-mini li { padding-left: 26px; position: relative; font-size: 0.9rem; font-weight: 600; color: var(--color-text-soft); }
.hero-trust-mini li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-ink); font-weight: 800;
  background: var(--color-lime); width: 18px; height: 18px; border-radius: 50%; font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center;
}

.hero-form {
  background: var(--color-card); border: 1px solid var(--color-card-border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-md);
}
.hero-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hero-form input, .hero-form select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--color-card-border);
  background: var(--color-bg); color: var(--color-white); font-family: inherit; font-size: 0.96rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-form input::placeholder { color: var(--color-text-dim); }
.hero-form input:focus, .hero-form select:focus {
  outline: none; border-color: var(--color-lime); box-shadow: 0 0 0 3px rgba(214,255,79,0.25);
}
.hero-form .btn { margin-top: 4px; }
.hero-form-status { margin: 12px 0 0; font-weight: 700; text-align: center; font-size: 0.92rem; }
.hero-form-status.is-error { color: var(--color-error); }
.hero-form-status.is-success { color: var(--color-success); }

.hero-whatsapp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: 1.02rem; }

.hero-alt-actions { display: flex; align-items: center; justify-content: center; margin-top: 16px; }
.hero-explore-link { font-weight: 700; color: var(--color-text-soft); }
.hero-explore-link:hover { color: var(--color-lime); }

/* ---------- Declaración de refuerzo ---------- */
.reinforcement { padding: 48px 0; }
.reinforcement-text {
  max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.3rem; font-weight: 700;
  color: var(--color-white); line-height: 1.4;
}

/* ---------- Argumento final (dentro de CTA final) ---------- */
.closing-argument { max-width: 760px; margin: 0 auto 40px; text-align: center; font-size: 1.05rem; color: var(--color-text-soft); }

/* ---------- Reasons (4 numbered cards) ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.reason-card {
  background: var(--color-card); border: 1px solid var(--color-card-border); border-radius: var(--radius-md);
  padding: 32px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.reason-card:hover { border-color: var(--color-lime); transform: translateY(-4px); }
.reason-num { font-size: 2.2rem; font-weight: 900; color: var(--color-lime); line-height: 1; }
.reason-card h3 { color: var(--color-white); font-size: 1.08rem; }
.reason-card p { color: var(--color-text-soft); font-size: 0.94rem; margin: 0; }

/* ---------- CTA banner (lime, full width) ---------- */
.cta-banner { background: var(--color-lime); color: var(--color-ink); }
.cta-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 56px 0;
}
.cta-banner h2 { color: var(--color-ink); margin: 0; max-width: 640px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.cta-banner .btn-dark { flex-shrink: 0; }

/* ---------- Necesidad ---------- */
.necesidad { background: var(--color-light-bg); }
.need-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.need-card {
  background: var(--color-light-card); border: 1px solid var(--color-light-border); border-radius: var(--radius-md);
  padding: 30px 24px; text-align: left; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.need-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-lime-dark); transform: translateY(-3px); }
.need-icon {
  font-size: 1.4rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--color-lime); border-radius: var(--radius-sm);
}
.need-title { font-weight: 800; color: var(--color-light-ink); font-size: 1.04rem; }
.need-desc { color: var(--color-light-ink-soft); font-size: 0.92rem; }

/* ---------- Productos ---------- */
.productos { background: var(--color-bg); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.product-card {
  background: var(--color-card); border: 1px solid var(--color-card-border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--color-lime-dark); }
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-card-highlight { border-color: var(--color-lime); }
.product-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { color: var(--color-white); }
.product-range { font-weight: 800; color: var(--color-lime); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.03em; }
.product-body p { color: var(--color-text-soft); font-size: 0.94rem; }
.product-specs { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.product-specs li { font-size: 0.86rem; color: var(--color-text-soft); padding-left: 18px; position: relative; }
.product-specs li::before { content: "—"; position: absolute; left: 0; color: var(--color-lime); }
.product-body .btn { margin-top: auto; }
.product-body .btn-outline { color: var(--color-white); border-color: var(--color-card-border); }
.product-body .btn-outline:hover { border-color: var(--color-lime); color: var(--color-lime); }

/* ---------- Sectores (case studies) ---------- */
.sectores { background: var(--color-light-bg); }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.sector-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
  box-shadow: var(--shadow-sm);
}
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sector-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,20,15,0.15) 0%, rgba(23,20,15,0.92) 85%);
}
.sector-card > * { position: relative; z-index: 2; }
.sector-card h3 { color: var(--color-lime); margin-bottom: 0.35em; }
.sector-card p { color: #ece9e0; font-size: 0.94rem; }
.sector-productos { font-size: 0.85rem; color: #ece9e0; margin-bottom: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); }
.sector-productos strong { color: var(--color-lime); }

/* ---------- Sistema CLAMP ---------- */
.clamp-section { background: var(--color-bg-soft); color: var(--color-text-soft); }
.clamp-section h2, .clamp-section h3 { color: #fff; }
.clamp-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.clamp-lead { font-size: 1.15rem; color: #fff; font-weight: 600; }

.clamp-box {
  background: var(--color-card); border: 1px solid var(--color-lime); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lime);
}
.clamp-box h3 { color: var(--color-lime); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.clamp-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 26px; }
.clamp-list li { padding-left: 26px; position: relative; color: #ece9e0; font-size: 0.95rem; }
.clamp-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: var(--color-ink); font-weight: 800;
  background: var(--color-lime); width: 18px; height: 18px; border-radius: 50%; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}
.clamp-media { display: none; }
.clamp-section .why-title { margin-top: 28px; }

/* ---------- Empresa / expertise ---------- */
.empresa { background: var(--color-bg); }
.empresa-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.empresa-media { position: relative; }
.empresa-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.empresa-copy h2 { max-width: 560px; }
.empresa-facts { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.empresa-facts li { padding-left: 30px; position: relative; font-size: 1.02rem; color: var(--color-text-soft); }
.empresa-facts li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-ink); font-weight: 800;
  background: var(--color-lime); width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}
.empresa-facts strong { color: var(--color-white); }

/* ---------- Stats ---------- */
.stats { background: var(--color-bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.stat-card { text-align: center; padding: 12px; }
.stat-number { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 900; color: var(--color-lime); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 0.96rem; color: var(--color-text-soft); }

/* ---------- Proceso / timeline ---------- */
.proceso { background: var(--color-bg); }
.proceso-steps {
  list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  position: relative;
}
.proceso-steps::before {
  content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px; background: var(--color-card-border); z-index: 0;
}
.proceso-steps li { text-align: left; position: relative; z-index: 1; padding-right: 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--color-lime); color: var(--color-ink); font-weight: 900; margin-bottom: 18px;
  border: 4px solid var(--color-bg);
}
.proceso-steps h3 { font-size: 1.02rem; color: var(--color-white); }
.proceso-steps p { font-size: 0.9rem; color: var(--color-text-soft); }

/* ---------- Comparativa ---------- */
.comparativa { background: var(--color-light-bg); }
.compare-table-wrap { margin-top: 44px; overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--color-light-card); }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: center; border-bottom: 1px solid var(--color-light-border); font-size: 0.94rem; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--color-light-ink); font-weight: 600; }
.compare-table thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-light-ink-soft); font-weight: 800; padding-top: 24px; }
.compare-table thead th.highlight { color: var(--color-ink); }
.compare-table td.highlight, .compare-table th.highlight { background: rgba(214,255,79,0.18); }
.compare-yes { color: #4c8c00; font-weight: 800; font-size: 1.1rem; }
.compare-no { color: #c8c2b3; font-weight: 800; font-size: 1.1rem; }

/* ---------- Testimonios ---------- */
.testimonios { background: var(--color-bg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testi-card {
  background: var(--color-card); border: 1px solid var(--color-card-border); border-radius: var(--radius-md);
  padding: 30px; display: flex; flex-direction: column; gap: 18px;
}
.testi-quote { font-size: 1.02rem; color: #ece9e0; margin: 0; }
.testi-quote::before { content: "“"; color: var(--color-lime); font-size: 1.6rem; font-weight: 900; display: block; line-height: 0.6; margin-bottom: 6px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-lime); color: var(--color-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.testi-name { color: var(--color-white); font-weight: 700; font-size: 0.92rem; }
.testi-role { color: var(--color-text-dim); font-size: 0.82rem; }
.testi-note { text-align: center; color: var(--color-text-dim); font-size: 0.82rem; margin-top: 32px; }

/* ---------- FAQ ---------- */
.faq { background: var(--color-light-bg); }
.faq-list { max-width: 780px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-light-card); border: 1px solid var(--color-light-border); border-radius: var(--radius-md); padding: 6px 24px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--color-light-ink); padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.1rem; color: var(--color-ink); font-weight: 800; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--color-lime);
  display: flex; align-items: center; justify-content: center;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 20px; color: var(--color-light-ink-soft); }

/* ---------- Formulario ---------- */
.formulario-section { background: var(--color-bg-soft); }
.form-container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.form-intro h2 { color: var(--color-white); }
.form-trust { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.form-trust li { padding-left: 26px; position: relative; font-size: 0.92rem; color: var(--color-text-soft); }
.form-trust li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-ink); font-weight: 800;
  background: var(--color-lime); width: 18px; height: 18px; border-radius: 50%; font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center;
}

.lead-form {
  background: var(--color-light-card); border: 1px solid var(--color-light-border); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-lg);
}
.form-progress { height: 6px; background: var(--color-light-border); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.form-progress-bar { height: 100%; width: 50%; background: var(--color-lime-dark); transition: width .3s ease; }
.form-step-label { font-size: 0.85rem; font-weight: 700; color: var(--color-light-ink-soft); margin-bottom: 22px; }

.form-step { border: none; padding: 0; margin: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--color-light-ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 13px 14px; border: 1px solid var(--color-light-border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.96rem; background: #fff; color: var(--color-light-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-lime-dark); box-shadow: 0 0 0 3px rgba(214,255,79,0.35);
}
.form-field input.field-invalid, .form-field select.field-invalid { border-color: var(--color-error); }
.field-error { font-size: 0.8rem; color: #c1392b; min-height: 1em; }
.form-field-checkbox { flex-direction: row; align-items: flex-start; }
.checkbox-label { display: flex; gap: 10px; font-size: 0.86rem; font-weight: 400; color: var(--color-light-ink-soft); align-items: flex-start; }
.checkbox-label input { margin-top: 3px; }
.checkbox-label a { color: var(--color-light-ink); text-decoration: underline; }
.form-actions { display: flex; gap: 14px; }
.form-actions .btn-outline { flex-shrink: 0; color: var(--color-light-ink); border-color: var(--color-light-border); }
.form-actions .btn-outline:hover { border-color: var(--color-ink); }
.form-confidence { text-align: center; font-size: 0.85rem; color: var(--color-light-ink-soft); margin-top: 14px; margin-bottom: 0; }
.form-status { margin-top: 16px; font-weight: 700; text-align: center; }
.form-status.is-error { color: #c1392b; }
.form-status.is-success { color: #3a8a1f; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- CTA final (dual cards) ---------- */
.cta-final { background: var(--color-bg); }
.cta-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.cta-dual-card {
  border-radius: var(--radius-lg); padding: 44px; display: flex; flex-direction: column; gap: 18px; min-height: 260px;
  justify-content: space-between;
}
.cta-dual-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.cta-lime { background: var(--color-lime); color: var(--color-ink); }
.cta-lime h3 { color: var(--color-ink); }
.cta-dark {
  position: relative; color: #fff; overflow: hidden;
}
.cta-dark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,20,15,0.55), rgba(23,20,15,0.92)); z-index: 1; }
.cta-dark > * { position: relative; z-index: 2; }
.cta-dark h3 { color: #fff; }
.cta-dark p { color: #ece9e0; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--color-bg-soft); border-top: 1px solid var(--color-card-border); border-bottom: 1px solid var(--color-card-border); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0; flex-wrap: wrap; }
.newsletter-copy h3 { color: var(--color-white); font-size: 1.1rem; margin-bottom: 4px; }
.newsletter-copy p { margin: 0; color: var(--color-text-dim); font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px; border-radius: var(--radius-pill); border: 1px solid var(--color-card-border);
  background: var(--color-card); color: var(--color-white); font-family: inherit; font-size: 0.94rem; min-width: 260px;
}
.newsletter-form input::placeholder { color: var(--color-text-dim); }
.newsletter-form input:focus { outline: none; border-color: var(--color-lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg); color: var(--color-text-dim); padding: 64px 0 0; border-top: 1px solid var(--color-card-border); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--color-card-border); }
.footer-brand .logo-link { margin-bottom: 16px; }
.footer-logo { height: 26px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-list a:hover { color: var(--color-lime); }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 24px; font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--color-lime); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--color-whatsapp); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow-lg); z-index: 900; transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .need-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testi-grid { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .proceso-steps::before { display: none; }
  .clamp-inner, .empresa-inner, .form-container { grid-template-columns: 1fr; }
  .empresa-media { order: -1; max-width: 420px; }
  .cta-dual { grid-template-columns: 1fr; }
  .cta-banner-inner { text-align: center; justify-content: center; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: auto;
    background: var(--color-bg); padding: 24px; overflow-y: auto; z-index: 999;
  }
  .main-nav.is-open ul { display: flex; flex-direction: column; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--color-card-border); color: var(--color-white); }

  .mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
    background: var(--color-card); border-top: 1px solid var(--color-card-border); box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
  }
  .mobile-cta-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 4px 12px; font-size: 0.72rem; font-weight: 700; color: var(--color-white);
  }
  .mobile-cta-icon { font-size: 1.15rem; }
  .mobile-cta-primary { background: var(--color-lime); color: var(--color-ink); }

  body { padding-bottom: 64px; }

  section { padding: 68px 0; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .need-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding-bottom: 150px; }
  .proceso-steps { grid-template-columns: 1fr; }
  .hero-stats-mini { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-form-row { grid-template-columns: 1fr; margin-bottom: 0; }
  .hero-form-row input, .hero-form-row select { margin-bottom: 12px; }
  .hero-alt-actions { flex-direction: column; align-items: flex-start; }
  .reinforcement-text { font-size: 1.1rem; }
  .cta-banner-inner { flex-direction: column; }
  .cta-banner .btn { width: 100%; }
  .whatsapp-float { bottom: 76px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}
