*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg-alt:   #f7f8fa;
  --surface:  #ffffff;
  --border:   #e4e7ec;
  --border-2: #d0d5dd;
  --text:     #111827;
  --text-2:   #374151;
  --text-3:   #6b7280;
  --blue:     #1d4ed8;
  --blue-2:   #1e40af;
  --blue-lt:  #eff6ff;
  --blue-bd:  #bfdbfe;
  --green:    #16a34a;
  --accent:   #0ea5e9;
  --font:     'Inter', -apple-system, sans-serif;
  --font-h:   'Manrope', -apple-system, sans-serif;
  --radius:   8px;
  --radius-lg:12px;
  --shadow:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --max-w:    1160px;
  --t:        0.2s ease;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* NAVBAR */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.logo img { height: 40px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--text-2); border-radius: var(--radius); transition: var(--t); }
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-clientes { color: var(--blue) !important; border: 1px solid var(--blue-bd) !important; background: var(--blue-lt) !important; }
.nav-clientes:hover { background: #dbeafe !important; }
.nav-cta { background: var(--blue) !important; color: #fff !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--blue-2) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; transition: var(--t); cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-full { width: 100%; justify-content: center; }

/* HERO */
.hero { padding: 120px 2rem 80px; background: var(--bg); border-bottom: 1px solid var(--border); }
.container { max-width: var(--max-w); margin: 0 auto; }
.hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 5rem; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--blue); background: var(--blue-lt); border: 1px solid var(--blue-bd); padding: 4px 12px; border-radius: 999px; margin-bottom: 1.5rem; }
.hero-left h1 { font-family: var(--font-h); font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 800; line-height: 1.2; color: var(--text); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero-desc { font-size: 1rem; color: var(--text-3); line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 2.5rem; }
.hero-trust { display: flex; align-items: center; gap: 24px; padding-top: 2rem; border-top: 1px solid var(--border); }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-h); font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.trust-item span { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.trust-div { width: 1px; height: 36px; background: var(--border); }

/* HERO CARD */
.hero-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.hc-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hc-dots { display: flex; gap: 5px; }
.hc-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hc-dots span:nth-child(1) { background: #f87171; }
.hc-dots span:nth-child(2) { background: #fbbf24; }
.hc-dots span:nth-child(3) { background: #4ade80; }
.hc-title { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.hc-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.hc-metric { display: flex; flex-direction: column; gap: 6px; }
.hc-metric-top { display: flex; justify-content: space-between; align-items: center; }
.hc-label { font-size: 12px; font-weight: 500; color: var(--text-3); }
.hc-val { font-size: 12px; font-weight: 700; color: var(--text); }
.hc-green { color: var(--green) !important; }
.hc-bar-wrap { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.hc-bar { height: 100%; background: var(--blue); border-radius: 999px; }
.hc-bar-green { background: var(--green); }
.hc-bar-blue { background: var(--accent); }
.hc-divider { height: 1px; background: var(--border); }
.hc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 10px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; color: var(--text-3); }

/* SECTIONS */
.section { padding: 88px 2rem; }
.bg-alt { background: var(--bg-alt); }
.section-header { max-width: 620px; margin: 0 auto 3.5rem; text-align: center; }
.section-label { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-h); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.2; }
.section-header p { font-size: 15px; color: var(--text-3); line-height: 1.7; }

/* INDUSTRIAS */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.industry-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: var(--t); }
.industry-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ic-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.ic-num { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .05em; }
.ic-icon { width: 40px; height: 40px; background: var(--blue-lt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.industry-card h3 { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.industry-card p { font-size: 14px; color: var(--text-3); line-height: 1.7; margin-bottom: 1.25rem; }
.ic-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); transition: var(--t); }
.ic-link:hover { gap: 10px; }

/* NOSOTROS */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-left .section-label { display: block; margin-bottom: 12px; }
.about-left h2 { font-family: var(--font-h); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.25rem; }
.about-left p { font-size: 15px; color: var(--text-3); line-height: 1.8; margin-bottom: 1rem; }
.about-right { display: flex; flex-direction: column; gap: 1.25rem; }
.about-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; border-left: 3px solid var(--blue); }
.about-box h4 { font-family: var(--font-h); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.about-box p { font-size: 14px; color: var(--text-3); line-height: 1.7; }

/* SERVICIOS */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: var(--t); }
.service-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sc-icon { width: 44px; height: 44px; background: var(--blue-lt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 1.25rem; }
.service-card h3 { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-3); line-height: 1.7; margin-bottom: 1.25rem; }
.sc-link { font-size: 13px; font-weight: 600; color: var(--blue); transition: var(--t); }
.sc-link:hover { color: var(--blue-2); }

/* TECNOLOGIAS */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.tech-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; transition: var(--t); }
.tech-item:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.tech-item img { max-height: 44px; width: auto; filter: grayscale(20%); transition: var(--t); }
.tech-item:hover img { filter: none; }

/* CONTACTO */
.contact-grid { display: grid; grid-template-columns: 360px 1fr; gap: 5rem; align-items: start; }
.contact-left .section-label { display: block; margin-bottom: 12px; }
.contact-left h2 { font-family: var(--font-h); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.contact-left > p { font-size: 15px; color: var(--text-3); line-height: 1.7; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.ci-icon { width: 36px; height: 36px; flex-shrink: 0; background: var(--blue-lt); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.contact-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: var(--text-3); }
.contact-item a { color: var(--blue); font-size: 13px; }
.contact-item a:hover { text-decoration: underline; }
.contact-right { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
label { font-size: 13px; font-weight: 600; color: var(--text-2); }
input, select, textarea { background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 9px 12px; font-family: var(--font); font-size: 14px; color: var(--text); transition: var(--t); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
select option { background: var(--bg); }
textarea { resize: vertical; min-height: 110px; }
.form-msg { margin-top: 12px; padding: 12px; border-radius: var(--radius); font-size: 14px; text-align: center; }
.form-msg.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.form-msg.error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* FOOTER */
.footer { background: var(--text); color: #e5e7eb; padding: 3rem 2rem 1.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-brand img { height: 36px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; color: #9ca3af; line-height: 1.7; }
.footer-nav { display: flex; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: #9ca3af; transition: var(--t); }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-bottom p { font-size: 12px; color: #6b7280; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; flex-direction: column; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 1.25rem; }
  .hero { padding: 100px 1.25rem 60px; }
  .industry-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .trust-div { display: none; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-right { padding: 1.25rem; }
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
/* ===================== TECH CLOUD ===================== */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.tc-item {
  width: 110px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: default;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tc-item:hover {
  transform: scale(1.18);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(29,78,216,0.15);
  z-index: 5;
}

.tc-item img,
.tc-item svg {
  width: 72px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.tc-item span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.tc-item:hover span { color: var(--blue); }

@media (max-width: 600px) {
  .tc-item { width: 88px; height: 76px; }
  .tc-item img, .tc-item svg { width: 56px; height: 28px; }
  .tech-cloud { gap: 10px; }
}
