/* =========================================================
   Quimav SpA – Landing
   Fondo blanco + neblina WebGL fija (adaptada de I-Codes)
   ========================================================= */
:root {
  --navy-900: #001a36;
  --navy-800: #002850;
  --navy-700: #003560;
  --navy-600: #003f7d;
  --sky-500: #0092d8;
  --sky-400: #22b0ef;
  --sky-300: #6fd0f7;
  --sky-100: #d6effb;
  --sky-50: #eef8fe;
  --ink: #0b1b2e;
  --muted: #5a6b7f;
  --line: #e2eaf2;
  --green: #16a34a;
  --wa: #25d366;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 40, 80, .05), 0 2px 10px -4px rgba(0, 40, 80, .06);
  --shadow: 0 16px 40px -20px rgba(0, 40, 80, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: #fff; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: transparent; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; color: var(--navy-800); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.text-gradient {
  background: linear-gradient(100deg, #0077c8 0%, #0069b4 45%, var(--navy-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Neblina (canvas fijo detrás de toda la página) ---------- */
#fog {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease;
}
#fog.ready { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 500; font-size: .93rem;
  padding: .75rem 1.3rem; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: .55rem 1rem; font-size: .86rem; }
.btn-lg { padding: .9rem 1.55rem; font-size: .98rem; }
.btn-primary {
  background: var(--navy-800); color: #fff; border-color: var(--navy-800);
  box-shadow: 0 10px 24px -14px rgba(0, 26, 54, .9);
}
.btn-primary:hover { background: var(--navy-600); border-color: var(--navy-600); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(0, 26, 54, .9); }
.btn-primary:focus-visible { outline: 3px solid rgba(34, 176, 239, .45); outline-offset: 2px; }
.btn-ghost, .btn-outline { background: #fff; color: var(--navy-800); border-color: rgba(0, 63, 125, .2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover, .btn-outline:hover { background: #fff; border-color: var(--navy-600); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.link { color: #0069b4; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navbar ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(214, 230, 242, .9);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  transition: background .3s, box-shadow .3s;
}
.nav-wrap.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 8px 24px -18px rgba(0, 40, 80, .35); }
.nav { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); }
.nav-logo img { height: 42px; width: auto; }
.nav-links { list-style: none; display: flex; gap: .15rem; margin: 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: .45rem .85rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--navy-700); transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); background: rgba(0, 146, 216, .08); }
.nav-toggle { display: none; }
.mobile-menu {
  display: flex; flex-direction: column; margin: 0 1rem; padding: .5rem 1rem 1rem;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: .75rem .25rem; font-weight: 500; color: var(--navy-800); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1rem; }

/* ---------- Hero (centrado, compacto) + clientes ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 0; text-align: center; }
.hero-inner { max-width: 1060px; }
.hero h1 { max-width: 18ch; margin-inline: auto; margin-bottom: .4em; text-wrap: balance; }
.hero .lead { font-size: 1.15rem; color: #3c5570; margin: 0 auto 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* Franja de logos: blanca al centro (evita que se vea el fondo recortado de los logos) */
.logos {
  margin-top: 56px; padding: 2.25rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%, #fff 72%, rgba(255,255,255,0) 100%);
}
.logos-title { text-align: center; font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; padding: 0 1.25rem; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 4rem; width: max-content; animation: marquee 65s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 40px; width: auto; max-width: 160px; object-fit: contain;
  filter: grayscale(1) brightness(1.06) contrast(1.15); opacity: .62; mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s;
}
.marquee-track img.tall { height: 64px; }
.marquee-track img:hover { filter: brightness(1.04) contrast(1.08); opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 2rem)); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, rgba(238, 248, 254, 0), rgba(238, 248, 254, .55) 18%, rgba(238, 248, 254, .55) 82%, rgba(238, 248, 254, 0)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head.left { text-align: left; margin: 0; }

/* ---------- Bento servicios ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.span-2 { grid-column: span 2; }
.bento-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3f3; }
.bento-card.span-2 { flex-direction: row; }
.bento-card.span-2 .bento-media { flex: 0 0 46%; height: auto; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 146, 216, .09), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.spotlight:hover::before { opacity: 1; }
.bento-media { height: 230px; overflow: hidden; }
.bento-media.short { height: 190px; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento-card:hover .bento-media img { transform: scale(1.04); }
.bento-body { padding: 1.6rem 1.7rem; display: flex; flex-direction: column; }
.bento-body p { color: var(--muted); font-size: .95rem; }
.icon-box {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin-bottom: 1rem;
  border-radius: var(--r-sm); color: #0069b4; background: #fff; border: 1px solid #c9e3f5;
  box-shadow: 0 4px 12px -6px rgba(0, 63, 125, .35);
}
.icon-box svg { width: 21px; height: 21px; }
.checks { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; gap: .45rem; font-size: .92rem; color: var(--ink); }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px;
  background: var(--sky-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230092d8' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Tabs (segmentos) ---------- */
