* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  /* BORRA el background-color original */
  color: #333;
  line-height: 1.6;

  /* 1. Capa de Superposición (Overlay): ajusta la transparencia (0.7) si lo deseas */
  background: linear-gradient(
    
    rgba(248, 217, 244, 0.747), 
    rgba(248, 243, 248, 0.7)
  ),
  /* 2. URL de la Imagen: ¡REEMPLAZA ESTA RUTA! */
  url('imagenes/imagen4.jpg'); 
  
  /* Estilos para asegurar que la imagen se vea bien */
  background-attachment: fixed; /* Mantiene la imagen fija al hacer scroll */
  background-size: cover;       /* Asegura que la imagen cubra todo el fondo */
}


a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  /* Altura de referencia para el cálculo del margin del hero */
  height: 105px; 
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.05);
}

header .menu a {
  margin: 0 15px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #333;
  transition: color 0.3s ease;
}

header .menu a:hover, header .menu a.activo {
  color: #e91e63;
}

header .carrito button {
  background: #e91e63;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

header .carrito button:hover {
  background: #c2185b;
  transform: translateY(-2px);
}

/* Hero Carousel */
.hero {
  /* Margin superior para compensar el header fijo */
  margin-top: 30px; 
  /* Altura del carrusel definida: ¡CRÍTICO! */
  height: 90vh; 
  position: relative;
  overflow: hidden;
  background: #fff5f7;
}

.carousel {
  width: 100%; 
  /* La altura debe ser 100% de .hero (80vh) */
  height: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  /* El track debe ocupar el 100% de la altura del carrusel */
  height: 100%; 
}

.carousel-track img {
  /* El ancho se asigna ahora por JavaScript */
  /* El alto debe ser 100% de la pista */
  height: 100%;
  /* CRÍTICO: cover asegura que la imagen cubra el espacio sin distorsionarse */
  object-fit: cover; 
  /* Evita que las imágenes se encojan en el flex container */
  flex-shrink: 0; 
  filter: brightness(0.8);
  transition: transform 0.5s ease-in-out;
}

.carousel-track img {
  /* width: 100% asegura que la imagen ocupe el ancho de la diapositiva */
  width: 100%; 
  /* height: 100% asegura que ocupe toda la altura disponible */
  height: 100%;
  /* CRÍTICO: cover asegura que la imagen cubra el espacio sin distorsionarse */
  object-fit: cover; 
  flex-shrink: 0;
  filter: brightness(0.8);
  transition: transform 0.5s ease-in-out;
}
/* ... El resto de tu CSS se mantiene igual ... */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-indicators .indicator.active {
  background: #e91e63;
  transform: scale(1.2);
}


/* Sections */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h3 {
  text-align: center;
  font-size: 32px;
  color: #e91e63;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.about:hover {
  transform: translateY(-5px);
}

.about img {
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about h3 {
  font-size: 26px;
  color: #e91e63;
  margin-bottom: 20px;
}

.about p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* Products */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.card img {
  height: 220px;
  object-fit: cover;
}

.card h4 {
  font-size: 22px;
  margin: 15px 0;
  font-weight: 600;
  color: #333;
}

.card p {
  color: #666;
  font-size: 14px;
}

.price {
  margin: 10px 0;
  font-weight: bold;
  color: #e91e63;
  font-size: 18px;
}

.btn-add {
  background: #e91e63;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-add:hover {
  background: #c2185b;
  transform: translateY(-2px);
}

/* Gallery */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.galeria-grid img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background: #e91e63;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
}

footer a {
  margin: 0 15px;
  font-size: 20px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffeb3b;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  padding: 15px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: scale(1.1);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.modal h3 {
  font-size: 22px;
  color: #e91e63;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.modal button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.btn-close {
  background: #888;
  color: #fff;
}

.btn-close:hover {
  background: #666;
  transform: translateY(-2px);
}

/* Product Modal */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.product-tab {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.product-name {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.product-price {
  font-size: 1.2em;
  color: #e91e63;
  margin-bottom: 20px;
}

.quantity-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-selector button {
  background: #f3c623;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background 0.3s ease;
}

.quantity-selector button:hover {
  background: #f9d342;
}

.actions button {
  margin-top: 10px;
  padding: 12px;
  font-weight: 600;
}

.add-to-cart {
  background: #ff9f43;
  color: #fff;
}

.add-to-cart:hover {
  background: #ffa94d;
  transform: translateY(-2px);
}

.whatsapp-order {
  background: #25d366;
  color: #fff;
}

.whatsapp-order:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 1.6em;
  color: #333;
}

/* Checkout Modal */
#checkout-modal .modal-content {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

#checkout-form {
  margin-bottom: 20px;
}

#checkout-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
  color: #333;
}

#checkout-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

/* Proforma */
.proforma-header, .proforma-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.proforma-header th, .proforma-header td,
.proforma-details th, .proforma-details td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.proforma-header th, .proforma-details th {
  background: #f8f9fa;
  font-weight: 600;
}

.proforma-details tfoot td {
  font-weight: 600;
}

.btn-remove {
  background: none;
  border: none;
  color: #e91e63;
  font-size: 14px;
  cursor: pointer;
}

.btn-remove:hover {
  color: #c2185b;
}

/* About Section */
.header-section {
  text-align: center;
  margin-bottom: 60px;
}

.main-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.highlight-text {
  color: #e91e63;
}

.title-underline {
  width: 120px;
  height: 4px;
  background-color: #e91e63;
  margin: 0 auto 20px;
}

.subtitle-text {
  font-size: 18px;
  color: #666;
  font-weight: 400;
}

.cards-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.info-card {
  background: #fff;
  border-left: 5px solid #e91e63;
  border-radius: 12px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.15);
}

