/* Sysprep Soluciones Informáticas — estilos del sitio estático
   Paleta "Blanco limpio": #fafbfc / #e8ecf1 / #94a3b8 / #3b82f6
   Letras: JetBrains Mono (títulos) + Work Sans (texto) */

:root {
  --background: #fafbfc;
  --foreground: #1a2233;
  --card: #ffffff;
  --primary: #3b82f6;
  --primary-hover: #2f74e6;
  --primary-foreground: #fcfdfe;
  --primary-soft: #e8f0fe;
  --secondary: #e8ecf1;
  --muted: #f1f4f7;
  --muted-foreground: #64748b;
  --border: #e3e8ef;
  --input: #dbe1ea;
  --success: #22a865;
  --destructive: #dc2626;
  --warning: #f5c542;
  --ink: #161d2b;
  --ink-foreground: #f1f4f7;
  --radius: 0.5rem;

  --font-sans: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow-card: 0 1px 2px rgba(26, 34, 51, 0.06), 0 8px 24px -12px rgba(26, 34, 51, 0.12);
  --shadow-elevated: 0 24px 60px -24px rgba(59, 130, 246, 0.35);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(59, 130, 246, 0.14), transparent 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
h2 { font-size: 1.875rem; font-weight: 700; margin-top: 0.5rem; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }

.container { max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-tight { padding-top: 0; padding-bottom: 5rem; }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 3rem; height: 3rem; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); }
.bold { font-weight: 700; }
.mt { margin-top: 1rem; }
.mt-sm { margin-top: 0.75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
}
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; color: var(--muted-foreground); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-card);
}
.icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(227, 232, 239, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(227, 232, 239, 0.7) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.bg-glow { position: absolute; inset: 0; background-image: var(--gradient-hero); pointer-events: none; }

.cursor-blink::after {
  content: "_";
  margin-left: 0.1em;
  color: var(--primary);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-mono);
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 2.5rem; padding: 0 1rem;
}
.btn .icon { width: 1rem; height: 1rem; }
.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-xl { height: 3rem; padding: 0 1.75rem; }
.btn-block { width: 100%; }
.btn-hero { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-elevated); }
.btn-hero:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-terminal { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-terminal:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Barra superior ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
}
/* El desenfoque va en una capa aparte para que el menú del celular ocupe toda la pantalla */
.header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; line-height: 1.25; }
.brand img { height: 2.5rem; width: auto; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
  padding: 0.5rem 0.75rem; border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted-foreground); transition: color 0.2s;
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active { color: var(--primary); }
.nav-cta { margin-left: 0.5rem; }
.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  background: var(--card); color: var(--foreground); cursor: pointer;
}

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid-fade { opacity: 0.6; -webkit-mask-image: linear-gradient(to bottom, black, transparent); mask-image: linear-gradient(to bottom, black, transparent); }
.hero-inner { position: relative; display: grid; gap: 3rem; padding-top: 6rem; padding-bottom: 6rem; grid-template-columns: 1fr 1fr; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  padding: 0.25rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted-foreground); box-shadow: var(--shadow-card);
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--success); }
.hero-title { margin-top: 1.5rem; font-size: 3rem; font-weight: 800; line-height: 1.05; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-checks { margin: 2.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.hero-checks li { display: flex; align-items: center; gap: 0.5rem; }
.hero-checks .icon { width: 1rem; height: 1rem; }
.hero-media { position: relative; }
.window { overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); box-shadow: var(--shadow-elevated); }
.window-bar { display: flex; align-items: center; gap: 0.375rem; border-bottom: 1px solid var(--border); padding: 0.625rem 1rem; }
.win-dot { width: 0.625rem; height: 0.625rem; border-radius: 999px; }
.win-dot.red { background: rgba(220, 38, 38, 0.7); }
.win-dot.yellow { background: var(--warning); }
.win-dot.green { background: var(--success); }
.window-path { margin-left: 0.75rem; font-family: var(--font-mono); font-size: 11px; color: var(--muted-foreground); }
.window img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.status-card {
  position: absolute; bottom: -1.5rem; left: -1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 1rem; font-family: var(--font-mono); font-size: 0.75rem; box-shadow: var(--shadow-card);
}
.status-card p + p { margin-top: 0.25rem; }

/* ---------- Servicios ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.section-note { max-width: 24rem; }
.service-list { margin-top: 2.5rem; display: grid; gap: 1rem; }
.service { display: grid; gap: 1.5rem; padding: 2rem; grid-template-columns: 1.2fr 1fr 1fr; }
.service h3 { margin-top: 1rem; font-size: 1.25rem; }
.service h3 + p { margin-top: 0.5rem; }
.chips { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span {
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  background: var(--muted); padding: 0.25rem 0.625rem;
  font-family: var(--font-mono); font-size: 0.75rem;
}
.includes { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.includes li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.includes .icon { width: 1rem; height: 1rem; margin-top: 0.125rem; color: var(--primary); }

/* ---------- Cómo trabajamos ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); }
.steps { margin-top: 2.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.step-n { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 800; color: rgba(59, 130, 246, 0.25); }
.steps h3 { margin-top: 0.5rem; }
.steps p { margin-top: 0.5rem; }

/* ---------- Formación ---------- */
.pills { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pills span {
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); background: var(--card);
  padding: 0.375rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; box-shadow: var(--shadow-card);
}
.cert-list { margin-top: 3rem; display: grid; gap: 1.5rem; }
.cert { display: grid; gap: 1.5rem; padding: 2rem; grid-template-columns: 1fr 1.1fr; overflow: hidden; }
.cert h3 { margin-top: 0.25rem; font-size: 1.25rem; }
.cert h3 + p { margin-top: 0.5rem; }
.hours { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.hours .icon { width: 0.875rem; height: 0.875rem; }
.cert-thumb {
  position: relative; overflow: hidden; padding: 0; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted);
}
.cert-thumb img { width: 100%; aspect-ratio: 1.414; object-fit: cover; transition: transform 0.3s; }
.cert-thumb:hover img { transform: scale(1.02); }
.zoom {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: calc(var(--radius) - 2px); background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.625rem; font-family: var(--font-mono); font-size: 0.75rem; box-shadow: var(--shadow-card);
}
.zoom .icon { width: 0.75rem; height: 0.75rem; }

/* ---------- Por qué elegirnos ---------- */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; gap: 1rem; padding: 1.25rem; box-shadow: none; }
.feature .icon { margin-top: 0.125rem; }
.feature-title { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }

/* ---------- Contacto ---------- */
.contact { position: relative; border-top: 1px solid var(--border); }
.contact-grid-fade { opacity: 0.4; -webkit-mask-image: linear-gradient(to bottom, black, transparent 60%); mask-image: linear-gradient(to bottom, black, transparent 60%); }
.contact-inner { position: relative; display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 5rem; grid-template-columns: 1fr 1.3fr; }
.contact-title { font-size: 2.5rem; font-weight: 800; }
.contact .lead { margin-top: 1rem; }
.tips { margin-top: 2rem; padding: 1.5rem; }
.tips ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; font-size: 0.875rem; }
.tips li { display: flex; gap: 0.5rem; }
.form-card { padding: 2rem; border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow-elevated); }
#contactForm { display: grid; gap: 1.25rem; }
.form-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; }
.form-title .icon { width: 1rem; height: 1rem; }
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px);
  background: var(--card); color: var(--foreground);
  padding: 0.5rem 0.75rem; font: inherit; font-size: 0.875rem;
  box-shadow: 0 1px 2px rgba(26, 34, 51, 0.04);
}
.field input, .field select { height: 2.5rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.field .invalid { border-color: var(--destructive); }
.error { font-size: 0.75rem; color: var(--destructive); }
.error:empty { display: none; }
.form-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 0; gap: 0.75rem; }
.form-done h3 { font-size: 1.5rem; }
.form-done p { max-width: 24rem; }
.form-done .btn { margin-top: 0.75rem; }

/* ---------- Llamado final ---------- */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); background: var(--ink); padding: 3.5rem 2rem; text-align: center; }
.cta-grid { opacity: 0.1; }
.cta-inner { position: relative; }
.cta h2 { color: var(--ink-foreground); margin: 0; }
.cta p { margin: 0.75rem auto 0; max-width: 28rem; color: rgba(241, 244, 247, 0.7); }
.cta .btn { margin-top: 2rem; }

/* ---------- Pie de página ---------- */
.footer { border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { height: 3.5rem; width: auto; flex-shrink: 0; }
.footer-brand .muted { margin-top: 0.25rem; }
.footer-links { display: flex; gap: 1.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); }
.footer-links a:hover { color: var(--primary); }

/* ---------- Visor de certificados ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(22, 29, 43, 0.8);
}
.lightbox img { max-width: min(56rem, 100%); max-height: 90vh; border-radius: var(--radius); background: var(--card); padding: 0.5rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: none; border-radius: 999px; background: var(--card); color: var(--foreground); cursor: pointer;
}

/* ---------- Tablets ---------- */
@media (max-width: 1023px) {
  .service { grid-template-columns: 1fr 1fr; }
  .service > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Celulares ---------- */
@media (max-width: 767px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 4rem; right: 0; bottom: 0;
    width: 85vw; max-width: 20rem;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 1.5rem 1rem;
    background: var(--card); border-left: 1px solid var(--border);
    box-shadow: -12px 0 32px -12px rgba(26, 34, 51, 0.25);
    transform: translateX(100%); transition: transform 0.25s ease;
    visibility: hidden;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav-link { padding: 0.75rem; font-size: 1rem; color: var(--foreground); }
  .nav-link.active { background: var(--secondary); color: var(--primary); }
  .nav-cta { margin: 1.5rem 0 0; height: 3rem; font-size: 0.875rem; }

  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .status-card { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .service, .cert { grid-template-columns: 1fr; padding: 1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-title { font-size: 2.25rem; }
  .form-card { padding: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cta { padding: 3rem 1.5rem; }
  .cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .brand { font-size: 0.8125rem; }
}
