:root {
  /* --- PALETA DE COLORES --- */
  --brand-blue: #0b5596; 
  --brand-blue-dark: #073d6e; 
  --brand-green: #0b8196; 
  --brand-green-hover: #17a4bd;

  /* Neutros */
  --bg: #f8f9fa;       
  --text: #161616;     
  --muted: #4a5d73;    
  --card: #ffffff;     
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 15px rgba(11, 85, 150, 0.15);

  /* --- CONFIGURACIÓN DEL SLIDER DE CLIENTES --- */
  /* CAMBIA ESTE NÚMERO por la cantidad de logos ORIGINALES que tengas (sin contar los duplicados) */
  --cantidad-logos: 16; 
  --ancho-logo: 250px; /* Ancho de cada slide */
}

/* =====================
   RESET & BASES
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.5rem;
}

/* =====================
   HEADER & NAVEGACIÓN
===================== */
header {
  background-color: var(--brand-blue);
  height: 75px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
}

header .container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid var(--brand-green);
}

/* Menú Hamburguesa (Móvil) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }

.burger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }


/* =====================
   HERO SECTION
===================== */
.welcome {
  background-image: 
    linear-gradient(to bottom, rgba(11, 85, 150, 0.85), rgba(3, 35, 65, 0.9)),
    url(./assets/maquina-verde.jpeg);
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  padding: 8rem 1.5rem;
  text-align: center;
  color: #ffffff;
}

.welcome h2 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.welcome p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.btn {
  display: inline-block;
  background-color: var(--brand-green);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(11, 129, 150, 0.4);
}

.btn:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(11, 129, 150, 0.6);
}

/* =====================
   SECCIÓN NOSOTROS
===================== */
.about-hero {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.about-content {
  padding: 60px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--brand-blue);
  position: relative;
}

.about-text h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-green);
  margin-top: 10px;
  border-radius: 2px;
}

.check-list {
  list-style: none;
  margin-top: 20px;
}

.check-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.check-list i {
  color: var(--brand-green);
}

.about-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* =====================
   GALERÍA (Cards)
===================== */
.mini-gallery {
  padding: 4rem 1.5rem;
  background-color: var(--bg);
}

.mini-gallery h3 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--brand-blue);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  background-color: var(--card);
  padding: 2.5rem;
  text-align: center;
  border-radius: 12px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--brand-blue); 
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--brand-green);
}

/* =====================
   INFO & MAPA
===================== */
.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

.info h3 {
  margin-bottom: 1rem;
  color: var(--brand-blue);
}

.info ul {
  list-style: none;
  padding: 0;
}

.info li {
  margin-bottom: 0.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-green);
  color: var(--text);
}

.map-wrapper {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #ddd;
}

/* =====================
   SECCIÓN CONTACTO
===================== */
.contact-hero {
  background-color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.contact-hero h2 {
    font-size: 2.5rem;
    color: var(--brand-blue);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 80px;
}

.contact-info {
  background-color: var(--brand-blue);
  color: white;
  padding: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255,255,255,0.8);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
}

.info-item i {
  font-size: 1.4rem;
  margin-right: 15px;
  margin-top: 4px;
  color: var(--brand-green);
}

.contact-form {
  padding: 50px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: #fcfcfc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(11, 85, 150, 0.1);
}

.btn-submit {
  background-color: var(--brand-blue);
  color: white;
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: var(--brand-blue-dark);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* =====================
   FOOTER
===================== */
footer {
  background-color: var(--brand-blue);
  color: #fff;
  padding: 60px 0 20px;
  border-top: 5px solid var(--brand-green);
  margin-top: auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: var(--brand-green);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.footer-col ul li a:hover {
  color: var(--brand-green);
  padding-left: 5px;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--brand-green);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* =====================
   BOTÓN WHATSAPP FLOTANTE
===================== */
.btn-whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--brand-green);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.btn-whatsapp-flotante:hover {
    background-color: var(--brand-green-hover);
    transform: scale(1.1);
}

/* =====================
   SLIDER INFINITO DE CLIENTES (NUEVO)
===================== */
.clients-section {
  padding: 4rem 0;
  background-color: #fff;
  overflow: hidden; 
}

.clients-section h3 {
  text-align: center;
  color: var(--brand-blue);
  font-size: 2rem;
  margin-bottom: 3rem;
}

.slider {
  background: white;
  height: 150px; /* Altura del contenedor del slider */
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slide-track {
  display: flex;
  align-items: center;
  width: calc(var(--ancho-logo) * var(--cantidad-logos) * 2);
  animation: scroll 70s linear infinite;
}

.slide {
  height: 100px;
  width: var(--ancho-logo);
  padding: 0 30px; /* Espacio lateral entre logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  max-height: 80px; /* Altura estándar para la mayoría */
  object-fit: contain;
  
  /* Efecto Blanco y Negro */
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* Al pasar el mouse por un logo */
.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
  cursor: pointer;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(var(--ancho-logo) * var(--cantidad-logos) * -1));
  }
}

/* Pausar animación al pasar el mouse por el carrusel */
.slider:hover .slide-track {
    animation-play-state: paused;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(11, 129, 150, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(11, 129, 150, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 129, 150, 0); }
}

/* =====================
   RESPONSIVE (Móvil)
===================== */
@media (max-width: 768px) {
  /* Menú */
  .burger { display: block; }
  
  .nav-links {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--brand-blue);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }
  
  .nav-links.show { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; color: #fff; }

  /* Hero */
  .welcome { padding: 5rem 1.5rem; }
  .welcome h2 { font-size: 2.2rem; }

  /* Grids a 1 columna */
  .about-grid, 
  .contact-wrapper,
  .info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text { order: 2; }
  .about-image { order: 1; }

  .contact-info, .contact-form { padding: 30px; }
  
  .footer-row {
      flex-direction: column;
      gap: 40px;
  }
}