/* style.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #212529;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Navbar */
.navbar {
  background-color: #143d59; /* color adaptable al logo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .logo img {
  height: 54px;
}

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

.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 1.22rem;
  padding: 0 8px;
  line-height: 68px;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #4dd0e1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 2px;
}

/* Slider */
.slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out; /* Animación suave */
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none; /* Ocultar todos los slides por defecto */
  align-items: center;
  justify-content: center;
  position: relative;
}

.slide.active {
  display: flex; /* Mostrar solo el slide activo */
}

.caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  color: white;
}

.caption h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.caption p {
  margin-bottom: 1rem;
}

.btn {
  background-color: #e74c3c;
  color: #fff;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #c0392b;
}

/* Servicios */
.servicios {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.servicios h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  flex: 1 1 300px;
  max-width: 400px;
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.card h3 {
  margin: 1rem 0 0.5rem;
  color: #34495e;
}

/* Pantalla modal para trabaja con nosotros */
#trabaja-pantalla {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,30,40,0.93);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  transition: opacity 0.2s;
}

#trabaja-pantalla.active {
  display: flex;
  opacity: 1;
}

#cerrar-trabaja {
  position: absolute;
  top: 32px;
  right: 32px;
  background: #fff;
  color: #ff6600;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

#cerrar-trabaja:hover {
  background: #ff6600;
  color: #fff;
}


/* WhatsApp */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* --- FOOTER CORREGIDO --- */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 45px 0 20px;
    font-size: 15px;
    line-height: 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left; /* Alineación a la izquierda por defecto */
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-col p {
    color: #b2b2b2;
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 12px;
    color: #b2b2b2;
}

.footer-links a {
    color: #b2b2b2;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    margin-right: 10px;
    transition: opacity .3s ease-in-out;
}

.footer-social a:hover {
    opacity: 0.7;
}

.social-icon-img {
    width: 28px; /* Tamaño unificado para los logos */
    height: 28px;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #4a4a4a;
}

.footer-copyright p {
    color: #b2b2b2;
}

/* Responsive */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }

  .navbar {
    /* Mantiene el logo y el menú de hamburguesa en la misma línea */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .navbar .nav-links {
    display: none; /* Oculta los enlaces por defecto */
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: absolute;
    top: 68px; /* Altura de la navbar, ajusta si es necesario */
    left: 0;
    background-color: #143d59;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }

  .navbar .nav-links.active {
    display: flex; /* Muestra los enlaces cuando el menú está activo */
  }

  .navbar .nav-links li {
    width: 100%;
    text-align: center;
  }

  .navbar .nav-links a {
    padding: 1rem 0;
    line-height: 1; /* Resetea la altura de línea */
    width: 100%;
    display: block;
  }
  
  .footer-container {
      flex-direction: column;
      text-align: center;
  }

  .caption h1 {
    font-size: 1.8rem;
  }
}

/* =================================== */
/* ESTILOS PRODUCTOS          */
/* =================================== */
#productos {
  padding: 4rem 2rem;
  background: #fff;
}

#productos h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.product-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.1rem;
  color: #34495e;
  font-weight: bold;
  margin-bottom: 1rem;
  min-height: 50px; /* Ayuda a alinear las tarjetas */
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #143d59;
  margin-bottom: 0.5rem;
}

.product-card .stock,
.product-card .code {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.25rem;
}