.icon-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: #e91e63;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.icon-circle::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border: 3px solid #e91e63;
  border-radius: 50%;
  opacity: 0.3;
}

.target-icon, .eye-icon {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-radius: 50%;
  position: relative;
}

.target-icon::after, .eye-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-heading {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.card-description {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  header .menu {
    margin-left: 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  /* Ajuste responsivo del margin-top para que el hero no se superponga */
  .hero {
    margin-top: 200px; 
    height: 60vh;
  }

  .carousel-track img {
    height: 60vh;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .cards-wrapper {
    grid-template-columns: 1fr;
  }

  .main-title {
    font-size: 36px;
  }

  .info-card {
    padding: 30px;
  }

  .modal-content {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .carousel-prev, .carousel-next {
    padding: 10px;
    font-size: 16px;
  }

  .carousel-indicators .indicator {
    width: 10px;
    height: 10px;
  }

  .card {
    padding: 15px;
  }

  .card img {
    height: 180px;
  }
}

.hero-productos {
    /* Mantiene el margen superior para evitar que el header fijo lo tape */
    margin-top: 105px; 
    /* Fondo con el color de la marca o un color neutro */
    background: #e91e63; /* Color de tu marca (rosa/magenta) */
    color: #fff;
    padding: 13% 20px;
    text-align: center;
    /* Efecto de degradado sutil si deseas un toque más moderno */
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); 
    /* Sombra sutil para que el banner destaque */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); 
    border-radius: 0; /* Sin bordes redondeados para que ocupe todo el ancho */
    max-width: none; /* Asegura que ocupe todo el ancho de la ventana */
}

.hero-productos .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-productos h2 {
    font-size: 3.2em; /* Título grande */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff; /* Título blanco */
    /* Pequeña sombra de texto para que resalte */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); 
}

.hero-productos p {
    font-size: 1.3em; /* Subtítulo legible */
    font-weight: 300;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9); /* Subtítulo blanco semi-transparente */
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .hero-productos {
        padding: 40px 20px;
    }
    
    .hero-productos h2 {
        font-size: 2em;
    }
    
    .hero-productos p {
        font-size: 1em;
    }
}



/* NUEVA SECCIÓN: Videos Institucionales (adaptado de zpinfosac.com) */
#videos-institucionales {
  padding: 80px 20px;
  background: #fff5f7; /* Fondo rosa claro, como tu tema */
  text-align: center;
}

#videos-institucionales .subtitle-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.video-container iframe {
  width: 100%;
  height: 200px; /* Ajustado para responsive */
}

.video-info h4 {
  font-size: 20px;
  color: #e91e63;
  margin-bottom: 10px;
}

.video-info p {
  color: #555;
  font-size: 14px;
}

/* NUEVA SECCIÓN: Información de Contacto con Mapa (adaptado de zpinfosac.com) */
#contacto-info {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

#contacto-info .subtitle-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.contacto-info li {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.contacto-info i {
  color: #e91e63;
  width: 20px;
}

.contacto-info p {
  color: #555;
  font-size: 16px;
}

.mapa-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .video-container iframe {
    height: 250px; /* Mayor altura en móvil */
  }
}

.btn-details {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 8px;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-details:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

.detail-tab {
  max-width: 500px;
  text-align: center;
}

.detail-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.detail-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 15px 0;
  padding: 0 10px;
}

.btn-close {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: bold;
  width: 100%;
}

.btn-close:hover {
  background: #c82333;
}

.proforma {
  max-width: 500px;
  width: 90%;
}

.proforma-header, .proforma-details {
  width: 100%;
  margin: 10px 0;
  font-size: 14px;
}

.proforma-header th, .proforma-header td {
  padding: 5px;
  text-align: left;
}

#checkout-form input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

#checkout-form label {
  font-weight: bold;
  margin-top: 10px;
  display: block;
}