/* =========================================================
   SCSAM IA — Sitio corporativo
   Tema oscuro · azul noche / azul eléctrico / cian
   ========================================================= */

:root {
  --bg: #050b1a;
  --bg-2: #081228;
  --surface: #0c1a36;
  --surface-2: #10224a;
  --border: rgba(96, 165, 250, 0.16);
  --border-strong: rgba(34, 211, 238, 0.45);
  --text: #e6edf8;
  --text-muted: #94a3c0;
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --cyan: #22d3ee;
  --warn: #f59e0b;
  --ok: #10b981;
  --danger: #f87171;
  --grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px var(--border-strong), 0 18px 40px -18px rgba(34, 211, 238, 0.45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--blue); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(34, 211, 238, .75); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(34, 211, 238, .06); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 11, 26, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font: 700 20px/1 var(--font-display); letter-spacing: .02em; }
.brand-name strong { color: var(--cyan); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.nav-link { color: var(--text-muted); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; transition: color .2s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 80px) 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 14s ease-in-out infinite; }
.glow-1 { width: 520px; height: 520px; background: #1d4ed8; top: -160px; left: -120px; }
.glow-2 { width: 420px; height: 420px; background: #0891b2; top: 120px; right: -140px; animation-delay: -7s; opacity: .35; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 40px); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--cyan); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25);
  margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } }

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; margin-bottom: 22px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--text-muted); font-size: 14px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: "✓"; color: var(--cyan); font-weight: 700; }

/* Dashboard ilustrativo */
.dash-card {
  background: linear-gradient(180deg, rgba(16,34,74,.9), rgba(8,18,40,.95));
  border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow), 0 0 80px -30px rgba(34,211,238,.4);
  overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .dash-card { transform: perspective(1200px) rotateY(0) rotateX(0); }
.dash-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #1e3a6b; }
.dots i:first-child { background: #3b82f6; }
.dash-title { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.dash-body { padding: 24px; display: grid; gap: 22px; }

.score-ring { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(96,165,250,.15); stroke-width: 10; }
.ring-fg {
  fill: none; stroke: var(--cyan); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 314; animation: ring 2s .4s var(--ease) forwards;
}
@keyframes ring { to { stroke-dashoffset: 69; } }
.score-val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-val span { font: 700 36px/1 var(--font-display); }
.score-val small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.dash-list { display: grid; gap: 10px; font-size: 14px; }
.dash-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; }
.dash-list b { margin-left: auto; color: var(--cyan); }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tag-warn { background: rgba(245,158,11,.15); color: var(--warn); }
.tag-ok { background: rgba(16,185,129,.15); color: var(--ok); }
.tag-info { background: rgba(59,130,246,.18); color: #93c5fd; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 70px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .85;
  transform-origin: bottom; animation: grow 1.2s var(--ease) both;
}
.bars span:nth-child(2) { animation-delay: .1s; } .bars span:nth-child(3) { animation-delay: .2s; }
.bars span:nth-child(4) { animation-delay: .3s; } .bars span:nth-child(5) { animation-delay: .4s; }
.bars span:nth-child(6) { animation-delay: .5s; }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  color: var(--cyan); margin-bottom: 14px;
}

/* ---------- Empresas que confían ---------- */
.clients {
  padding: 56px 0 64px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-title {
  text-align: center; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 36px;
}
.clients-marquee { margin-bottom: 0; padding: 12px 0; }
.clients-track { animation-duration: 10s; }
.clients-track > * { margin-right: 24px; }
.client-logo {
  flex: none; width: 210px; height: 104px; padding: 16px 22px;
  
  display: grid; place-items: center;
  background: #ffffff; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.client-logo img {
  max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(100%) contrast(1.05); opacity: .72;
  transition: filter .35s, opacity .35s;
}
.client-logo:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--cyan), 0 16px 36px -14px rgba(34,211,238,.55); }
.client-logo:hover img { filter: none; opacity: 1; }

