/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header */
/* Header */
.header {
  background-color: #003366;
  padding: 1rem 0;
  position: fixed; /* Cambié sticky por fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Para que el contenido no quede oculto debajo del header fijo */
body {
  padding-top: 60px; /* Ajusta según la altura del header */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.logo {
  height: 60px;
  max-width: 200px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #00ccff;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Hero */
.hero {
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
}

.sobre-nosotros {
  padding: 4rem 2rem;
  background-color: #f7f7f7;
  text-align: justify;
  margin-top: 4rem;
}

/* Secciones */
.section {
  padding: 4rem 0;
}

.bg-light {
  background-color: #f4f4f4;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Trabajos */
.trabajos-slider {
  margin-top: 2rem;
}

.trabajos-track {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  overflow-x: hidden;
  width: 100%;
}

.trabajos-track img {
  height: 400px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.trabajos-track img:hover {
  transform: scale(1.05);
}

/* Clientes */
.clientes-slider {
  margin-top: 2rem;
}

.clientes-track {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  overflow-x: hidden;
  width: 100%;
}

.cliente-logo-container {
  width: 240px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cliente-logo-container img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: none !important;
}

.cliente-logo-container:hover img {
  transform: scale(1.1);
}

/* Contacto */
.contact-info {
  text-align: center;
  font-size: 1.1rem;
}

.contact-info a {
  color: #007acc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  background-color: #003366;
  color: white;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    padding: 1rem 0;
    text-align: center;
  }

  .nav.show {
    display: flex;
  }

  .nav a {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .trabajos-track img {
    height: 150px;
  }

  .logo {
    height: 60px;
  }
  
  /* --- HEADER FIJO EN MÓVILES --- */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1100;
  }
  
  /* Para que el contenido no quede oculto debajo del header fijo */
  body {
    padding-top: 60px; /* Ajusta este valor según la altura real del header */
  }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
