﻿/* ── variables ──────────────────────────────────────────────── */
:root {
  /* colores de estructura técnica (azul marino/carbón) */
  --sc-darkest:  #060A14;
  --sc-dark:     #1A1F36;
  --sc-forest:   #252B47;

  /* verde de marca smartcivita (logo, ctas, eyebrows) */
  --sc-mid:      #4CB848;
  --sc-bright:   #6DC840;
  --sc-light:    #A4D87A;
  --sc-pale:     #EEF1FF;   /* fondo azul pálido para íconos */
  --sc-paler:    #F8F9FC;

  /* neutros de interfaz */
  --bg:          #FFFFFF;
  --bg-2:        #F9FAFB;
  --text:        #111827;
  --text-mid:    #374151;
  --muted:       #6B7280;
  --border:      #E5E7EB;
  --shadow:      rgba(26,31,54,.10);

  --nav-h: 68px;
  --r: 12px;
  --r-lg: 20px;
  --max: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #0C0F1A;
    --bg-2:     #111320;
    --text:     #E8EEFF;
    --text-mid: #B0B8D4;
    --muted:    #6B7396;
    --border:   #1F2340;
    --shadow:   rgba(0,0,0,.4);
    --sc-pale:  #1A1D2E;
    --sc-paler: #111320;
  }
}
:root[data-theme="dark"] {
  --bg:       #0C0F1A;
  --bg-2:     #111320;
  --text:     #E8EEFF;
  --text-mid: #B0B8D4;
  --muted:    #6B7396;
  --border:   #1F2340;
  --shadow:   rgba(0,0,0,.4);
  --sc-pale:  #1A1D2E;
  --sc-paler: #111320;
}
:root[data-theme="light"] {
  --bg:       #FFFFFF;
  --bg-2:     #F9FAFB;
  --text:     #111827;
  --text-mid: #374151;
  --muted:    #6B7280;
  --border:   #E5E7EB;
  --shadow:   rgba(26,31,54,.10);
  --sc-pale:  #EEF1FF;
  --sc-paler: #F8F9FC;
}

/* ── base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── utilidades ─────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: 5.5rem var(--pad); }
section .container { padding: 0; }

.eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--sc-mid); margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800;
  color: var(--sc-dark); line-height: 1.13; letter-spacing: -.7px;
  text-wrap: balance; margin-bottom: .85rem;
}
.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.75; max-width: 540px;
}
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.45rem; border-radius: 9px; font-weight: 600;
  font-size: .88rem; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit; transition: all .18s;
  white-space: nowrap;
}
.btn-dark  { background: var(--sc-dark); color: #fff; }
.btn-dark:hover  { background: var(--sc-forest); transform: translateY(-1px); }
.btn-green { background: var(--sc-mid); color: #fff; }
.btn-green:hover { background: var(--sc-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }
.btn-outline { background: transparent; color: var(--sc-dark); border: 1.5px solid var(--sc-dark); }
.btn-outline:hover { background: var(--sc-pale); }

/* ── logo ───────────────────────────────────────────────────── */
.sc-logo-mark { flex-shrink: 0; }

/* ── nav ───────────────────────────────────────────────────── */
.sc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  transition: background .3s, border-color .3s;
}
@media (prefers-color-scheme: dark) {
  .sc-nav { background: rgba(12,15,26,.94); }
}
:root[data-theme="dark"] .sc-nav { background: rgba(12,15,26,.94); }
:root[data-theme="light"] .sc-nav { background: rgba(255,255,255,.94); }

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-wordmark .w-smart { font-size: 1.05rem; font-weight: 800; color: var(--sc-dark); letter-spacing: -.3px; }
.nav-logo-wordmark .w-civita { font-size: .58rem; font-weight: 600; color: var(--sc-mid); letter-spacing: 3.5px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
  list-style: none; margin-left: auto;
}
.nav-links a {
  text-decoration: none; font-size: .85rem; font-weight: 500;
  color: var(--muted); transition: color .18s;
}
.nav-links a:hover { color: var(--sc-dark); }

/* botón cta del nav siempre verde */
.nav-cta {
  background: var(--sc-mid) !important;
  color: #fff !important;
  padding: .42rem 1.05rem; border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--sc-bright) !important; }

.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: .25rem; color: var(--text); margin-left: auto;
}

/* ── hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, #0A0F1E 0%, #111827 50%, #1E2643 100%);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 5rem) var(--pad) 5rem;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(80px);
}
/* brillo azul técnico arriba derecha, verde suave abajo izquierda */
.hero-glow-1 { width: 560px; height: 560px; background: rgba(37,99,235,.18); top: -120px; right: -100px; }
.hero-glow-2 { width: 320px; height: 320px; background: rgba(76,184,72,.10); bottom: -60px; left: 8%; }
.hero-inner {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: .32rem .85rem; border-radius: 50px;
  font-size: .73rem; font-weight: 600; letter-spacing: .8px;
  color: rgba(255,255,255,.7); text-transform: uppercase;
  margin-bottom: 1.35rem;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sc-mid); }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 1.25rem; text-wrap: balance;
}
.hero h1 em { color: var(--sc-bright); font-style: normal; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.6);
  line-height: 1.75; max-width: 460px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 3rem; display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.hero-trust-label { font-size: .75rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; }
.hero-trust-items { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.trust-chip {
  font-size: .77rem; color: rgba(255,255,255,.5); font-weight: 500;
  display: flex; align-items: center; gap: .35rem;
}
.trust-chip::before {
  content: ''; display: block; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(76,184,72,.25); border: 1.5px solid rgba(76,184,72,.45); flex-shrink: 0;
}

/* mockup del dashboard en el hero */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-mockup {
  width: 100%; max-width: 480px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(37,99,235,.15);
}
.mockup-topbar {
  height: 38px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
.mockup-sidebar { display: flex; }
.mockup-sidebar-panel {
  width: 52px; border-right: 1px solid rgba(255,255,255,.06);
  padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.sidebar-icon { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,.06); }
.sidebar-icon.active { background: rgba(76,184,72,.28); }
.mockup-content { flex: 1; padding: 16px; }
.mc-row { display: flex; gap: 8px; margin-bottom: 8px; }
.mc-card { border-radius: 7px; background: rgba(255,255,255,.06); }
.mc-stat { flex: 1; height: 52px; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; }
.mc-stat-num { width: 40px; height: 10px; background: rgba(76,184,72,.5); border-radius: 3px; margin-bottom: 5px; }
.mc-stat-label { width: 55px; height: 6px; background: rgba(255,255,255,.12); border-radius: 2px; }
.mc-bar-group { flex: 1; }
.mc-chart { height: 80px; display: flex; align-items: flex-end; gap: 4px; padding: 8px; }
.mc-bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(37,99,235,.3); }
.mc-bar.hi { background: rgba(76,184,72,.6); }
.mc-table { height: 70px; }
.mc-th { height: 16px; background: rgba(255,255,255,.04); margin-bottom: 4px; }
.mc-tr { height: 12px; background: rgba(255,255,255,.03); margin-bottom: 3px; border-radius: 2px; }

/* ── barra de estadísticas ──────────────────────────────────── */
.stats-bar { background: var(--sc-dark); padding: 2.5rem var(--pad); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--sc-mid); letter-spacing: -1px; display: block; line-height: 1; margin-bottom: .4rem; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.55); letter-spacing: .3px; }

/* ── nosotros / misión visión valores ───────────────────────── */
.nosotros { background: var(--bg-2); }
.mvv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.mvv-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem;
  border-top: 3px solid var(--sc-mid);
}
.mvv-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--sc-pale); display: flex; align-items: center;
  justify-content: center; color: var(--sc-dark); margin-bottom: 1.1rem;
}
.mvv-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .65rem; text-transform: uppercase; letter-spacing: .5px; }
.mvv-card p { font-size: .875rem; color: var(--muted); line-height: 1.72; }
.valores-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.valor-tag {
  font-size: .75rem; font-weight: 600; padding: .28rem .75rem;
  border-radius: 50px;
  background: #EAF6E2; color: #006B2B; border: 1px solid #C2E4C0;
}

