/*---------------------------------------------------------------------
  Better Clean - Hoja de estilos principal
  Versión optimizada y compatible con el HTML
---------------------------------------------------------------------*/

/* Variables CSS */
:root {
     --primary-color: #114c7d;
     --secondary-color: #4ac9f0;
     --accent-color: #fbe212;
     --dark-color: #023041;
     --light-color: #f1f1f1;
     --text-color: #333;
     --white: #fff;
     --black: #000;
     --font-main: 'Poppins', sans-serif;
     --font-heading: 'Rajdhani', sans-serif;
     --transition: all 0.3s ease-in-out;
     --border-radius: 8px;
     --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
   }
   
   
   html {
     scroll-behavior: smooth;
   }
   
   body {
     font-family: var(--font-main);
     color: var(--text-color);
     line-height: 1.6;
     background-color: var(--white);
     overflow-x: hidden;
   }
   
   img {
     max-width: 100%;
     height: auto;
     display: block;
   }
   
   a {
     text-decoration: none;
     color: var(--primary-color);
     transition: var(--transition);
   }
   
   a:hover {
     color: var(--secondary-color);
   }
   
   /* Tipografía */
   h1, h2, h3, h4, h5, h6 {
     font-family: var(--font-heading);
     font-weight: 600;
     line-height: 1.3;
     color: var(--primary-color);
     margin-bottom: 1rem;
   }
   
   h1 { font-size: 2.5rem; }
   h2 { font-size: 2rem; }
   h3 { font-size: 1.75rem; }
   h4 { font-size: 1.5rem; }
   h5 { font-size: 1.25rem; }
   h6 { font-size: 1rem; }
   
   p {
     margin-bottom: 1.5rem;
   }
   
   /* Layout */
   .container {
     width: 100%;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
   }
   
   .section {
     padding: 4rem 0;
   }
   
   .section-title {
     text-align: center;
     margin-bottom: 3rem;
     position: relative;
   }
   
   .section-title::after {
     content: '';
     display: block;
     width: 80px;
     height: 4px;
     background: var(--secondary-color);
     margin: 1rem auto 0;
   }
   
   /* Header */
   .header {
     background-color: var(--dark-color);
     padding: 1rem 0;
     position: sticky;
     top: 0;
     z-index: 1000;
   }
   
   .header-container {
     display: flex;
     justify-content: space-between;
     align-items: center;
   }
   
   .logo img {
     max-height: 60px;
     background-color:#fbe212;
   }
   
   .main-nav ul {
     display: flex;
     list-style: none;
     gap: 1.5rem;
   }
   
   .main-nav a {
     color: var(--white);
     font-weight: 500;
     padding: 0.5rem 1rem;
     border-radius: var(--border-radius);
   }
   
   .main-nav a:hover,
   .main-nav a.active {
     background-color: rgba(255,255,255,0.1);
   }
   
   .quick-contact ul {
     list-style: none;
     display: flex;
     gap: 1.5rem;
   }
   
   .quick-contact a {
     color: var(--white);
     display: flex;
     align-items: center;
     gap: 0.5rem;
   }
   
   .quick-contact img {
     width: 20px;
     height: 20px;
   }
   
   /* Hero */
   .hero {
     background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/banner1.jpg');
     background-size: cover;
     background-position: center;
     color: var(--white);
     padding: 6rem 0;
     text-align: center;
   }
   
   .hero-content {
     max-width: 800px;
     margin: 0 auto;
   }
   
   .hero h1 {
     color: var(--white);
     font-size: 3rem;
     margin-bottom: 1.5rem;
   }
   
   .lead {
     font-size: 1.25rem;
     color: #000;
     margin-bottom: 2rem;
     background-color: #fbe212;
     border-radius: var(--border-radius);
   }
   
   
   


.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-items: center;
}

.producto {
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.product-thumbnail img {
  width: 100%;      /* Se adapta al contenedor */
  height: auto;     /* Mantiene proporción */
  object-fit: cover;
  max-width: 400px; /* Limita ancho en la galería */
  border-radius: 8px;
}


/* Grid de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

/* Tarjeta de producto */
.gallery-product {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem;
}

.gallery-product:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Imagen dentro de la tarjeta */
.product-thumbnail img {
  display: block;
  margin: 0 auto;       /* centrado horizontal */
  width: 80%;           /* más pequeña que la tarjeta */
  aspect-ratio: 4/3;    /* mantiene proporción uniforme */
  object-fit: contain;   /* no recorta la imagen */
  transition: transform 0.4s ease;
}

.gallery-product:hover img {
  transform: scale(1.05);
}

/* Texto del producto */
.product-meta h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #333;
}

.product-meta p {
  font-size: 0.95rem;
  color: #666;
}

.product-price {
  font-weight: bold;
  margin: 0.5rem 0;
}

/* Badges */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6f61;
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 0.3rem;
}

/* Contenedor de imagen con posición relativa para badges */
.product-thumbnail {
  position: relative;
}

/* Grid */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

/* Tarjeta */
.producto-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Animación al aparecer en scroll */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25),
              0 0 20px rgba(0,150,255,0.3);
}

/* Imágenes */
.producto-card img {
  display: block;
  margin: 0 auto;              /* centra la imagen */
  width: 70%;                  /* más pequeña */
  aspect-ratio: 4 / 3;         /* mantiene proporción */
  object-fit: contain;         /* se adapta sin recortar */
  transition: transform 0.4s ease;
}

.producto-card:hover img {
  transform: scale(1.05);
}

/* Texto */
.producto-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.producto-card p {
  font-size: 0.95rem;
  color: #666;
  padding: 0 0.5rem;
}

