:root {
  --primary-color: #001775;
  --secondary-color: #2e6fd1;
  --accent-color: #25D366;
  --light-bg: #f4f4f4;
  --white: #fff;
  --text-color: #333;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--light-bg);
  color: var(--text-color);
  line-height: 1;
}

.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
}

.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.producto {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

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

.producto h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-container {
  position: relative;
  height: 240px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.carousel-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background: rgba(0,0,0,0.2);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.carousel-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

.producto p {
  margin: 8px 0;
}

.precio {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.talla {
  color: #666;
  font-size: 0.95rem;
}

.boton-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 2px;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 60%;
}

.boton-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.separador {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ccc, transparent);
  margin: 40px 20px 0;
}

.footer-container {
  background-color: #e8f1ff;
  color: var(--text-color);
  padding: 30px 20px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  margin-top: 40px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #a0c1ff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section p {
  margin: 8px 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-link {
  font-size: 22px;
  color: var(--secondary-color);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #c5d7f7;
  padding-top: 15px;
  margin-top: 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.modal-nav:hover {
  background: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 30px; }
.next { right: 30px; }

.image-counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* --- MEDIA QUERIES PARA RESPONSIVIDAD --- */
@media (max-width: 768px) {
  .prev { left: 15px; }
  .next { right: 15px; }
  .modal-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .header h1 {
    font-size: 1.5rem;
  }
  .header p {
    font-size: 0.9rem;
  }
  .producto h4 {
    font-size: 1rem;
    min-height: 2.5rem;
  }
  .precio {
    font-size: 1rem;
  }
  .talla {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px;
  }
  .producto {
    padding: 10px 4px;
  }
  .producto h4 {
    font-size: 0.9rem;
    min-height: 2.2rem;
  }
  .precio {
    font-size: 0.9rem;
  }
  .talla {
    font-size: 0.8rem;
  }
}

@media (min-width: 1200px) {
  .producto h4 {
    font-size: 1.2rem;
  }
  .precio {
    font-size: 1.15rem;
  }
  .talla {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