/* ── servicios ─────────────────────────────────────────────── */
.que-hacemos { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.svc-card {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 2rem; background: var(--bg);
  transition: box-shadow .2s, transform .2s;
}
.svc-card:hover { box-shadow: 0 8px 32px var(--shadow); transform: translateY(-3px); }
.svc-icon {
  width: 48px; height: 48px; border-radius: 11px;
  background: var(--sc-pale); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.25rem; color: var(--sc-dark);
}
.svc-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.svc-card p { font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* ── productos ─────────────────────────────────────────────── */
.productos { background: var(--bg-2); }
.productos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.prod-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; background: var(--bg);
  transition: box-shadow .22s, transform .22s;
}
.prod-card:hover { box-shadow: 0 12px 48px var(--shadow); transform: translateY(-4px); }
.prod-card.featured { border-color: var(--sc-mid); border-width: 2px; grid-column: 1 / -1; display: grid; grid-template-columns: 320px 1fr; }
.prod-card.featured .prod-thumb { height: auto; min-height: 180px; }
.prod-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); position: relative; background: var(--sc-pale);
}
.prod-thumb.dark {
  background: linear-gradient(135deg, #0A0F1E 0%, #1A1F36 100%);
  color: rgba(255,255,255,.35);
}
.prod-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--sc-mid); color: #fff;
  font-size: .68rem; font-weight: 700; padding: .22rem .65rem;
  border-radius: 50px; text-transform: uppercase; letter-spacing: .5px;
}
.prod-body { padding: 1.5rem; }
.prod-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .45rem; }
.prod-body p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.prod-link {
  font-size: .83rem; font-weight: 600; color: var(--sc-dark);
  text-decoration: none; display: inline-flex; align-items: center; gap: .3rem;
  transition: gap .18s, color .18s;
}
.prod-link:hover { color: var(--sc-mid); gap: .55rem; }

/* ── por qué ───────────────────────────────────────────────── */
.por-que { background: var(--bg); }
.porq-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.porq-visual {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0A0F1E 0%, #1A1F36 60%, #252B47 100%);
  height: 400px; display: flex; align-items: center; justify-content: center;
}
.porq-visual-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px; width: 100%; }
.pv-card { border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); padding: 14px; }
.pv-card-label { width: 60%; height: 7px; background: rgba(255,255,255,.15); border-radius: 3px; margin-bottom: 8px; }
.pv-card-val { width: 40%; height: 14px; background: rgba(76,184,72,.45); border-radius: 4px; }
.pv-chart-bar { height: 60px; display: flex; align-items: flex-end; gap: 5px; margin-top: 8px; }
.pv-bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(37,99,235,.35); }
.pv-bar.hi { background: rgba(76,184,72,.65); }
.pv-bar.md { background: rgba(37,99,235,.5); }
.porq-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.porq-item { display: flex; gap: 1rem; }
.porq-check {
  width: 34px; height: 34px; min-width: 34px;
  background: var(--sc-pale); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-dark); margin-top: .05rem;
}
.porq-text h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.porq-text p { font-size: .865rem; color: var(--muted); line-height: 1.65; }

/* ── cobertura ─────────────────────────────────────────────── */
.cobertura { background: var(--bg-2); }
.ciudades-grid {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; max-width: 700px; margin: 0 auto;
}
.ciudad-item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .85rem; font-weight: 500; color: var(--text-mid);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 50px; padding: .45rem 1rem;
  transition: border-color .18s, color .18s;
}
.ciudad-item:hover { border-color: var(--sc-mid); color: var(--sc-dark); }
.ciudad-item svg { color: var(--sc-mid); flex-shrink: 0; }
.ciudad-tolima { border-color: var(--sc-mid); color: var(--sc-dark); background: #EAF6E2; }

/* ── equipo ────────────────────────────────────────────────── */
.equipo { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--sc-pale); border: 3px solid var(--border);
  margin: 0 auto 1rem; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.avatar-placeholder { font-size: 1.8rem; font-weight: 700; color: var(--sc-dark); }
.team-card h4 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.team-role { font-size: .78rem; color: var(--sc-mid); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .5rem; }
.team-bio { font-size: .825rem; color: var(--muted); line-height: 1.6; }

/* ── banda cta ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0A0F1E 0%, #1A1F36 55%, #252B47 100%);
  padding: 5rem var(--pad); text-align: center; position: relative; overflow: hidden;
}
.cta-band-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); }
.cta-band-glow-1 { width: 400px; height: 400px; background: rgba(76,184,72,.10); top: -120px; left: -80px; }
.cta-band-glow-2 { width: 320px; height: 320px; background: rgba(37,99,235,.12); bottom: -80px; right: 5%; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); font-weight: 800; color: #fff; letter-spacing: -.6px; text-wrap: balance; margin-bottom: .75rem; }
.cta-band p { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-band-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-note { margin-top: 1rem; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ── contacto ──────────────────────────────────────────────── */
.contacto { background: var(--bg-2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info-title { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.25rem; }
.contact-icon {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--sc-pale); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; color: var(--sc-dark);
}
.contact-detail-text .cd-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: .15rem; }
.contact-detail-text .cd-val { font-size: .9rem; color: var(--text-mid); }
.contact-form-wrap {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.25rem;
}
.form-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.fg label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.fg input, .fg select, .fg textarea {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: .65rem .9rem; font-size: .9rem;
  color: var(--text); outline: none; font-family: inherit;
  transition: border-color .18s; width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--sc-mid); }
