/* --- Reset y base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  padding-top: 80px !important; /* Para compensar el header fijo */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / Menú --- */
.header {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000 !important;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 20px; /* Aseguramos padding horizontal */
  box-sizing: border-box; /* Para que el padding no aumente el ancho */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}
.logo img {
  height: 60px; /* Logo más grande */
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05); /* Efecto de hover suave */
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
@media (max-width: 768px) {
  .nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .nav a {
    padding: 10px 15px;
    display: block;
  }
}

.nav a {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 4px;
}
.nav a:hover,
.nav a.active {
  color: #FF6B6B;
  border-bottom: 2px solid #FF6B6B;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}
.social-icons img:hover {
  filter: grayscale(0%);
}

/* --- Hero Section --- */
.hero {
  background: #f9f9f9;
  padding: 60px 0 50px; /* Redujimos el padding superior e inferior */
  margin-top: 30px; /* Redujimos el margen superior para acercarlo al header */
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 20px; /* Agregamos un poco de padding para dar espacio */
}

.hero-image.show {
  opacity: 1;
  transform: translateX(0);
}
.hero-image img {
  width: 85%; /* Reducimos al 75% del ancho original */
  height: auto;
  display: block;
  margin: 0 auto; /* Centramos la imagen horizontalmente */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hero-text {
  flex: 1;
  min-width: 300px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-out;
  text-align: left;
}
.hero-text.show {
  opacity: 1;
  transform: translateX(0);
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #003366;
}
.hero-text h1 span {
  color: #FF6B6B;
}
.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: #555;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-orange {
  background: #FF6B6B;
  color: white;
  border: 2px solid #FF6B6B;
}
.btn-orange:hover {
  background: #FF5252;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

/* --- Secciones generales --- */
.section {
  padding: 60px 0;
  background: white; /* Fondo blanco para toda la sección */
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #003366;
}

/* --- Valores --- */
.valores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.valor {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  width: 180px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-weight: 600;
  color: #0055a4;
  transition: transform 0.3s;
}
.valor:hover {
  transform: translateY(-5px);
}

/* --- Productos --- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.producto {
  background: white; /* Fondo blanco puro */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto:hover {
  transform: translateY(-12px); /* Más elevación */
  box-shadow: 0 12px 30px rgba(0,0,0,0.15); /* Sombra más profunda */
  border-color: #FF6B6B; /* Borde que cambia de color al hacer hover */
  transition: all 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67); /* Transición suave y con rebote */
}

/* --- Hover en título --- */
.producto:hover h3 {
  color: #FF6B6B; /* Cambia el color del título al hacer hover */
  text-decoration: underline; /* Opcional: subrayado suave */
}

/* --- Hover en botón --- */
.producto:hover .btn-orange {
  background: #FF5252; /* Color más oscuro al hacer hover */
  transform: scale(1.05); /* Aumenta ligeramente el tamaño */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Sombra adicional */
}

.producto-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  background: transparent; /* ← ¡Eliminamos el fondo gris! */
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
  padding: 15px;
  box-sizing: border-box;
}
.producto h3 {
  color: #003366;
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.producto p {
  color: #555;
}

/* --- Llamado a la acción --- */
.cta {
  background: #f5f9ff;
  text-align: center;
  padding: 70px 0;
}
.cta h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 20px;
}
.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #555;
}

/* --- Footer --- */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  background: #25D366;
  padding: 10px;
}
.whatsapp-float img {
  width: 60px;
  height: 60px;
  filter: brightness(1) contrast(1);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover img {
  transform: scale(1.1);
}
.whatsapp-float:hover {
  background: #128C7E;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-content {
    flex-direction: column;
  }
  .hero-image,
  .hero-text {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}
/* --- Especificaciones técnicas --- */
.producto .specs {
  list-style: none;
  margin: 15px 0;
  font-size: 0.9rem;
  color: #555;
}
.producto .specs li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}
.producto .specs li::before {
  content: "• ";
  color: #FF6B6B;
  font-weight: bold;
  margin-right: 5px;
}
/* --- Enlace en producto --- */
.producto-link {
  text-decoration: none;
  color: inherit;
}
.producto-link:hover .producto {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
/* --- Botón hamburguesa (menú móvil) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  margin-right: auto; /* ← ¡Esto lo alinea a la izquierda! */
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* --- Responsive: Móvil --- */
@media (max-width: 768px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 15px 20px;
    background: white;
    z-index: 1000;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav ul {
    flex-direction: column;
    padding: 15px 0;
    margin: 0;
    gap: 10px;
    text-align: center;
  }

  .nav a {
    display: block;
    padding: 12px 20px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
  }

  .nav a:hover,
  .nav a.active {
    color: #FF6B6B;
    border-bottom: none;
    background: #fdfdfd;
  }

  /* Ocultar íconos sociales en móvil (opcional) */
  .social-icons {
    display: none;
  }

  /* Compensar contenido por header fijo */
  body {
    padding-top: 80px;
  }
}