.producto {
  width: 250px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  margin: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Redimensionar imágenes para todas las tarjetas */
.producto .image-container img {
  width: 100%;       /* Ocupa todo el ancho de la tarjeta */
  max-height: 180px; /* Altura máxima para uniformidad */
  object-fit: cover; /* Corta o ajusta la imagen manteniendo proporción */
  border-bottom: 1px solid #ddd;
  display: block;
}

/* Mantener estilo de la tarjeta */
.producto {
  width: 250px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  margin: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.product-meta {
  padding: 15px;
  text-align: center;
}

/* Títulos y textos */
.product-meta h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
  color: #333;
}

.product-meta p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.product-price {
  font-weight: bold;
  margin-bottom: 10px;
}

.product-price span {
  font-weight: normal;
  font-size: 0.9rem;
}

/* Botón */
.btn.btn-outline {
  padding: 8px 15px;
  border: 2px solid #333;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn.btn-outline:hover {
  background: #333;
  color: #fff;
}


.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.product-meta {
  padding: 15px;
  text-align: center;
}

.product-meta h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
  color: #333;
}

.product-meta p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.product-price {
  font-weight: bold;
  margin-bottom: 10px;
}

.product-price span {
  font-weight: normal;
  font-size: 0.9rem;
}

.btn.btn-outline {
  padding: 8px 15px;
  border: 2px solid #333;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn.btn-outline:hover {
  background: #333;
  color: #fff;
}


/* Animación keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.producto img {
  width: 100%;        /* se ajusta al contenedor */
  max-width: 300px;   /* ancho máximo para desktop */
  height: auto;       /* mantiene proporción */
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-meta h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.product-meta p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 5px;
}

.product-price {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* =============================
   Galería de Productos
============================= */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  justify-items: center;
}

.producto {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.image-container {
  width: 100%;
  height: 220px; /* altura uniforme para todas las imágenes */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.benefit-card {
  padding: 20px;
  border: 3px solid #FFD700; /* borde amarillo tipo nota */
  border-radius: 12px;
  background-color: #fff8dc; /* color de fondo tipo papel */
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.benefit-card:hover {
  transform: translateY(-5px);
}
/* Grid general */
.benefits-grid, .usage-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Tarjetas con fondo animado */
.benefit-card, .usage-step {
  position: relative;
  padding: 20px;
  border: 3px solid #FFD700;
  border-radius: 12px;
  color: #333;
  background: linear-gradient(270deg, #fffacd, #fff, #f0e68c);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
}

/* Número de paso */
.step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background-color: #FFD700;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

/* Animación del fondo */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.benefit-card h3, .usage-step h3 {
  margin-top: 0;
}

.benefit-card p, .usage-step p {
  margin-bottom: 0;
}


.image-container img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* Metadatos de productos */
.product-meta {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-meta h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.product-meta p {
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
}

.product-price {
  font-weight: bold;
  margin: 0.5rem 0;
}

.product-price span {
  font-weight: normal;
  color: #777;
}

/* Botones */
.btn.btn-outline {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #007bff;
  color: #007bff;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.btn-outline:hover {
  background-color: #007bff;
  color: #fff;
}

/* =============================
   Beneficios
============================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.benefit-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.benefit-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* =============================
   Cómo Usar
============================= */
.usage-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.usage-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.usage-step img {
  width: 100%;
  max-width: 180px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.step-number {
  font-weight: bold;
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 0.5rem;
}

/* =============================
   CTA
============================= */
.cta {
  background-color: #f9f9f9;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 12px;
  margin: 2rem 0;
}

.cta .btn-primary {
  background-color: #007bff;
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  margin-right: 0.5rem;
}

.cta .btn-secondary {
  background-color: transparent;
  border: 1px solid #007bff;
  color: #007bff;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.cta .btn-primary:hover,
.cta .btn-secondary:hover {
  opacity: 0.9;
}

/* =============================
   Responsive
============================= */
@media (max-width: 1024px) {
  .image-container {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .productos-grid, .benefits-grid, .usage-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .productos-grid, .benefits-grid, .usage-steps {
    grid-template-columns: 1fr;
  }
  .product-meta h3, .benefit-card h3, .usage-step h3 {
    font-size: 1.05rem;
  }
  .product-meta p, .benefit-card p, .usage-step p {
    font-size: 0.9rem;
  }
}


/* Grid */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Tarjeta */
.producto-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Imágenes (se redimensionan aquí, sin afectar el archivo original) */
.producto-card img {
  width: 100%;
  height: 200px; /* Tamaño uniforme en diseño */
  object-fit: cover; /* Recorta la imagen si es más grande */
  transition: transform 0.4s ease;
}

.producto-card:hover img {
  transform: scale(1.05);
}


.gallery-product {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-thumbnail {
  position: relative;
  overflow: hidden;
}

.product-thumbnail img {
  width: 100%;       /* Se adapta al contenedor */
  height: auto;      /* Mantiene proporción original */
  display: block;
  object-fit: cover; /* Opcional: recorta si es necesario */
  border-bottom: 1px solid #eee;
}


.product-thumbnail,
.image-container {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumbnail img,
.image-container img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ff4c3b;
  color: #fff;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.product-badge.pro {
  background-color: #007bff;
}

.product-badge.bestseller {
  background-color: #f0ad4e;
}

.product-meta {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.product-meta p {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.product-price {
  font-weight: bold;
  margin: 0.5rem 0;
}

.product-price span {
  font-weight: normal;
  color: #777;
}

.btn.btn-outline {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #007bff;
  color: #007bff;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn.btn-outline:hover {
  background-color: #007bff;
  color: #fff;
}


/* Responsive */
@media (max-width: 1024px) {
  .producto img {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .productos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }

  .product-meta h3 {
    font-size: 1.1rem;
  }

  .product-meta p {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 0.95rem;
  }
}