.fg textarea { min-height: 90px; resize: vertical; }
.btn-form {
  width: 100%; padding: .85rem; border-radius: 9px;
  background: var(--sc-dark); color: #fff; border: none;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .18s; margin-top: .5rem;
}
.btn-form:hover { background: var(--sc-forest); }

/* ── pie de página ──────────────────────────────────────────── */
.footer { background: #080B15; color: rgba(255,255,255,.5); padding: 4rem var(--pad) 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr repeat(3,1fr);
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2rem;
}
.footer-brand-desc { font-size: .85rem; line-height: 1.75; margin-top: 1rem; color: rgba(255,255,255,.38); }
.footer-col h5 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,.85); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.4); text-decoration: none; transition: color .18s; }
.footer-links a:hover { color: var(--sc-mid); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.25);
}
.footer-bottom-right { display: flex; gap: 1.5rem; }
.footer-bottom a { color: rgba(255,255,255,.25); text-decoration: none; transition: color .18s; }
.footer-bottom a:hover { color: rgba(255,255,255,.55); }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .productos-grid { grid-template-columns: repeat(2,1fr); }
  .prod-card.featured { grid-column: auto; display: block; }
  .prod-card.featured .prod-thumb { min-height: 160px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .porq-inner { grid-template-columns: 1fr; }
  .porq-visual { height: 260px; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 4rem var(--pad); }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .services-grid, .productos-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .stats-bar .container { grid-template-columns: repeat(2,1fr); }
}

/* ── animaciones ────────────────────────────────────────────── */

/* secuencia de entrada del hero */
@keyframes floatUp { from{opacity:0;transform:translateY(24px);}to{opacity:1;transform:translateY(0);} }
.hero-badge   { animation: floatUp .7s ease .1s both; }
.hero h1      { animation: floatUp .75s ease .25s both; }
.hero-sub     { animation: floatUp .7s ease .4s both; }
.hero-actions { animation: floatUp .7s ease .55s both; }
.hero-trust   { animation: floatUp .65s ease .75s both; }

/* pulso del punto del badge */
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(76,184,72,.5);}60%{box-shadow:0 0 0 8px rgba(76,184,72,0);} }
.hero-badge-dot { animation: dotPulse 2.4s ease-in-out infinite; }

/* parpadeo del cursor en el tagline (7× luego desaparece) */
.hero h1 em { position: relative; }
.hero h1 em::after {
  content: '|'; font-style: normal; color: var(--sc-bright);
  animation: cursorBlink .9s 7 1.2s forwards;
}
@keyframes cursorBlink { 0%,49%{opacity:1;}50%,100%{opacity:0;} }

/* símbolos de código flotantes — elementos inyectados vía js */
.code-float {
  position: absolute; font-family: 'Courier New', monospace;
  pointer-events: none; user-select: none; z-index: 0;
  color: rgba(76,184,72,.11);
  animation: floatCode linear infinite; white-space: nowrap;
}
@keyframes floatCode {
  0%  { transform: translateY(108vh) rotate(-6deg); opacity: 0; }
  8%  { opacity: 1; }
  92% { opacity: 1; }
  100%{ transform: translateY(-60px) rotate(6deg); opacity: 0; }
}

/* deriva de los orbes luminosos del hero */
@keyframes glowDrift { 0%,100%{transform:translate(0,0);}50%{transform:translate(-30px,20px);} }
.hero-glow-1 { animation: glowDrift 14s ease-in-out infinite; }
.hero-glow-2 { animation: glowDrift 11s ease-in-out 2s infinite reverse; }

