/* =========================================================
   DSDS Digital — estilos
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0b1020;
  --ink-2: #475069;
  --line: #e4e8f0;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --dark: #0b1020;
  --dark-2: #131a2e;
  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(11, 16, 32, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Iconos Lucide ---------- */
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(37, 99, 235, .7); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn [data-lucide], .btn .lucide { width: 18px; height: 18px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(11, 16, 32, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff;
}
.logo-text { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo-text span { font-weight: 500; opacity: .7; margin-left: 4px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a { color: rgba(255,255,255,.78); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 3px; }
.lang button {
  background: none; border: 0; color: rgba(255,255,255,.7); font: 600 12px var(--font);
  padding: 6px 9px; border-radius: 7px; cursor: pointer; letter-spacing: .04em;
}
.lang button.active { background: #fff; color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: 150px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; right: -150px; top: -200px;
  background: radial-gradient(circle, rgba(6,182,212,.35), rgba(37,99,235,.15) 45%, transparent 70%);
  filter: blur(20px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(6,182,212,.12); color: #67e8f9; border: 1px solid rgba(6,182,212,.3);
}
.eyebrow [data-lucide], .eyebrow .lucide { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); margin: 22px 0 20px; }
.hero h1 em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: rgba(255,255,255,.72); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.8); }
.hero-points [data-lucide], .hero-points .lucide { color: #22d3ee; width: 18px; height: 18px; }

.hero-visual { position: relative; padding: 40px 0; }
.code-window {
  background: rgba(19, 26, 46, .9); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); overflow: hidden;
}
.cw-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.cw-bar span { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.cw-bar span:nth-child(1) { background: #f87171; }
.cw-bar span:nth-child(2) { background: #fbbf24; }
.cw-bar span:nth-child(3) { background: #34d399; }
.cw-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255,255,255,.4); }
.code-window pre { margin: 0; padding: 24px 26px; font: 14.5px/1.75 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cbd5e1; overflow-x: auto; }
.code-window b { font-weight: 500; }
.k { color: #c084fc; } .s { color: #86efac; } .f { color: #67e8f9; } .c { color: #64748b; }

.card-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.card-float strong { display: block; font-size: 14px; }
.card-float small { color: var(--ink-2); font-size: 12px; }
.card-a { top: 0; left: -30px; }
.card-b { bottom: 0; right: -20px; animation-delay: -3s; }
.cf-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #dbeafe; color: var(--brand); }
.cf-icon.green { background: #d1fae5; color: #059669; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2, .why-copy h2, .contact-copy h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.section-head p { color: var(--ink-2); font-size: 17px; }
.tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
}
.tag.light { color: #67e8f9; }

/* Misión / Visión / Valores */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px;
  transition: transform .25s, box-shadow .25s;
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mvv-card.featured { background: var(--dark); color: #fff; border-color: var(--dark); }
.mvv-card.featured p { color: rgba(255,255,255,.75); }
.mvv-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 22px;
}
.mvv-icon [data-lucide], .mvv-icon .lucide { width: 26px; height: 26px; }
.mvv-card h3 { font-size: 24px; margin-bottom: 12px; }
.mvv-card p { color: var(--ink-2); }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 12px; color: var(--ink-2); }
.values [data-lucide], .values .lucide { color: var(--brand); margin-top: 3px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.s-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: #eff6ff; color: var(--brand); margin-bottom: 20px; transition: background .25s, color .25s;
}
.service:hover .s-icon { background: var(--grad); color: #fff; }
.s-icon [data-lucide], .s-icon .lucide { width: 24px; height: 24px; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: 15px; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step-num { position: absolute; top: 20px; right: 22px; font: 700 40px var(--display); color: #eef2f8; }
.step > [data-lucide], .step > .lucide { width: 30px; height: 30px; color: var(--brand); margin-bottom: 18px; position: relative; }
.step h3 { font-size: 20px; margin-bottom: 8px; position: relative; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Por qué nosotros */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-copy p { color: var(--ink-2); font-size: 17px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.why-item [data-lucide], .why-item .lucide { width: 28px; height: 28px; color: var(--brand-2); margin-bottom: 10px; }
.why-item strong { font-family: var(--display); font-size: 19px; }
.why-item span { color: var(--ink-2); font-size: 14px; }

/* Contacto */
.contact { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -300px;
  background: radial-gradient(circle, rgba(37,99,235,.35), transparent 65%);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-copy p { color: rgba(255,255,255,.72); font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list [data-lucide], .contact-list .lucide { color: #22d3ee; }
.contact-list a:hover { color: #67e8f9; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: 22px; padding: 34px; display: grid; gap: 16px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: 15px var(--font); color: var(--ink); padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); background: #fff;
}

/* Footer */
.footer { background: #070b16; color: rgba(255,255,255,.6); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--dark); padding: 10px 20px 20px; display: none; border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .menu-btn { display: block; }
  .hide-mobile { display: none; }
  .nav { background: rgba(11, 16, 32, .92); }
  .mvv, .why, .contact-inner { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
}
@media (max-width: 600px) {
  .services, .steps, .why-grid { grid-template-columns: 1fr; }
  .card-a { left: 0; } .card-b { right: 0; }
  .logo-text span { display: none; }
  .contact-form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Logo oficial (imagen) */
.logo-img { height: 40px; width: auto; display: block; }
@media (max-width: 600px) { .logo-img { height: 34px; } }
