/* ============================================================
   styles.css — ITForge · Tema oscuro moderno (glassmorphism + neón)
   ============================================================ */

/* ---------- Tokens de diseño ---------- */
:root {
  /* Fondos */
  --bg-900: #0a0e1a;
  --bg-800: #0f1729;
  --bg-700: #131a2e;
  --bg-card: rgba(255, 255, 255, 0.04);

  /* Texto */
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  /* Acentos */
  --accent: #22d3ee;          /* cian neón */
  --accent-2: #a855f7;        /* violeta */
  --accent-glow: rgba(34, 211, 238, 0.5);
  --violet-glow: rgba(168, 85, 247, 0.45);

  /* Bordes / glass */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;

  /* Medidas */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;

  /* Gradiente de marca */
  --grad-brand: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-900);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Resplandor ambiental fijo detrás de todo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(55% 45% at 85% 15%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(34, 211, 238, 0.08), transparent 60%);
  pointer-events: none;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Tipografía fluida ---------- */
h1, h2, h3, h4 {
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

section {
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  margin-bottom: 1.1rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-brand);
  color: #04111a;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  min-width: 0;
  margin-left: 1.6rem;
}
.brand-media {
  display: inline-flex;
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}
/* Cuando el logo real no carga y cae al SVG provisional,
   mostramos también el texto de marca para identificarla. */
.brand-logo.fallback ~ .brand-text { display: inline; }
.brand-logo:not(.fallback)[src*="itforge_logo_full"] ~ .brand-text { display: none; }
.brand-logo:not(.fallback)[src*="itforge_logo_full"] {
  width: auto;
  height: 44px;
  max-width: 210px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

/* Toggle idioma */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass);
}
.lang-toggle button {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.lang-toggle button.active {
  background: var(--grad-brand);
  color: #04111a;
}

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 540px; margin-bottom: 2.2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
}

/* Terminal glass decorativa */
.terminal {
  background: rgba(15, 23, 41, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px var(--accent-glow);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.hero-visual:hover .terminal { transform: rotate(0deg) translateY(-6px); }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.terminal-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar .dot.r { background: #ff5f57; }
.terminal-bar .dot.y { background: #febc2e; }
.terminal-bar .dot.g { background: #28c840; }
.terminal-bar .title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }
.terminal-body {
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.terminal-body .cmd { color: var(--accent); }
.terminal-body .ok { color: #28c840; }
.terminal-body .warn { color: #febc2e; }
.terminal-body .out { color: var(--text); }
.cursor {
  display: inline-block;
  width: 8px; height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(2) infinite;
}

/* Tarjeta flotante de stat */
.float-card {
  position: absolute;
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
}
.float-card .ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #04111a;
}
.float-card .num { font-weight: 800; font-size: 1.15rem; }
.float-card .lbl { font-size: 0.75rem; color: var(--text-muted); }
.float-card.fc-1 { top: 6%; left: -8%; }
.float-card.fc-2 { bottom: 8%; right: -6%; }

/* ============================================================
   STACK / TECNOLOGÍAS
   ============================================================ */
.stack {
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.stack-inner { display: flex; flex-direction: column; gap: 1.6rem; align-items: center; }
.stack-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.tech-pill:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -10px var(--accent-glow);
}
.tech-pill .ic { font-size: 1.05rem; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  border-radius: inherit;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), 0 0 40px -18px var(--accent-glow);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 1.3rem;
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card > p { color: var(--text-muted); margin-bottom: 1.4rem; }

.feature-list { display: flex; flex-direction: column; gap: 0.7rem; }
.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.95rem;
}
.feature-list .check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  margin-top: 2px;
}

/* Badge destacado en la card de Unix */
.tag-unix {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  margin-bottom: 1rem;
}

/* Grid de 4 servicios principales (por defecto 2x2, 1 col en móvil) */
.services-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
   SOLUCIONES RED HAT
   ============================================================ */
.redhat {
  position: relative;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(239, 68, 68, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--border);
}
.redhat-eyebrow {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}
.rh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.rh-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.rh-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 0 40px -18px rgba(239, 68, 68, 0.35);
}
.rh-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.rh-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
}
.rh-card h3 { font-size: 1.2rem; }
.rh-card > p { color: var(--text-muted); margin-bottom: 1.3rem; font-size: 0.95rem; }

/* ============================================================
   POR QUÉ / DIFERENCIADORES
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why-card {
  text-align: left;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.why-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.why-card .ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.why-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   PROCESO
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* Línea conectora entre pasos */
.process-grid::before {
  content: "";
  position: absolute;
  /* se ajusta en media queries */
  display: none;
}

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.stats {
  background: rgba(255,255,255,0.015);
  border-block: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat .num {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat .lbl {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .ic {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail .lbl { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-detail .val { font-weight: 600; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(10, 14, 26, 0.6);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.field .err { color: #f87171; font-size: 0.78rem; margin-top: 0.35rem; display: none; }
.field.invalid .err { display: block; }

.captcha-field {
  margin-bottom: 1.1rem;
  overflow: hidden;
}
.g-recaptcha {
  min-height: 78px;
  transform-origin: left top;
}
.captcha-error {
  display: none;
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}
.captcha-field.invalid .captcha-error { display: block; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.8rem;
  text-align: center;
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.4);
  color: #6ee7a8;
  font-size: 0.9rem;
  text-align: center;
}
.form-success.show { display: block; }
.form-success.is-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer .brand { margin-bottom: 1rem; }
.footer .brand-logo:not(.fallback)[src*="itforge_logo_full"] { height: 46px; max-width: 220px; }
.footer-about { color: var(--text-muted); font-size: 0.92rem; max-width: 340px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; padding: 0.3rem 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }

.social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #04111a;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .rh-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 1rem; border-radius: 10px; }
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  /* En móvil usamos el mismo logo completo, pero más contenido */
  .brand { margin-left: 0.4rem; }
  .brand-logo {
    height: 34px;
    max-width: 170px;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }
}

@media (max-width: 460px) {
  .why-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .g-recaptcha {
    transform: scale(0.88);
    margin-bottom: -9px;
  }
}
