:root {
  /* Paleta Técnica Oscura por defecto (Cyber Premium) */
  --bg: #030712;
  --surface: rgba(17, 24, 39, 0.65);
  --surface-2: #0b0f19;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f9fafb;
  --muted: #9ca3af;
  --faint: #4b5563;
  --primary: #3b82f6;        /* Azul Eléctrico */
  --primary-2: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.1);
  --inverse: #ffffff;
  
  --r1: .5rem;
  --r2: .6rem;
  --r3: 1rem;
  --r4: 1.2rem;
  --full: 9999px;
  
  --sh1: 0 4px 12px rgba(0, 0, 0, 0.3);
  --sh2: 0 20px 40px rgba(0, 0, 0, 0.4);
  --sh3: 0 30px 60px rgba(0, 0, 0, 0.6);
  --content: 1180px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Soporte de Tema Claro con Filtro Suave Industrial */
[data-theme="light"] {
  --bg: #f4f5f8;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-2: #eaedf3;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --inverse: #ffffff;
  --sh1: 0 4px 12px rgba(15, 23, 42, 0.05);
  --sh2: 0 20px 40px rgba(15, 23, 42, 0.06);
  --sh3: 0 30px 60px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* Luces de Fondo Ambientales de Ingeniería */
body::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  z-index: -1;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(calc(100% - 2.5rem), var(--content)); margin: auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--primary);
  color: var(--inverse);
  padding: .75rem 1.2rem;
  border-radius: var(--r2);
  z-index: 999;
  font-weight: 600;
}

/* Header Estilo Cristal */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  transition: background 0.3s, border 0.3s;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  background: linear-gradient(to right, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand svg { width: 32px; height: 32px; color: var(--primary); -webkit-text-fill-color: initial; }

.nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* Interfaz de Botones Modulares */
.btn, .toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  padding: .8rem 1.4rem;
  border-radius: var(--r2);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--primary);
  color: var(--inverse);
  box-shadow: var(--sh1);
}
.btn-primary:hover {
  background: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary, .toggle {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover, .toggle:hover {
  background: var(--surface-2);
  border-color: var(--text);
  transform: translateY(-1px);
}

/* Grilla Hero de Alto Impacto */
.hero { padding: clamp(5rem, 12vw, 9rem) 0 6rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: start; }

.eyebrow {
  display: inline-flex;
  padding: .4rem .9rem;
  border-radius: var(--full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 900;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 1.5rem 0 0;
}

.actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2.5rem; }
.points { display: grid; gap: 1.2rem; margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.point { display: flex; gap: 1rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.point span { font-weight: 800; color: var(--primary); font-family: monospace; }
.point b { color: var(--text); font-weight: 600; }

/* Tarjeta Lateral de Enfoque */
.side {
  padding: 2.5rem;
  border-radius: var(--r4);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  box-shadow: var(--sh3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.side h2 { margin: 0; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { padding: 1.2rem; border-radius: var(--r3); background: color-mix(in srgb, var(--bg) 40%, transparent); border: 1px solid var(--border); }
.stat strong { display: block; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; font-weight: 700; color: var(--primary); }
.stat span { display: block; color: var(--muted); font-size: .85rem; margin-top: .4rem; line-height: 1.3; }

.trust { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.trust .pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--full);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Secciones de Grillas Dinámicas */
section { padding: 6rem 0; }
.head { max-width: 48rem; display: grid; gap: .7rem; margin-bottom: 3.5rem; }
.head h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 900; }
.head p { color: var(--muted); font-size: 1.1rem; }

.label { font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }

.grid-3, .grid-2, .process { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.process { grid-template-columns: repeat(3, 1fr); }

/* Componente Card Avanzado */
.card {
  padding: 2.2rem;
  border-radius: var(--r4);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh1);
  backdrop-filter: blur(4px);
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.card h3 { margin: 0 0 1rem; font-size: 1.3rem; letter-spacing: -.02em; font-weight: 700; }
.card p, .card li { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; display: grid; gap: .6rem; margin: 1.5rem 0 0; padding: 0; }
.card li::before { content: "→ "; color: var(--primary); font-weight: 900; margin-right: .3rem; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }

/* Flujo de Proceso */
.step { padding: 2rem; border-radius: var(--r4); background: var(--surface); border: 1px solid var(--border); }
.num { display: inline-flex; width: 2.2rem; height: 2.2rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: .8rem; font-weight: 900; margin-bottom: 1.2rem; border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); font-family: monospace; }
.step p { font-size: .95rem; color: var(--muted); }

/* Sección del Calendario Embebido */
.calendar-section { border-top: 1px solid var(--border); background: var(--surface-2); }
.calendar-section h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; }
.calendar-section p { max-width: 600px; margin: 0 auto 3rem auto; font-size: 1.1rem; }
.calendar-container { max-width: 900px; height: 650px; margin: 0 auto; border-radius: var(--r4); border: 1px solid var(--border); box-shadow: var(--sh3); overflow: hidden; background: #ffffff; }

/* Formulario e Intercepción de Contacto */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.copy, .form { padding: 3rem; border-radius: var(--r4); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh2); }
.copy p, .copy li, .tiny { font-size: .95rem; color: var(--muted); }
.copy ul { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; padding: 0; }
.copy li strong { color: var(--text); display: block; margin-bottom: .2rem; }

form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .5rem; }
label { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

input, select, textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border-radius: var(--r2);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text);
  transition: all 0.2s ease;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--bg);
}

.tiny { font-size: .8rem; opacity: .7; line-height: 1.4; margin: .5rem 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* Consultas de Medios e Infraestructura Responsiva */
@media (max-width: 1024px) {
  .hero-grid, .split, .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3, .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-2, .process, .stats { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { width: 100%; justify-content: space-between; gap: 1rem; }
  .hero { padding-top: 4rem; }
  .side, .card, .step, .copy, .form { padding: 1.8rem; }
  h1 { font-size: 2.8rem; }
}