:root {
  --primary: #2b81c2;
  --primary-dark: #1a5c8e;
  --secondary: #1a3b70;
  --accent: #e63946; /* Red for urgent CTOs or alerts */
  --bg: #0f172a; /* Dark industrial navy */
  --surface: #1e293b;
  --surface-light: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

a {
  text-decoration: none !important;
  color: inherit;
}

ul {
  list-style: none;
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--white) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.95);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(43, 129, 194, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(43, 129, 194, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hero Section */
/* Hero Section Updated */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
  background: none; /* Removed old gradient */
}

/* ---- Slideshow layers ---- */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(15, 37, 80, 0.88) 0%,
    rgba(26, 61, 124, 0.75) 50%,
    rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 60px 24px;
  margin-left: 8%; /* Align to left on desktop */
  text-align: left;
}

@media (max-width: 991px) {
  .hero-content {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  font-weight: 300;
  max-width: 580px;
}

.hero-bullets {
  margin-bottom: 36px;
  padding-left: 0;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-size: 0.97rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-bullets li i {
  color: #4ade80;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Landing Style Hero Button */
.btn-hero {
  display: inline-block;
  padding: 16px 42px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 24px rgba(43, 129, 194, 0.45);
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 129, 194, 0.55);
}

.btn-hero-inv {
  background: var(--white);
  color: var(--primary);
}

.btn-hero-inv:hover {
  background: #e8f0fe;
  color: var(--primary-dark);
}

/* Page Headers for Subpages */
.page-header {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px; /* Offset for fixed nav */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 1));
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
}


/* Sections */
.section {
  padding: 10rem 0;
}

.section-header {
  margin-bottom: 5rem;
}

.section-label {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.form-status {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid { gap: 1rem; }
  .form-group { margin-bottom: 0.5rem; }
  .card { padding: 1.5rem; }
  .section { padding: 5rem 0; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--surface-light);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(43, 129, 194, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Product Cards */
.product-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.product-image {
  height: 240px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 2rem;
}

/* Brands Slider */
.brands-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  opacity: 0.8;
  transition: var(--transition);
}

.brands-row:hover {
  opacity: 1;
}

.brands-row img {
  height: 80px;
  max-width: 200px;
  object-fit: contain;
}

/* Marquee Animation for Clients */
.client-section {
  padding: 8rem 0;
  background: white; /* Match original site background for this section */
  color: #333; /* Dark text for contrast */
}

.client-section-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.client-title-side {
  flex: 0 0 250px;
  text-align: right;
  border-right: 5px solid var(--primary);
  padding-right: 2rem;
}

.client-title-side h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: #1a3b70;
  text-transform: uppercase;
}

.marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}

.brands-marquee {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: scroll 60s linear infinite; /* Slower for many logos */
}

.brands-marquee:hover {
  animation-play-state: paused;
}

.client-card {
  background: white;
  width: 250px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.client-card img {
  max-width: 90%; /* Increased from 100% with padding in mind */
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
footer {
  background: #0b1121;
  padding: 8rem 0 4rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-brand {
  position: relative;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 2rem;
}


.footer-col h4 {
  margin-bottom: 2rem;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-links li {
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Widgets */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: var(--transition);
}

.whatsapp-fixed:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-light);
}

/* Tables (Technical Specs) */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: 15px;
  overflow: hidden;
}

.tech-table th {
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  padding: 1.2rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.tech-table td {
  padding: 1.2rem;
  border-top: 1px solid var(--glass-border);
  font-size: 1.1rem;
}

.tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Global resets for scroll bugs on mobile iOS / Android */
html, body {
  max-width: 100vw;
  overflow-x: clip;
}
img, video, iframe {
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .menu-btn {
    display: block !important;
    z-index: 1001;
    margin-left: auto;
  }
  
  nav .container {
    flex-wrap: wrap;
    align-items: center;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 30px rgba(0,0,0,0.5);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav > .container > .btn-primary {
    display: none; /* Hide header CTA on mobile space */
  }

  .client-section-layout {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .client-title-side {
    border-right: none;
    border-bottom: 5px solid var(--primary);
    padding-right: 0;
    padding-bottom: 1.5rem;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    line-height: 1.25;
  }

  .hero-visual {
    width: 100%;
    right: 0;
    opacity: 0.15;
  }
  
  .brands-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .page-header h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Contact section specificity */
  .contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
  }


  /* Services section gap fix */
  .servicios-grid {
    gap: 6rem;
  }

  @media (max-width: 768px) {
    .contact-card {
      grid-template-columns: 1fr;
    }
    
    .contact-card > div {
      padding: 2rem !important;
    }
    
    .hero-actions {
      justify-content: flex-start;
      gap: 0.8rem;
    }

    .servicios-grid {
      gap: 2.5rem;
    }

    .section-title {
      font-size: 2.2rem;
    }

    /* ── Hero mobile overhaul ── */
    .hero-content {
      padding: 30px 20px 24px;
      margin-left: 0;
    }

    .hero-badge {
      font-size: 0.7rem;
      padding: 0.4rem 1rem;
      margin-bottom: 0.8rem;
    }

    .hero-title {
      font-size: clamp(1.35rem, 6.5vw, 1.7rem) !important;
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .hero-subtitle {
      font-size: 0.88rem;
      margin-bottom: 16px;
      line-height: 1.5;
    }

    /* Compact pill buttons on mobile */
    .btn-hero {
      padding: 10px 20px;
      font-size: 0.78rem;
      letter-spacing: 0.3px;
    }
  }
}
