/* ============================================================
   YET IA — Estilos
   Tema oscuro tecnológico · acento azul eléctrico → cian
   ============================================================ */

:root {
  /* Color system (semantic tokens) */
  --bg:            #060912;
  --bg-soft:       #0a0f1d;
  --surface:       #0e1424;
  --surface-2:     #131a2e;
  --border:        rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);

  --text:          #eef2f9;
  --text-muted:    #9aa7bd;
  --text-dim:      #6b7894;

  --accent:        #3b82f6;   /* azul eléctrico */
  --accent-2:      #22d3ee;   /* cian */
  --accent-soft:   rgba(59, 130, 246, 0.14);
  --gradient:      linear-gradient(120deg, #3b82f6 0%, #22d3ee 100%);
  --gradient-text: linear-gradient(120deg, #60a5fa 0%, #22d3ee 60%, #818cf8 100%);

  --danger:        #f87171;
  --success:       #34d399;

  /* Spacing & shape (8pt rhythm) */
  --radius:   16px;
  --radius-sm: 10px;
  --container: 1180px;

  --shadow:    0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-accent: 0 14px 40px -14px rgba(59, 130, 246, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* Foco accesible y consistente (accesibilidad) */
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Loader de marca (tecnológico) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(59,130,246,.16), transparent 70%),
    var(--bg);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
  overflow: hidden;
}
.loader.hidden { opacity: 0; visibility: hidden; }

/* Grid que se desplaza de fondo */
.loader-gridfx {
  position: absolute; inset: -50%; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  animation: loader-grid 6s linear infinite;
}
@keyframes loader-grid { to { transform: translate(44px, 44px); } }

.loader-core { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* Anillo + logo */
.loader-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-orbit { position: absolute; inset: 0; animation: loader-spin 2.4s linear infinite; }
.loader-orbit-arc { filter: drop-shadow(0 0 6px rgba(56,189,248,.7)); }
.loader-orbit-dot { filter: drop-shadow(0 0 8px rgba(103,232,249,.9)); }
@keyframes loader-spin { to { transform: rotate(360deg); } }

.loader-logo { animation: loader-pulse 1.8s var(--ease) infinite; }
.loader-logo path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: loader-draw 2.2s var(--ease) infinite; }
@keyframes loader-draw {
  0% { stroke-dashoffset: 120; }
  45%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -120; }
}
@keyframes loader-pulse { 0%, 100% { filter: drop-shadow(0 0 0 rgba(56,189,248,0)); } 50% { filter: drop-shadow(0 0 14px rgba(56,189,248,.6)); } }

.loader-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }

.loader-status {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .8rem; color: var(--text-dim); letter-spacing: .04em;
}
.loader-percent { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.loader-unit { color: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
  .loader-gridfx, .loader-orbit, .loader-logo, .loader-logo path { animation: none; }
  .loader-logo path { stroke-dashoffset: 0; }
}

/* ---------- Decorative background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 15% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(45% 40% at 85% 10%, rgba(34, 211, 238, 0.16), transparent 70%);
}

/* Aurora: glows que derivan lentamente */
.bg-aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 120vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(99, 102, 241, 0.20), transparent 60%),
    radial-gradient(38% 32% at 80% 25%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(36% 30% at 55% 60%, rgba(59, 130, 246, 0.16), transparent 60%);
  filter: blur(20px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 5%, 0) scale(1.04); }
}

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 150;
  background: var(--gradient); box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
  transition: width .1s linear; pointer-events: none;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; }
