/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
}

/* ===== VARIABLES ===== */
:root {
  --accent:      #3d5a99;
  --accent-dark: #2c4173;
  --accent-glow: rgba(61, 90, 153, 0.28);
  --black:  #0b0e14;
  --dark:   #10141d;
  --card:   #161b26;
  --border: #262c3a;
  --text:   #d8dce4;
  --muted:  #838ea0;
  --white:  #ffffff;
}

/* ===== UTILITIES ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.section-title span { color: var(--accent); }
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; display: block; border-radius: 4px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-mail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-mail:hover { color: var(--accent); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background: url('../img/tecnologia.jpg') center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(11,14,20,0.97) 0%,
    rgba(11,14,20,0.88) 50%,
    rgba(11,14,20,0.55) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-since {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: var(--white);
}
.hero h1 .accent { color: var(--accent); }
.hero > .container > .hero-content > p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(216,220,228,0.85);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-points {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-point { display: flex; align-items: center; gap: 0.6rem; }
.hero-point-icon {
  width: 32px; height: 32px;
  background: rgba(61,90,153,0.15);
  border: 1px solid rgba(61,90,153,0.35);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-point-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-point span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ===== GALERIA ===== */
#galeria {
  padding: 5.5rem 0;
  background: var(--black);
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.galeria-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.galeria-item:hover img { transform: scale(1.06); }

/* ===== SERVICES ===== */
#servicios {
  padding: 6rem 0;
  background: var(--dark);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: block;
  color: var(--accent);
}
.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--white); }
.service-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ===== CLIENTES ===== */
#clientes {
  padding: 6rem 0;
  background: var(--dark);
}
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.cliente-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.cliente-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.cliente-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.cliente-logo img {
  max-height: 100%;
  max-width: 160px;
  object-fit: contain;
}
.cliente-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.35rem; }
.cliente-card p { color: var(--muted); font-size: 0.85rem; }
.cliente-card.placeholder {
  background: transparent;
  border: 1px dashed var(--border);
}
.cliente-card.placeholder:hover { border-color: var(--border); transform: none; box-shadow: none; }
.cliente-placeholder-icon {
  width: 44px; height: 44px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(61,90,153,0.08);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
}
.cliente-placeholder-icon svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cliente-card.placeholder h3 { color: var(--muted); font-weight: 600; }

/* ===== NOSOTROS ===== */
#nosotros {
  padding: 6rem 0;
  background: var(--black);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.nosotros-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.nosotros-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.nosotros-text .section-title { text-align: left; }
.nosotros-text > p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.why-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.why-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}
.why-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.why-pill-icon {
  width: 36px; height: 36px;
  background: rgba(61,90,153,0.12);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-pill-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-pill > span { color: var(--white); font-weight: 600; font-size: 0.88rem; }

/* ===== CONTACT ===== */
#contacto {
  padding: 6rem 0;
  background: var(--dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--white); }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-detail-icon {
  width: 44px; height: 44px;
  background: rgba(61,90,153,0.1);
  border: 1px solid rgba(61,90,153,0.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-detail h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-detail p, .contact-detail a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.contact-detail a:hover { color: var(--accent); }
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.25rem;
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--white); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #131826;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: #131826; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-full { width: 100%; text-align: center; padding: 0.95rem; font-size: 1rem; }
.form-feedback { margin-top: 0.85rem; font-size: 0.9rem; font-weight: 600; text-align: center; }
.feedback-ok  { color: #16a34a; }
.feedback-err { color: #dc4545; }

/* ===== FOOTER ===== */
footer {
  background: #070a0f;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; display: block; border-radius: 4px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-col address { font-style: normal; color: var(--muted); font-size: 0.9rem; line-height: 1.9; }
.footer-col address a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col address a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.1rem; }
.footer-social a {
  width: 34px; height: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { color: var(--muted); font-size: 0.82rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #25d366;
  color: white;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nosotros-grid { gap: 3.5rem; }
}
@media (max-width: 900px) {
  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-photo { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-mail { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .galeria-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
