:root {
  --background: #fafaf8;
  --foreground: #112848;
  --surface: #eef1f6;
  --card: #ffffff;
  --primary: #dc5a14;
  --primary-foreground: #ffffff;
  --secondary: #112848;
  --secondary-foreground: #fafaf8;
  --accent: #fdeadd;
  --muted-foreground: #4a5a75;
  --border: #d5dbe5;
  --font-base: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(17, 40, 72, 0.06);
  --radius: 6px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .48s ease, transform .48s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--primary); color: var(--primary-foreground);
  font-family: var(--font-base); font-weight: 500; text-decoration: none;
  border: 1px solid var(--primary); border-radius: var(--radius);
  padding: .65rem 1.2rem; transition: filter .15s;
}
.btn:hover { filter: brightness(.92); }
.btn-sm { padding: .4rem .9rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-outline { background: var(--card); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { filter: none; background: var(--surface); }

/* Encabezado */
.header {
  position: sticky; top: 0; z-index: 400;
  background: rgba(250, 250, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo-link { display: flex; align-items: center; }
.logo { height: 76px; width: auto; margin: -14px 0; display: block; }
.nav { display: flex; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav a { color: var(--foreground); text-decoration: none; transition: color .12s; }
.nav a:hover { color: var(--primary); }

/* Inicio */
.hero { padding: 5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.label {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 1rem;
}
.label-light { color: #f59a3c; }
h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 1.5rem;
}
.accent { color: var(--primary); }
.hero-text { font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); max-width: 34rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.network { width: 100%; height: auto; }
.net-lines line { stroke: var(--primary); stroke-opacity: .45; stroke-width: 3; stroke-linecap: round; }
.net-nodes circle { fill: var(--primary); }
.pulse { fill: none; stroke: var(--primary); stroke-opacity: .3; stroke-width: 3; }

/* Secciones */
.section { padding: 5rem 0; }
.tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -.015em; line-height: 1.2;
  margin: 0 0 3rem; max-width: 34rem;
}
.h2-light { color: #fff; margin-bottom: 1rem; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 .5rem; }
.muted { color: var(--muted-foreground); line-height: 1.6; margin: 0; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
}
.icon-row { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px;
  background: var(--accent); color: var(--primary);
}
.icon svg, .contact-list svg, .list li::before { flex-shrink: 0; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.list li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.list li::before {
  content: ""; width: 16px; height: 16px; margin-top: 4px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/contain no-repeat;
}

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { position: relative; padding-top: 2rem; border-top: 1px solid var(--border); }
.step-node { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 9999px; background: var(--primary); }
.step-num { display: block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--primary); margin-bottom: .5rem; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.about-grid h2 { margin-bottom: 0; }
.about-text { display: grid; gap: 1rem; font-size: 1.05rem; line-height: 1.7; color: var(--muted-foreground); }
.about-text p { margin: 0; }

/* Contacto */
.contact-box {
  background: var(--secondary); color: var(--secondary-foreground);
  border-radius: var(--radius-lg); padding: 4rem 3rem;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
.contact-text { margin: 0; color: #c5cfdf; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .75rem; align-items: center; }
.contact-list svg { width: 18px; height: 18px; fill: none; stroke: #f59a3c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: #f59a3c; }

/* Pie */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted-foreground); font-size: .875rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-logo { height: 56px; width: auto; }
.footer-inner p { margin: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero-grid, .about-grid, .contact-box, .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .contact-box { padding: 2rem 1.5rem; }
  .network { max-width: 320px; margin: 0 auto; }
  .logo { height: 60px; margin: -10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