/* ---------- Prueba social ---------- */
.proof { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); padding-bottom: 90px; }

.marquee {
  overflow: hidden; margin-bottom: 64px; padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* margen por elemento (no gap) para que el bucle al -50% encaje sin salto */
.marquee-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track > * { margin-right: 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.logo-chip {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 16px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 600; font-size: 15px;
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.logo-chip svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.logo-chip:hover { color: var(--text); border-color: var(--border-strong); box-shadow: var(--glow); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.metric {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(12,26,54,.4) 100%);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .8s var(--ease);
}
.metric::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.metric:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: transparent; }
.metric-num { font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--font-display); margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric h3 { font-size: 1.15rem; margin-bottom: 8px; }
.metric p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- Soluciones ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); font: 500 14px var(--font); cursor: pointer; transition: all .25s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active { background: var(--grad); color: #04101f; border-color: transparent; font-weight: 600; }

.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sol-card {
  position: relative; display: flex; flex-direction: column; padding: 34px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, opacity .4s;
}
.sol-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.12), transparent 60%);
}
.sol-card:hover, .sol-card:focus-within, .sol-card.is-open { transform: translateY(-6px); box-shadow: var(--glow); border-color: transparent; }
.sol-card:hover::after { opacity: 1; }
.sol-card.is-hidden { display: none; }
.sol-card.fade-in { animation: fadeUp .5s var(--ease) both; }

.sol-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(34,211,238,.12)); border: 1px solid rgba(34,211,238,.3);
}
.sol-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sol-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #93c5fd; margin-bottom: 10px; }
.sol-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.sol-card > p { color: var(--text-muted); }

