:root {
  --color-primary: #050237;
  --color-secondary: #0a0548;
  --color-alt: #234c8e;
  --color-accent: #27e6f6;
  --color-light: #f9f9f9;
  --color-dark: #222;
}

.btn {
  display: inline-block;
  background-color: var(--color-alt);
  color: white;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--color-primary);
}

/* Filtros de categorías */
.category-filters {
  padding: 20px 0;
  background-color: white;
  margin-bottom: 30px;
}

.filters-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: #f0f0f0;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-alt);
  color: white;
}

/* Productos */
.products-section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--color-alt);
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* === Ajuste para imágenes que no se escalan correctamente === */
.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  /* altura fija más alta para productos grandes */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f8f8;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* <-- muestra la imagen completa sin recortarla */
  object-position: center;
  transition: transform 0.5s ease;
}

/* Efecto zoom al pasar el mouse */
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.8rem;
  color: var(--color-alt);
  margin-bottom: 5px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.product-info p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.product-price {
  font-weight: bold;
  color: var(--color-alt);
  font-size: 1.1rem;
  margin-bottom: 15px;
}


/* Footer */
footer {
  background-color: var(--color-dark);
  color: #fff;
  padding: 60px 0 20px;
}

.no-products {
  text-align: center;
  grid-column: 1 / -1;
  padding: 2rem;
  font-size: 1.2rem;
  color: #666;
}

.producto-detalle {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.producto-detalle img {
  flex: 1 1 300px;
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.producto-detalle div {
  flex: 2 1 400px;
}

.producto-detalle p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #555;
}

.producto-detalle .btn {
  margin-top: 20px;
}

.producto-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 30px;
}

.producto-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.producto-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.producto-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.producto-hero p {
  font-size: 1.2rem;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.prev {
  left: 5px;
}

.next {
  right: 5px;
}

/* --- Servicios --- */
.services-highlight {
  padding: 60px 20px;
  background-color: var(--color-light);
  text-align: center;
}

.services-highlight h2 {
  font-size: 2rem;
  color: var(--color-alt);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.services-highlight h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
}

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

.service-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-card i {
  font-size: 2.5rem;
  color: var(--color-alt);
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* --- CTA --- */
.cta-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/products/banner.webp") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
  margin-top: 50px;
  border-radius: 10px;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #ddd;
}

.cta-banner .btn {
  background-color: var(--color-accent);
  color: var(--color-dark);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-banner .btn:hover {
  background-color: #1fc8db;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 50px 20px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }
}

/* --- Banner de página --- */
.page-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/products/banner.webp") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 50px;
  border-radius: 8px;
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-banner p {
  font-size: 1.2rem;
  color: #ddd;
}

/* --- Servicios --- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 20px;
}

.service-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-size: 1.4rem;
  color: var(--color-alt);
  margin-bottom: 15px;
  position: relative;
}

.service-card h3::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .page-banner h1 {
    font-size: 2rem;
  }

  .services {
    padding: 40px 20px;
  }
}

/* --- Sección Sobre Nosotros --- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 60px auto;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #444;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
}

/* --- Valores --- */
.values-section {
  margin: 80px auto;
  text-align: center;
}

.values-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--color-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.value-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card i {
  font-size: 2.5rem;
  color: var(--color-alt);
  margin-bottom: 15px;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.value-card p {
  font-size: 0.95rem;
  color: #555;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.15);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image img {
    max-width: 90%;
    margin: 20px auto;
  }
}

/* Botón de WhatsApp */
.btn-whatsapp {
  background: #25d366 !important;
  color: white !important;
  border-color: #25d366 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #128c7e !important;
  border-color: #128c7e !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  color: white !important;
}

.btn-whatsapp i {
  font-size: 1.1rem;
}


.title-banner {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: #f5f5f5;
  /* color de fondo opcional */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.title-banner h1 {
  font-size: 2.5rem;
  /* tamaño grande */
  color: var(--color-primary);
  /* tu color principal */
  font-weight: 700;
  line-height: 1.2;
}