.brand-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-accent { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; color: var(--text-muted); font-size: .95rem; font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--gradient); color: #fff !important; font-weight: 600;
  box-shadow: var(--shadow-accent);
}
.nav-cta:hover { background: var(--gradient) !important; filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 10px; border-radius: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), 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); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), filter .2s, background .2s, border-color .2s;
  font-family: inherit;
}
.btn { position: relative; overflow: hidden; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-accent); }
/* Barrido de luz al pasar el cursor */
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover::before { left: 140%; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(148, 163, 184, 0.06); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(148, 163, 184, 0.12); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 168px 0 96px; position: relative; }
.hero-inner { max-width: 860px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: var(--accent-soft); border: 1px solid var(--border-strong); color: #bfdbfe;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }

.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; margin: 22px 0 18px; }
.gradient-text {
  background: var(--gradient-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-shift 7s ease-in-out infinite;
}
@keyframes gradient-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Palabra rotativa en el badge */
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.25em; }
.rotator-word { display: inline-block; font-weight: 600; color: #e0f2fe; will-change: transform, opacity; }
.rotator-word.out { animation: word-out .4s var(--ease) forwards; }
.rotator-word.in  { animation: word-in .4s var(--ease) forwards; }
@keyframes word-out { to { transform: translateY(-110%); opacity: 0; } }
@keyframes word-in  { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.hero-stats dt { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dd { color: var(--text-dim); font-size: .92rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-soft) 12%, var(--bg-soft) 88%, transparent); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; }
.section-lead { color: var(--text-muted); margin-top: 16px; font-size: 1.08rem; }

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* Spotlight que sigue el cursor */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.10), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease); z-index: 0;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-2); border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.card-icon.sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; flex-shrink: 0; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service p { color: var(--text-muted); font-size: .96rem; }
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.service:hover::after { opacity: .55; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1100px; }
.project { transform-style: preserve-3d; will-change: transform; }
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
/* El recuadro se adapta a la proporción real de la imagen: sin recortes ni barras */
.project-thumb { position: relative; overflow: hidden; background: var(--surface-2); line-height: 0; }
.project-thumb img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease); }
.project:hover .project-thumb img { transform: scale(1.04); }
/* El marcador de iniciales (proyectos sin imagen) mantiene una proporción fija */
.project-thumb .ph {
  aspect-ratio: 16/10; width: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(59,130,246,.35), transparent 60%), var(--surface-2);
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; line-height: 1;
}
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.project-body p { color: var(--text-muted); font-size: .94rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 18px; }
.tag { font-size: .74rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(148,163,184,.08); border: 1px solid var(--border); color: var(--text-muted); }
.project-link {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .95rem; color: var(--accent-2);
  align-self: flex-start; transition: gap .2s var(--ease), color .2s;
}
.project-link:hover { gap: 12px; color: #67e8f9; }

/* ---------- Tech strip (marquee infinito) ---------- */
.tech-strip {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tech-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.tech-strip:hover .tech-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tech-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, color .25s;
}
.tech-chip:hover { transform: translateY(-3px); border-color: var(--border-strong); color: var(--accent-2); }
.tech-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gradient); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 32px 0 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.contact-list a { transition: color .2s; }
.contact-list a:hover { color: var(--accent-2); }

.socials { display: flex; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  transition: transform .2s var(--ease), color .2s, border-color .2s;
}
.socials a:hover { transform: translateY(-3px); color: var(--accent-2); border-color: var(--border-strong); }

/* ---------- Form ---------- */
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text); }
.req { color: var(--accent-2); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: .98rem; transition: border-color .2s var(--ease), box-shadow .2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .82rem; min-height: 1em; }
.form-status { font-size: .92rem; text-align: center; min-height: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #25d366, #128c7e);
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 38px -8px rgba(37, 211, 102, 0.75); }
.wa-float:active { transform: scale(.97); }
.wa-float svg { position: relative; z-index: 1; }
/* Pulso suave */
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .wa-pulse { animation: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 56px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 14px; max-width: 280px; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 6px; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .85rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .75s var(--ease), transform .75s var(--ease), filter .75s var(--ease);
  will-change: transform, opacity;
}
/* Direcciones de entrada (se eligen con data-reveal="left|right|scale|blur|down") */
.reveal[data-reveal="left"]  { transform: translateX(-48px); }
.reveal[data-reveal="right"] { transform: translateX(48px); }
.reveal[data-reveal="down"]  { transform: translateY(-34px); }
.reveal[data-reveal="scale"] { transform: scale(.9); }
.reveal[data-reveal="blur"]  { transform: translateY(24px); filter: blur(10px); }

/* Retardos escalonados */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

.reveal.visible { opacity: 1; transform: none; filter: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(8, 12, 22, 0.96); backdrop-filter: blur(16px); padding: 16px 24px 26px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { text-align: center; margin-top: 6px; }

  .hero { padding: 132px 0 72px; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 560px) {
  .pillars, .services-grid, .projects-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
