/* ============================================
   SOIT — Static CSS
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: hsl(220 25% 6%);
  --foreground: hsl(210 40% 96%);
  --card: hsl(220 22% 10%);
  --card-foreground: hsl(210 40% 96%);
  --primary: hsl(210 100% 52%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(220 20% 16%);
  --muted: hsl(220 18% 14%);
  --muted-foreground: hsl(215 15% 55%);
  --accent: hsl(190 95% 50%);
  --accent-foreground: hsl(220 25% 6%);
  --border: hsl(220 18% 18%);
  --destructive: hsl(0 84.2% 60.2%);
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
/* ===============================
   Scroll To Top — Tech Style
=================================*/
.scroll-top-btn {
  position: fixed;
  bottom: 100px; /* espacio arriba del botón WhatsApp */
  right: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s ease;
  z-index: 999;
  box-shadow: 0 0 0 rgba(0, 212, 255, 0);
}

.scroll-top-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
  border-color: #00d4ff;
}


.scroll-top-btn:hover {
  transform: translateY(0) scale(1.1);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Utilities ---------- */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: hsl(220 22% 10% / 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(220 18% 18% / 0.5);
}

.glow-primary { box-shadow: 0 0 30px hsl(210 100% 52% / 0.3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border: 1px solid var(--border); color: var(--foreground); background: transparent; }
.btn-outline:hover { background: var(--secondary); }
.btn-full { width: 100%; justify-content: center; }
.btn i, .btn svg { width: 18px; height: 18px; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0; transform: translateY(2rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.navbar-logo img { height: 40px; }
.navbar-links {
  display: flex; align-items: center; gap: 2rem;
}
.navbar-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--foreground); }
.navbar-toggle { display: none; background: none; border: none; color: var(--foreground); cursor: pointer; }
.navbar-toggle i, .navbar-toggle svg { width: 24px; height: 24px; }
.navbar-mobile { border-top: 1px solid var(--border); }
.navbar-mobile ul { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.navbar-mobile a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.navbar-mobile a:hover { color: var(--foreground); }

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsl(220 25% 6% / 0.8), hsl(220 25% 6% / 0.6), var(--background));
}
.hero-logo {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.hero-logo img { height: 7rem; }
.hero-logo.fade-out { opacity: 0; }
.hero-content {
  position: relative; z-index: 10; text-align: center;
}
.hero-tag {
  font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-desc { max-width: 42rem; margin: 0 auto 2.5rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

@media (min-width: 768px) { .hero-logo img { height: 10rem; } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section--alt { background: hsl(220 20% 16% / 0.3); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.section-header h1, .section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.section-desc { max-width: 42rem; margin: 0 auto; color: var(--muted-foreground); font-size: 1rem; }
.page-header { padding-top: 8rem; padding-bottom: 3rem; }

/* ---------- Timeline (Methodology) ---------- */
.timeline { position: relative; max-width: 56rem; margin: 0 auto; }
.timeline-line {
  position: absolute; left: 1.5rem; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2.5rem; padding-left: 0; }
.timeline-icon {
  position: relative; z-index: 10; flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: hsl(210 100% 52% / 0.1); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.timeline-icon i, .timeline-icon svg { width: 20px; height: 20px; }
.timeline-content h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

@media (min-width: 768px) {
  .timeline-line { left: 50%; transform: translateX(-0.5px); }
  .timeline-item { width: 100%; display: flex; align-items: center; }
  .timeline-item .timeline-content { width: 45%; }
  .timeline-item { justify-content: flex-start; flex-direction: row; }
  .timeline-item .timeline-content { text-align: right; padding-right: 3rem; order: -1; }
  .timeline-item--right { flex-direction: row-reverse; }
  .timeline-item--right .timeline-content { text-align: left; padding-right: 0; padding-left: 3rem; order: 1; }
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover { border-color: hsl(210 100% 52% / 0.5); transform: translateY(-4px); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.5rem;
  background: hsl(210 100% 52% / 0.1); color: var(--primary);
  margin-bottom: 1rem; transition: box-shadow 0.3s;
}
.service-card:hover .service-icon { box-shadow: 0 0 30px hsl(210 100% 52% / 0.3); }
.service-icon i, .service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ---------- Services Detail Grid (servicios.html) ---------- */
.services-detail-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .services-detail-grid { grid-template-columns: repeat(2, 1fr); } }

.service-detail-card { border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.service-detail-img { position: relative; height: 12rem; overflow: hidden; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-detail-card:hover .service-detail-img img { transform: scale(1.05); }
.service-detail-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsl(220 25% 6% / 0.8), transparent);
}
.service-detail-img-icon {
  position: absolute; bottom: 1rem; left: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: hsl(210 100% 52% / 0.2); backdrop-filter: blur(8px);
  color: var(--primary);
}
.service-detail-img-icon i, .service-detail-img-icon svg { width: 24px; height: 24px; }
.service-detail-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-detail-body h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-detail-body > p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.service-detail-body ul { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.service-detail-body li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: hsl(210 40% 96% / 0.9);
}
.service-detail-body li i, .service-detail-body li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.125rem; color: var(--primary); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-desc { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1.5rem; }
.about-list { display: flex; flex-direction: column; gap: 0.75rem; }
.about-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.about-list li i, .about-list li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { border-radius: var(--radius); padding: 1.5rem; text-align: center; transition: border-color 0.3s; }
.stat-card:hover { border-color: hsl(210 100% 52% / 0.5); }
.stat-value { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); }
/* ===============================
   Brands Carousel — FIXED PROPORTION
=================================*/

.brands-section {
  margin-top: 50px;
  text-align: center;
  position: relative;
}

.brands-section h3 {
  margin-bottom: 25px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff;
}

/* Contenedor principal */
.brands-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0; /* Eliminamos aire vertical */
}

/* Fade lateral más sutil */
.brands-slider::before,
.brands-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brands-slider::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(10, 15, 25, 1) 0%,
    rgba(10, 15, 25, 0) 100%
  );
}

.brands-slider::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(10, 15, 25, 1) 0%,
    rgba(10, 15, 25, 0) 100%
  );
}

/* Track animado */
.brands-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scrollBrands 32s linear infinite;
}

