*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07090f;
  --surface:   #0e1117;
  --border:    #1c2130;
  --accent:    #00d4ff;
  --accent2:   #0066ff;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --card:      #111520;
  --radius:    12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .5;
}

/* ── HERO GLOW ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { width: 600px; height: 600px; background: #0044ff18; top: -100px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: #00d4ff12; top: 100px; right: -150px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 60px;
  backdrop-filter: blur(20px);
  background: rgba(7,9,15,.75);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 22px;
  border-radius: 6px;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

/* ── HERO ── */
header {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 140px 60px 80px;
  overflow: hidden;
}

.hero-tag {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 32px;
  display: inline-block;
  position: relative; z-index: 1;
  animation: fadeUp .7s ease both;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.03em;
  max-width: 780px;
  position: relative; z-index: 1;
  animation: fadeUp .8s .1s ease both;
}

.hero-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 24px;
  position: relative; z-index: 1;
  animation: fadeUp .8s .2s ease both;
}

.hero-actions {
  display: flex; gap: 16px; margin-top: 44px;
  position: relative; z-index: 1;
  animation: fadeUp .8s .3s ease both;
}

.btn-primary {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 14px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(0,212,255,.05); }

/* hero line art */
.hero-grid {
  position: absolute; right: 0; top: 0; bottom: 0; width: 55%;
  z-index: 0; opacity: .18;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 50%, black 40%, transparent 100%);
}

/* ── CLIENTS / BADGES ── */
.trust-bar {
  padding: 28px 60px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 40px;
  background: var(--surface);
}
.trust-bar span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.trust-chips { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-chip {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  letter-spacing: .04em;
}

/* ── SECTION COMMONS ── */
section { padding: 100px 60px; position: relative; }

.section-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  max-width: 600px;
}

.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin-top: 16px;
  font-size: 1rem;
}

/* ── SERVICES ── */
#servicios { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  margin-top: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 42px 36px;
  position: relative;
  transition: background .25s;
}
.service-card:hover { background: #141928; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 22px;
  background: rgba(0,212,255,.06);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p { font-size: .92rem; color: var(--muted); line-height: 1.7; }

.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .25s;
}
.service-card:hover::after { opacity: 1; }

/* ── WHY US ── */
#nosotros { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 70px;
}

.why-list { list-style: none; display: flex; flex-direction: column; gap: 28px; }

.why-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .25s;
}
.why-item:hover { border-color: rgba(0,212,255,.3); }

.why-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .25;
  line-height: 1;
  min-width: 44px;
}

.why-item h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-item p { font-size: .88rem; color: var(--muted); }

.why-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}

.why-visual-glow {
  position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,.12) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; }

.stat-box {
  background: rgba(0,212,255,.04);
  border: 1px solid rgba(0,212,255,.12);
  border-radius: 12px;
  padding: 30px 20px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}

.stat-lbl { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* ── PROCESS ── */
#proceso {
  background: var(--surface);
  overflow: hidden;
}

.process-row {
  display: flex; gap: 0;
  margin-top: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step {
  flex: 1;
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  background: var(--card);
  transition: background .25s;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: #141928; }

.step-num {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 16px;
}

.process-step h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.process-step p { font-size: .86rem; color: var(--muted); }

/* ── FORM ── */
#contacto { background: var(--bg); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p { font-size: .95rem; color: var(--muted); margin-bottom: 32px; }

.contact-detail {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.detail-icon {
  width: 38px; height: 38px;
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.contact-detail p { margin: 0; font-size: .88rem; }
.contact-detail span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 2px; letter-spacing: .08em; text-transform: uppercase; }

/* form styles */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
}

.form-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.form-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-group { margin-bottom: 22px; }

label {
  display: block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .92rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: rgba(0,212,255,.03);
}
input::placeholder, textarea::placeholder { color: #3a4050; }
textarea { min-height: 120px; resize: vertical; }

select option { background: var(--bg); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.submit-btn {
  width: 100%;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  margin-top: 8px;
}
.submit-btn:hover { opacity: .88; transform: translateY(-1px); }

.form-note {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

/* success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h4 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.form-success p { color: var(--muted); font-size: .92rem; }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 60px 40px;
}

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap; gap: 40px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.footer-cols { display: flex; gap: 60px; }

.footer-col h5 {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--muted); }

.footer-domain {
  font-size: .8rem;
  color: var(--accent);
  text-decoration: none;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  header, section { padding-left: 24px; padding-right: 24px; }
  .trust-bar { padding: 20px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .process-row { flex-direction: column; }
  .process-step { border-right: none; border-bottom: 1px solid var(--border); }
  .process-step:last-child { border-bottom: none; }
  .footer-top { flex-direction: column; }
  footer { padding: 40px 24px 28px; }
  .form-row { grid-template-columns: 1fr; }
}