.tabs {
  position: relative; display: flex; width: fit-content; margin: 0 auto 2.25rem; padding: 4px;
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r);
}
.tab {
  position: relative; z-index: 1; font: inherit; font-weight: 500; font-size: .92rem;
  padding: .6rem 1.35rem; border: 0; background: none; color: var(--muted); cursor: pointer; transition: color .3s;
}
.tab.active { color: #fff; }
.tab-indicator {
  position: absolute; top: 4px; bottom: 4px; left: 4px; z-index: 0; background: var(--navy-800); border-radius: 9px;
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.tab-panel { animation: fadeUp .5s var(--ease); }
.seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.seg-card {
  padding: 1.5rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px);
  border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.seg-card:hover { transform: translateY(-3px); border-color: #bfe0f4; box-shadow: var(--shadow); }
.seg-card h4 { margin-bottom: .35rem; }
.seg-card p { font-size: .9rem; margin: 0; color: var(--muted); }
.seg-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1rem; padding: 1.1rem 1.4rem; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--navy-800), var(--navy-600)); color: #dbe7f2;
}
.seg-foot p { margin: 0; }
.seg-foot .btn-primary { background: #fff; color: var(--navy-800); box-shadow: none; }
.seg-foot .btn-primary:hover { background: var(--sky-50); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Experiencia ---------- */
.exp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: stretch; }
.exp-copy { display: flex; flex-direction: column; }
.exp-copy h2 { margin-bottom: .75rem; }
.exp-copy p { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 34rem; margin-bottom: .9rem; }
.exp-copy p.exp-lead { color: var(--navy-700); font-size: 1.12rem; line-height: 1.6; }
.exp-copy strong { color: var(--navy-800); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 0; overflow: hidden; margin-top: 1.25rem; }
.stat { padding: 1.3rem 1.5rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { display: flex; align-items: baseline; }
.stat-num, .stat-plus { font-size: 2.4rem; font-weight: 700; color: var(--navy-800); letter-spacing: -0.03em; line-height: 1; }
.stat-plus { color: #0069b4; }
.stat-label { display: block; margin-top: .45rem; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.features { display: flex; flex-direction: column; gap: .8rem; }
.features .feature { flex: 1; align-items: center; }
.feature {
  display: flex; gap: 1.1rem; padding: 1.3rem 1.4rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.feature:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.feature .icon-box { margin: 0; }
.feature h4 { margin-bottom: .25rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

.process { margin-top: 4.5rem; }
.process-title { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { padding: 1.5rem; border-radius: var(--r-lg); background: rgba(255,255,255,.8); border: 1px solid var(--line); }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: .9rem;
  border-radius: var(--r-sm); font-size: .85rem; font-weight: 600; color: #fff; background: var(--sky-500);
}
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Página calculadora ---------- */
.page-hero { position: relative; min-height: 100vh; padding: calc(var(--nav-h) + 48px) 0 72px; display: flex; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 500; color: var(--navy-600); margin-bottom: 1.25rem; }
.back-link:hover { color: var(--sky-500); }
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.calc-copy p { color: #3c5570; font-size: 1.05rem; }
.calc-copy h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.calc-card {
  padding: 1.6rem; display: grid; gap: .9rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.calc-result { display: grid; gap: .1rem; padding: 1.1rem 1.3rem; border-radius: var(--r); background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); color: #cfe6f7; }
.calc-result span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.calc-result strong { font-size: 2.1rem; color: #fff; font-weight: 700; letter-spacing: -0.02em; }
.calc-result small { font-size: .85rem; color: var(--sky-300); }
.calc-note { font-size: .78rem; color: var(--muted); margin: 0; }

/* ---------- Formularios ---------- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 500; color: var(--navy-700); }
input, select, textarea {
  font: inherit; font-size: .92rem; font-weight: 400; color: var(--ink);
  padding: .62rem .85rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background-color: #fff; width: 100%; transition: border-color .2s, box-shadow .2s;
}
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6b7f' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-400); box-shadow: 0 0 0 3px rgba(0,146,216,.15); }
input.invalid, textarea.invalid { border-color: #f87171; }
textarea { resize: vertical; min-height: 64px; }

/* ---------- FAQ (dos columnas, inspirado en "Dual Column FAQ" de 21st.dev) ---------- */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 3rem; max-width: 1000px; margin: 0 auto;
  padding: 1rem 2rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow);
}
.faq-item { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.faq-item:nth-last-child(-n+2) { border-bottom: 0; }
.faq-q { min-height: 62px; }
.faq-grid.in .faq-item { opacity: 1; transform: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: .96rem; font-weight: 500; color: var(--navy-800); transition: color .2s;
}
.faq-q:hover { color: #0069b4; }
.faq-q:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 4px; border-radius: 6px; }
.faq-chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease), color .2s; }
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(180deg); color: #0069b4; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 2rem 1.15rem 0; color: var(--muted); font-size: .92rem; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.contact-info > p { color: var(--muted); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list small { display: block; font-size: .76rem; color: var(--muted); }
.contact-list a, .contact-list span:not(.ci) { color: var(--navy-800); font-weight: 500; }
.contact-list a:hover { color: var(--sky-500); }
.ci { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: var(--r-sm); background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--sky-500); }
.ci svg { width: 19px; height: 19px; }
.socials { display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--navy-700); transition: background .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--sky-500); border-color: var(--sky-500); color: #fff; }
.socials svg { width: 18px; height: 18px; }

.contact-form {
  display: grid; gap: .6rem; padding: 1.25rem 1.4rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .15rem; }
.contact-form h3 { margin: 0; font-size: 1.15rem; }
.seg-switch { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--sky-50); border: 1px solid #d3ebf8; }
.seg-switch label { display: block; }
.seg-switch input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.seg-switch span { display: block; padding: .3rem .9rem; border-radius: 7px; cursor: pointer; font-size: .82rem; color: var(--muted); transition: background .25s, color .25s; }
.seg-switch input:checked + span { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.seg-switch input:focus-visible + span { outline: 2px solid var(--sky-300); }
.btn-block { width: 100%; }
.opt { font-weight: 400; color: var(--muted); }
.consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .78rem; font-weight: 400; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin: 1px 0 0; padding: 0; accent-color: #0069b4; cursor: pointer; }
.consent.invalid span { color: #dc2626; }
.form-msg { margin: 0; font-size: .85rem; color: var(--sky-500); }
.form-msg:empty { display: none; }

/* ---------- Footer ---------- */
.footer {
  position: relative; color: #9fb3c8; font-size: .9rem; padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-400), transparent);
}
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--sky-50); transform: translateY(-1px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-brand p { margin: 0 0 1.25rem; max-width: 24rem; line-height: 1.7; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff;
  transition: background .25s, border-color .25s, transform .25s;
}
.footer-social a:hover { background: var(--sky-500); border-color: var(--sky-500); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h4 { color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.footer-col a { transition: color .2s, transform .2s; width: fit-content; }
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem;
}
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; color: #9fb3c8; transition: color .2s; }
.to-top:hover { color: #fff; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; justify-content: flex-end; height: 56px; min-width: 56px; padding: 0 14px;
  border-radius: 999px; background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .8);
  animation: wa-blink 2.6s ease-in-out infinite;
  transition: transform .3s var(--ease), padding .35s var(--ease);
}
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: wa-ring 2.6s ease-out infinite; pointer-events: none;
}
.wa-float::after { animation-delay: 1.3s; }
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-weight: 600; font-size: .95rem;
  transition: max-width .4s var(--ease), opacity .3s, margin .4s var(--ease);
}
.wa-float:hover, .wa-float:focus-visible { padding: 0 18px 0 20px; animation-play-state: paused; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 120px; opacity: 1; margin-right: .6rem; }
.wa-float:hover::before, .wa-float:hover::after { animation: none; opacity: 0; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes wa-blink { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15); transform: scale(1.04); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .exp-grid, .calc-wrap, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .seg-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .section-head.left { text-align: center; margin: 0 auto; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav { justify-content: space-between; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,.85); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy-800); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .logos { margin-top: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: auto; flex-direction: column; }
  .bento-card.span-2 .bento-media { flex: none; height: 220px; }
  .seg-grid, .steps { grid-template-columns: 1fr; }
  .stat { padding: 1rem; }
  .faq-grid { grid-template-columns: 1fr; padding: .5rem 1.25rem; }
  .faq-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .field-row { gap: .6rem; }
  .stat-num, .stat-plus { font-size: 1.7rem; }
  .stat { padding: .9rem .8rem; }
  .tab { padding: .55rem .9rem; font-size: .85rem; }
  .contact-form, .calc-card { padding: 1.25rem; }
  .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Formulario compacto */
.contact-form label { gap: .25rem; }
.contact-form input, .contact-form select, .contact-form textarea { padding: .52rem .8rem; font-size: .9rem; }
.contact-form select { padding-right: 2.4rem; }
.contact-form .field-row { gap: .7rem; }
.contact-form .btn-block { padding: .8rem 1.4rem; }
.contact-form .consent { margin-top: .1rem; }