/* Pausa al pasar mouse */
.brands-slider:hover .brands-track {
  animation-play-state: paused;
}

/* Logos */
.brands-track img {
  height: 80px; /* Ajustado para mejor proporción */
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.brands-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Animación infinita */
@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===============================
   Responsive
=================================*/

@media (max-width: 1024px) {
  .brands-track img {
    height: 65px;
  }
}

@media (max-width: 768px) {
  .brands-track {
    gap: 25px;
  }

  .brands-track img {
    height: 55px;
  }

  .brands-slider::before,
  .brands-slider::after {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .brands-track img {
    height: 45px;
  }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 3fr 2fr; } }

.contact-form { border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { margin-bottom: 0.5rem; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 500;
  color: var(--muted-foreground); margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border-radius: 0.5rem;
  background: var(--muted); border: 1px solid var(--border);
  padding: 0.75rem 1rem; font-size: 0.875rem; font-family: inherit;
  color: var(--foreground);
  transition: box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(210 100% 52% / 0.5);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-foreground); }
.form-group textarea { resize: none; }
.form-group select { appearance: none; cursor: pointer; }
.form-error { font-size: 0.75rem; color: var(--destructive); margin-top: 0.25rem; display: block; min-height: 1rem; }

.captcha-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem; border-radius: 0.5rem;
  background: hsl(220 20% 16% / 0.5); border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.captcha-row span:first-child { font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.captcha-row input {
  width: 6rem; border-radius: 0.5rem;
  background: var(--muted); border: 1px solid var(--border);
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
  color: var(--foreground);
}
.captcha-row input:focus { outline: none; box-shadow: 0 0 0 2px hsl(210 100% 52% / 0.5); }

.contact-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.contact-process { border-radius: var(--radius); padding: 2rem; }
.contact-process h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.5rem; }
.process-step { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.process-num { font-size: 1.5rem; font-weight: 700; color: hsl(210 100% 52% / 0.6); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.process-step p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.5; padding-top: 0.25rem; }
.contact-info { border-radius: var(--radius); padding: 2rem; }
.contact-info h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: hsl(210 100% 52% / 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.contact-item-icon i, .contact-item-icon svg { width: 18px; height: 18px; }
.contact-item strong { font-size: 0.875rem; display: block; }
.contact-item p { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--foreground); }
/* ===============================
   Social Icons — Tech Style
=================================*/
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}
.social-links svg {
  width: 20px;
  height: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(10, 15, 25, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
  border-color: #00d4ff;
}

/* ---------- WhatsApp ---------- */
.whatsapp-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #25D366; color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn i, .whatsapp-btn svg { width: 28px; height: 28px; }
