/* ========================= */
/* RESET Y ESTILOS BASE      */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f7f8fc;
  color: #222;
  overflow-x: hidden;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
}

/* ========================= */
/* PARTICULAS OPTIMIZADAS    */
/* ========================= */
.particles-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* Capa intermedia ideal */
  overflow: hidden; 
}

.particles-global span {
  position: absolute;
  bottom: -40px; 
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  filter: blur(1px); /* Efecto suave de desenfoque esférico */
  animation: floatUp linear infinite;
}

/* Ajuste de tamaños mayores (De 12px a 35px) y retardos aleatorios */
.particles-global span:nth-child(1) { left: 8%; width: 22px; height: 22px; animation-duration: 14s; animation-delay: 0s; }
.particles-global span:nth-child(2) { left: 22%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: 3s; }
.particles-global span:nth-child(3) { left: 38%; width: 35px; height: 35px; animation-duration: 16s; animation-delay: 1s; background: rgba(255, 255, 255, 0.2); }
.particles-global span:nth-child(4) { left: 52%; width: 18px; height: 18px; animation-duration: 22s; animation-delay: 5s; }
.particles-global span:nth-child(5) { left: 68%; width: 28px; height: 28px; animation-duration: 15s; animation-delay: 2s; }
.particles-global span:nth-child(6) { left: 88%; width: 16px; height: 16px; animation-duration: 24s; animation-delay: 7s; }
.particles-global span:nth-child(7) { left: 14%; width: 25px; height: 25px; animation-duration: 18s; animation-delay: 4s; }
.particles-global span:nth-child(8) { left: 45%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 8s; }
.particles-global span:nth-child(9) { left: 78%; width: 32px; height: 32px; animation-duration: 21s; animation-delay: 6s; background: rgba(255, 255, 255, 0.25); }
.particles-global span:nth-child(10) { left: 93%; width: 20px; height: 20px; animation-duration: 17s; animation-delay: 10s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-125vh) scale(1.2); opacity: 0; }
}

/* ========================= */
/* MENÚ NAVIGATION & HEADER  */
/* ========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(2, 8, 30, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-text h2 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
}

.logo-text span {
  color: #ffb703;
}

.logo-text p {
  font-size: .7rem;
  color: #d7e2ff;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 42px;
}

.nav a {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  transition: .3s;
}

.nav a:hover {
  color: #ffb703;
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* ========================= */
/* HERO SECTION & ONDA PERFECTA*/
/* ========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 130px 8% 140px; 
  background: linear-gradient(90deg, #01091f, #001a56, #0a5fc9);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
  z-index: 1;
}

/* Ajustes de precisión para evitar líneas de separación o pixelado */
.hero-wave {
  position: absolute;
  bottom: -2px; /* El -2px oculta cualquier línea "fantasma" entre colores */
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  -webkit-transform: translateZ(0); /* Fuerza aceleración por hardware (suaviza bordes en Chrome/Safari) */
  transform: translateZ(0);
}

.hero-wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 180px; /* Hace la curva más profunda y notoria */
}

.hero-wave .shape-fill {
  fill: #f7f8fc; 
}

/* ========================= */
/* COMPONENTES DEL HERO      */
/* ========================= */
.hero-content {
  width: 50%;
  z-index: 4;
  position: relative;
  color: #fff;
}

.badge {
  display: inline-block;
  background: rgba(255, 183, 3, 0.2);
  color: #ffb703;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-content h1 span {
  color: #ffb703;
}

.animated-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d7e2ff;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 35px;
}

.hero-image {
  width: 46%;
  z-index: 4; 
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
  /* Máscara de fusión limpia hacia el fondo */
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #ffb703;
  color: #111;
}

.btn-primary:hover {
  background: #e6a500;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 183, 3, 0.3);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* ========================= */
/* SECCIONES SECUNDARIAS     */
/* ========================= */
section {
  padding: 90px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.6rem;
  color: #01091f;
  margin-bottom: 12px;
  font-weight: 800;
}

.section-title p {
  color: #666;
  font-size: 1.15rem;
}

/* TARJETAS DE CATEGORÍA */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 35px;
  
}

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Esto aplica SOLO a las tarjetas de una sola imagen */
.card > img {
  width: 100%;
  height: 350px; 
  object-fit: contain; 
  padding: 0; 
  background-color: #fff; 
}

.card-content {
  padding: 24px;
  text-align: center;
}

.card-content h3 {
  color: #01091f;
  font-size: 1.3rem;
}

/* EXPERIENCIA SECCIÓN */
.experience {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #fff;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.04);
}

.experience img {
  width: 48%;
  border-radius: 16px;
  object-fit: cover;
}

.experience-content {
  width: 52%;
}

.experience-content h2 {
  font-size: 2.2rem;
  color: #01091f;
  margin-bottom: 18px;
  font-weight: 700;
}

/* FOOTER Y WHATSAPP FLOTANTE */
footer {
  background: #01091f;
  color: #fff;
  text-align: center;
  padding: 50px 8%;
}

footer h2 {
  color: #ffb703;
  margin-bottom: 12px;
  font-size: 2rem;
}

.floating-whatsapp {
  position: fixed;
  bottom: 35px;
  right: 35px;
  background: #25d366;
  color: white;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

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


/* ========================= */
/* MINI GALERÍA EN TARJETAS  */
/* ========================= */
.product-gallery {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.main-image {
  width: 100%;
  height: 280px; /* Un poco más pequeña para dejarle espacio a las miniaturas */
  object-fit: contain;
  padding: 10px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 15px;
  background-color: #fff;
}

.thumbnails img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnails img:hover {
  border-color: #ffb703; /* Borde amarillo al pasar el mouse */
  transform: translateY(-2px);
}

/* ========================= */
/* RESPONSIVE DESIGN (MÓVIL) */
/* ========================= */
@media(max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: #06132b;
    flex-direction: column;
    padding: 110px 25px;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 25px;
  }

  .nav.active {
    right: 0;
  }

  /* REESCRITURA DE HERO PARA PRIMER PLANO EN MÓVIL */
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 130px;
    padding-bottom: 90px;
    gap: 0px;
  }

 .hero-content {
    width: 100%;
    order: 2; /* Ahora el texto va en segundo lugar (abajo) */
    margin-top: 25px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Nabucodonosor en Impactante Primer Plano */
  .hero-image {
    width: 100%;
    order: 1; /* Ahora la imagen va en primer lugar (arriba) */
    margin-top: 0; 
  }

  .hero-image img {
    max-width: 400px; /* Tamaño expandido para imponer presencia visual */
    width: 85%;
    /* Máscara suavizada ajustada al escalado móvil */
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  }

  .hero-wave svg {
    height: 80px; 
  }

  .experience {
    flex-direction: column;
    padding: 30px;
    gap: 30px;
  }

  .experience img, .experience-content {
    width: 100%;
  }
}

/* ========================= */
/* ESTILOS DE PRODUCTOS      */
/* ========================= */
.product-desc {
  font-size: 0.95rem;
  color: #666;
  margin: 10px 0 15px;
  min-height: 45px; /* Mantiene la misma altura en todas las tarjetas */
}

.price {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffb703;
  margin-bottom: 20px;
}

.btn-small {
  padding: 12px 20px;
  font-size: 1rem;
  display: block;
  width: 100%; /* El botón ocupa todo el ancho de la tarjeta */
  text-align: center;
}