.sol-details {
  display: grid; gap: 10px; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s, margin .4s;
}
.sol-card.is-open .sol-details { max-height: 240px; opacity: 1; margin: 6px 0 20px; }
.sol-details li { position: relative; padding-left: 26px; font-size: 15px; }
.sol-details li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}
.sol-more {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; color: var(--cyan); font: 600 15px var(--font); cursor: pointer;
}
.sol-more span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; transition: transform .3s var(--ease); }
.sol-card.is-open .sol-more span { transform: rotate(45deg); }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--bg-2); }
.testi-viewport { overflow: hidden; }
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; transition: transform .6s var(--ease); }
.testi-card {
  margin: 0; display: flex; flex-direction: column; padding: 34px 30px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.testi-card::before {
  content: "“"; position: absolute; top: 6px; right: 24px;
  font: 700 110px/1 var(--font-display); color: rgba(59,130,246,.14);
}
.testi-card:hover, .testi-card.is-featured { transform: translateY(-6px); box-shadow: var(--glow); border-color: transparent; }
.testi-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.stars { color: #fbbf24; letter-spacing: 3px; font-size: 15px; }
.testi-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 999px; color: #93c5fd;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3);
}
.person { display: flex; flex-direction: column; line-height: 1.35; }
.person strong { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
.person small { color: var(--cyan) !important; font-weight: 500; }
.testi-card blockquote { margin: 0 0 28px; font-size: 1.05rem; line-height: 1.65; color: var(--text); flex: 1; }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.testi-card figcaption strong { display: block; font-size: 15px; }
.testi-card figcaption small { color: var(--text-muted); font-size: 13px; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #04101f; font: 700 15px var(--font-display);
}
.testi-dots { display: none; justify-content: center; gap: 10px; margin-top: 28px; }
.testi-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(148,163,192,.35); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.testi-dots button.is-active { width: 28px; background: var(--cyan); }

/* ---------- Liderazgo ---------- */
.founder {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 44px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.founder::before { content: ""; position: absolute; width: 400px; height: 400px; left: -150px; top: -150px; background: radial-gradient(circle, rgba(59,130,246,.2), transparent 70%); pointer-events: none; }
.founder-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #0e7490); border: 1px solid var(--border-strong);
  box-shadow: 0 0 60px -20px rgba(34,211,238,.6); overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.founder-photo span { font: 700 72px/1 var(--font-display); color: rgba(255,255,255,.92); }
.founder-info { position: relative; }
.founder-info h3 { font-size: 1.9rem; margin-bottom: 6px; }
.founder-role { color: var(--cyan); font-weight: 600; margin-bottom: 18px; }
.founder-info > p:not(.founder-role) { color: var(--text-muted); }
.founder-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.founder-pillars li { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(59,130,246,.1); border: 1px solid var(--border); }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.contact-copy > p { color: var(--text-muted); font-size: 1.05rem; }
.contact-points { display: grid; gap: 14px; margin-top: 28px; }
.contact-points li { display: flex; gap: 12px; align-items: center; }
.contact-points li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #04101f; background: var(--grad);
}

.contact-form { padding: 36px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  font: 400 15px var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%2322d3ee' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input::placeholder, .field textarea::placeholder { color: #5b6b8c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.valid input, .field.valid select, .field.valid textarea { border-color: rgba(16,185,129,.6); }
.error { min-height: 18px; font-size: 13px; color: var(--danger); margin-top: 5px; }
.char-count { position: absolute; right: 4px; top: 0; font-size: 12px; color: var(--text-muted); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--cyan); }
.error-check { display: block; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 14px; text-align: center; min-height: 20px; }
.form-status.success { color: var(--ok); }
.form-status.fail { color: var(--danger); }

.contact-direct { display: grid; gap: 10px; margin-top: 30px; }
.contact-direct a {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--text); font-weight: 500; font-size: 15px;
  transition: border-color .2s, color .2s;
}
.contact-direct a:hover { border-color: var(--border-strong); color: var(--cyan); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .8); animation-play-state: paused; }
.wa-float:focus-visible { outline-color: #25d366; border-radius: 50%; }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 10px 28px -8px rgba(37,211,102,.6), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px -8px rgba(37,211,102,.6), 0 0 0 0 rgba(37,211,102,0); }
}
.wa-tooltip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; padding: 8px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 500; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.wa-float:hover .wa-tooltip, .wa-float:focus-visible .wa-tooltip { opacity: 1; transform: translate(0, -50%); }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
/* padding inferior para que el botón de WhatsApp no tape la barra final */
.site-footer { background: #030814; border-top: 1px solid var(--border); padding: 70px 0 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 16px; max-width: 340px; }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 18px; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.site-footer nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: 14px; color: var(--text-muted); }
.to-top { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s; }
.to-top:hover { border-color: var(--cyan); transform: translateY(-3px); }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(2,6,16,.75); backdrop-filter: blur(6px); animation: fade .25s both; }
.modal[hidden] { display: none; }
.modal-box { position: relative; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 36px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); animation: fadeUp .35s var(--ease) both; }
.modal-box p { color: var(--text-muted); font-size: 15px; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--text-muted); font-size: 28px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .dash-card { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 32px 24px;
    background: rgba(5,11,26,.98); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-link { display: block; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; padding: 14px; }
  body.nav-open { overflow: hidden; }

  .section { padding: 80px 0; }
  .metrics { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }

  /* Testimonios en carrusel */
  .testi-track { display: flex; gap: 0; }
  .testi-card { flex: 0 0 100%; }
  .testi-card:hover, .testi-card.is-featured { transform: none; }
  .testi-dots { display: flex; }

  .founder { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; gap: 28px; }
  .founder-photo { max-width: 200px; margin: 0 auto; width: 100%; }
  .founder-pillars { justify-content: center; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: calc(var(--header-h) + 48px) 0 70px; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px 18px; }
  .sol-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column-reverse; gap: 16px; text-align: center; }
  .logo-chip { padding: 12px 18px; font-size: 14px; }
  .clients { padding: 44px 0 48px; }
  .client-logo { width: 160px; height: 84px; padding: 12px 16px; }
  .client-logo img { filter: none; opacity: 1; max-height: 58px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-tooltip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
