:root {
  --green-400: #4a9e4a;
  --green-500: #2e7d2e;
  --green-600: #1a5c2a;
  --green-700: #154d22;
  --green-900: #0d3318;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
}
[data-theme="dark"] {
  --bg: #0a0d0b;
  --bg2: #111510;
  --bg3: #161c14;
  --surface: #1a2018;
  --surface2: #1f2820;
  --border: rgba(34,197,94,0.12);
  --border2: rgba(34,197,94,0.22);
  --text: #f0fdf4;
  --text2: #a7f3d0;
  --text3: #6ee7b7;
  --muted: #6b7280;
  --accent: #4a9e4a;
  --accent2: #5cb85c;
  --nav-bg: rgba(10,13,11,0.92);
}
[data-theme="light"] {
  --bg: #f7faf7;
  --bg2: #eef5ee;
  --bg3: #e6f0e6;
  --surface: #ffffff;
  --surface2: #f0f7f0;
  --border: rgba(22,163,74,0.15);
  --border2: rgba(22,163,74,0.3);
  --text: #0f2310;
  --text2: #1a5c2a;
  --text3: #154d22;
  --muted: #6b7280;
  --accent: #1a5c2a;
  --accent2: #2e7d2e;
  --nav-bg: rgba(247,250,247,0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-img { height: 36px; width: auto; transition: filter 0.3s; }
[data-theme="dark"] .nav-logo-img { filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(80deg) brightness(0.85); }
[data-theme="light"] .nav-logo-img { filter: none; }
.nav-logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; color: var(--text); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 400; letter-spacing: 0.01em;
  padding: 6px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--accent); background: var(--border); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--accent2) !important; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border2); background: var(--surface);
  color: var(--text2); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s; margin-left: 8px; flex-shrink: 0;
}
.theme-toggle:hover { background: var(--surface2); border-color: var(--accent); }
.hamburger { display: none; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 20px; border-top: 1px solid var(--border);
}
.mobile-menu a {
  text-decoration: none; color: var(--text);
  font-size: 15px; padding: 10px 12px; border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: var(--surface2); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 100px 24px 60px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; text-align: center; max-width: 820px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--accent); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 32px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.4); }
}
.hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(42px, 7vw, 80px); line-height: 1.02;
  letter-spacing: -2px; margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  display: block;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px); color: var(--muted);
  max-width: 560px; margin: 0 auto 44px;
  font-weight: 300;
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(34,197,94,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(34,197,94,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text);
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 400; text-decoration: none;
  border: 1px solid var(--border2);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: var(--surface2); border-color: var(--accent); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 72px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 36px; color: var(--accent); line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* ── SECTIONS ── */
section { padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--muted); max-width: 520px;
  font-weight: 300; line-height: 1.6;
}

/* ── SERVICIOS ── */
#servicios { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.service-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
  cursor: default;
}
.service-card:hover { background: var(--surface2); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--border); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.service-card h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 18px; margin-bottom: 10px; letter-spacing: -0.3px;
}
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── CLIENTES ── */
.clients-header { text-align: center; margin-bottom: 64px; }
.clients-header .section-sub { margin: 0 auto; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
  min-height: 90px;
}
.client-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.client-card img {
  max-width: 80%; max-height: 60px;
  width: auto; height: auto;
  display: block; margin: 12px auto;
  object-fit: contain; opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
[data-theme="light"] .client-card img { filter: grayscale(1) invert(0); }
.client-card:hover img { opacity: 1; filter: grayscale(0); }
.client-card .client-fallback {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; color: var(--muted); text-align: center; letter-spacing: 0.05em;
}
.client-card .client-fallback {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; color: var(--muted); text-align: center; letter-spacing: 0.05em;
}

/* ocultar textos de fallback por defecto; solo se muestran si la imagen falla */
.client-card .client-fallback { display: none; }
.dell-badge {
  grid-column: span 1;
  border-color: var(--border2);
  background: var(--surface2);
  flex-direction: column; gap: 8px;
}
.dell-badge-label {
  font-size: 9px; color: var(--accent); letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500;
}
.pymes-card { flex-direction: column; gap: 4px; }
.pymes-count {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 24px; color: var(--accent);
}
.pymes-text { font-size: 11px; color: var(--muted); text-align: center; }

/* ── EMPRESA ── */
#empresa { background: var(--bg2); }
.empresa-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 64px;
}
.empresa-text p {
  font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 20px;
}
.empresa-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px;
}
.value-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 18px;
}
.value-item h4 {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}
.value-item p { font-size: 13px; color: var(--muted); }
.team-cards { display: flex; flex-direction: column; gap: 20px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 24px;
  display: flex; align-items: center; gap: 20px;
}
.team-avatar {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #0d3318);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; color: #fff;
}
.team-info h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 4px;
}
.team-info .role { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.team-info .phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.team-info .phone:hover { color: var(--accent); }
.team-coverage {
  margin-top: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.team-coverage h4 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.coverage-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-tag {
  background: var(--border); border: 1px solid var(--border2);
  color: var(--text2); font-size: 12px; padding: 5px 12px;
  border-radius: 100px;
}

/* ── CONTACTO ── */
.contacto-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; margin-top: 64px;
}
.contact-info h3 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 22px;
  margin-bottom: 12px;
}
.contact-info p { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-method {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-method:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.contact-method-info .contact-type { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-method-info .contact-value { font-size: 14px; font-weight: 500; margin-top: 2px; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 32px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg2);
  border: 1px solid var(--border2); border-radius: 10px;
  padding: 12px 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--accent);
  color: #fff; border: none; border-radius: 10px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }
#form-status { text-align: center; font-size: 14px; margin-top: 12px; min-height: 20px; }

/* ── FOOTER ── */
footer {
  background: var(--bg3); border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo-text { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: 16px;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(37,211,102,0.5); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  .hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .mobile-menu.open { display: flex; }
  .hero-stats { gap: 24px; }
  .empresa-layout { grid-template-columns: 1fr; gap: 40px; }
  .contacto-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .empresa-values { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .services-grid { border-radius: 12px; }
}

/* Responsive: ajustar logos y tarjetas en pantallas pequeñas */
@media (max-width: 600px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .client-card {
    min-height: 72px;
    padding: 8px;
  }
  .client-card img {
    max-width: 70%;
    max-height: 40px;
    margin: 8px auto;
    object-fit: contain;
  }
  .client-card .client-fallback {
    display: block;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .client-card { min-height: 64px; }
  .client-card img { max-height: 34px; }
  .client-card .client-fallback { font-size: 11px; }
}