/* barras del gráfico del mockup crecen desde abajo */
@keyframes barGrow { to { transform: scaleY(1); } }
.mc-bar { transform-origin: bottom; transform: scaleY(0); animation: barGrow .55s cubic-bezier(.16,1,.3,1) both; }
.mc-chart .mc-bar:nth-child(1){animation-delay:.85s;}
.mc-chart .mc-bar:nth-child(2){animation-delay:1.0s;}
.mc-chart .mc-bar:nth-child(3){animation-delay:1.15s;}
.mc-chart .mc-bar:nth-child(4){animation-delay:1.3s;}
.mc-chart .mc-bar:nth-child(5){animation-delay:1.45s;}
.mc-chart .mc-bar:nth-child(6){animation-delay:1.6s;}
.mc-chart .mc-bar:nth-child(7){animation-delay:1.75s;}

/* ── revelaciones al scroll — js agrega .is-vis ─────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-vis { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"]{ transition-delay: .07s; }
.reveal[data-d="2"]{ transition-delay: .15s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .33s; }

.reveal-scale {
  opacity: 0; transform: scale(.88);
  transition: opacity .5s ease, transform .52s cubic-bezier(.34,1.56,.64,1);
}
.reveal-scale.is-vis { opacity: 1; transform: scale(1); }
.reveal-scale[data-d="1"]{ transition-delay: .07s; }
.reveal-scale[data-d="2"]{ transition-delay: .16s; }
.reveal-scale[data-d="3"]{ transition-delay: .25s; }
.reveal-scale[data-d="4"]{ transition-delay: .34s; }

.reveal-left {
  opacity: 0; transform: translateX(-26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-left.is-vis { opacity: 1; transform: translateX(0); }

/* brillo del ícono al hover en la card */
.svc-icon { transition: background .22s, box-shadow .22s, color .22s; }
.svc-card:hover .svc-icon {
  background: rgba(76,184,72,.15);
  box-shadow: 0 0 0 8px rgba(76,184,72,.06);
  color: var(--sc-mid);
}

/* pulso ambiental de la card de producto destacado */
@keyframes featPulse { 0%,100%{box-shadow:0 0 0 0 rgba(76,184,72,.08);}50%{box-shadow:0 14px 50px rgba(76,184,72,.09),0 0 0 4px rgba(76,184,72,.05);} }
.prod-card.featured { animation: featPulse 3.8s ease-in-out infinite; }

/* por qué — barras crecen al scroll (js agrega .is-vis) */
.pv-bar { transform-origin: bottom; transform: scaleY(0); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.pv-bar.is-vis { transform: scaleY(1); }

/* por qué — animación de entrada del ícono check */
.porq-check svg { opacity: 0; transform: scale(0) rotate(-45deg); transition: opacity .4s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.porq-item.is-vis .porq-check svg { opacity: 1; transform: scale(1) rotate(0deg); }

/* píldoras de ciudad (js agrega .is-vis + delay escalonado) */
.ciudad-item { opacity: 0; transform: scale(.82); transition: opacity .35s ease, transform .38s cubic-bezier(.34,1.56,.64,1), border-color .18s, color .18s; }
.ciudad-item.is-vis { opacity: 1; transform: scale(1); }

/* detalles de contacto entran desde la izquierda */
.contact-detail { opacity: 0; transform: translateX(-14px); transition: opacity .4s ease, transform .4s ease; }
.contact-detail.is-vis { opacity: 1; transform: translateX(0); }

/* banda cta — orbes derivan lentamente */
@keyframes orbDrift { 0%,100%{transform:translate(0,0) scale(1);}33%{transform:translate(55px,-45px) scale(1.1);}66%{transform:translate(-30px,50px) scale(.92);} }
.cta-band-glow-1 { animation: orbDrift 13s ease-in-out infinite; }
.cta-band-glow-2 { animation: orbDrift 18s ease-in-out 5s infinite reverse; }

/* shimmer de estadísticas al terminar el conteo */
@keyframes statShimmer { 0%{filter:brightness(1) drop-shadow(0 0 0 rgba(76,184,72,0));}45%{filter:brightness(1.4) drop-shadow(0 0 12px rgba(76,184,72,.65));}100%{filter:brightness(1) drop-shadow(0 0 0 rgba(76,184,72,0));} }
.stat-num.shimmer { animation: statShimmer 1.1s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-scale, .reveal-left { opacity: 1; transform: none; }
  .ciudad-item, .contact-detail { opacity: 1; transform: none; }
  .porq-check svg { opacity: 1; transform: scale(1) rotate(0deg); }
  .pv-bar, .mc-bar { transform: scaleY(1); }
}
