/* ========== RESET Y ESTILOS GENERALES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* ========== ENCABEZADO ========== */
header {
  background-color: #1f1e1e;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: #ffffff;
}

/* ========== BARRA DE NAVEGACIÓN ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  gap: 40px;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.navbar a i {
  font-size: 1.1rem;
  color: #555;
}

.navbar a:hover i {
  color: #d4af37;
}

/* ========== BANNER CON VIDEO ========== */
.banner {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 25px;
  border-radius: 10px;
}

.banner-content h2 {
  font-size: 2rem;
  color: #fff;
  font-family: 'Playfair Display', serif;
}

/* ========== GALERÍA DE PRODUCTOS INDEX ========== */
.galeria {
  padding: 50px 5%;
}

.galeria h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  color: #222;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.producto {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

section[id] h2 {
  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.info {
  padding: 15px 10px;
}

.nombre {
  font-size: 1rem;
  margin-bottom: 6px;
}

.precio {
  font-size: 1rem;
  color: #e67300;
  font-weight: bold;
  margin-bottom: 8px;
}

.carrito-btn {
  background-color: #e67300; /* Color naranja */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 25px; /* Bordes más redondeados */
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.carrito-btn:hover {
  background-color: #cc5200; /* Naranja más oscuro al hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 128, 1, 0.3);
}

/* ========== BOTÓN VER MÁS ========== */
.ver-mas-contenedor {
  text-align: center;
  margin-top: 30px;
}

.ver-mas-boton {
  padding: 10px 24px;
  background: #d4af37;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: transform 0.3s ease;
}

.ver-mas-boton:hover {
  transform: scale(1.05);
}

/* ========== PIE DE PÁGINA MEJORADO ========== */
.footer {
  background: linear-gradient(135deg, #2c3e50, #1a2530);
  color: #ecf0f1;
  padding: 50px 0 20px;
  margin-top: 50px;
}

.footer-contenido {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columna {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-5px);
}

.footer-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #d4af37;
  margin: 0;
}

.footer-columna p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #bdc3c7;
}

.footer-columna h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4af37;
  color: #d4af37;
}

.footer-columna h4 {
  font-size: 1rem;
  margin: 20px 0 10px;
  color: #d4af37;
}

.footer-enlaces {
  list-style: none;
  margin-bottom: 25px;
}

.footer-enlaces li {
  margin-bottom: 10px;
}

.footer-enlaces a {
  color: #ecf0f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-enlaces a:hover {
  color: #d4af37;
  transform: translateX(5px);
}

.iconos-redes {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.iconos-redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ecf0f1;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.iconos-redes a:hover {
  background-color: #d4af37;
  color: #2c3e50;
  transform: translateY(-5px);
}

.iconos-pagos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.iconos-pagos i {
  font-size: 1.8rem;
  color: #ecf0f1;
  transition: all 0.3s ease;
}

.iconos-pagos i:hover {
  color: #d4af37;
  transform: scale(1.1);
}

.footer-contacto p,
.footer-seguridad p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-suscripcion {
  margin-top: 20px;
}

.suscripcion-form {
  display: flex;
  margin-top: 10px;
}

.suscripcion-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.suscripcion-form button {
  background: #d4af37;
  color: #2c3e50;
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.suscripcion-form button:hover {
  background: #bf9b2e;
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #3a506b;
  font-size: 0.9rem;
  color: #bdc3c7;
  grid-column: 1 / -1;
}

.footer-copy p {
  margin-bottom: 8px;
}

.footer-copy i {
  color: #e74c3c;
}

/* ========== ESTILOS ESPECÍFICOS PARA CARRITO ========== */
.carrito-contenedor {
  max-width: 900px;
  margin: 30px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.carrito-contenedor h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
}

.carrito-contenedor ul {
  list-style-type: none;
  margin-bottom: 25px;
}

.carrito-contenedor li {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid #d4af37;
}

.carrito-contenedor button {
  margin-top: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

#botones-compra {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

#botones-compra button {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#vaciar-carrito {
  background-color: #e74c3c;
  color: white;
}

#finalizar-compra {
  background-color: #27ae60;
  color: white;
}

#botones-compra button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#mensaje-exito {
  text-align: center;
  background-color: #d4edda;
  padding: 20px;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  margin-top: 20px;
}



/* ========== RESPONSIVO MEJORADO ========== */
@media (max-width: 1024px) {
  /* En tablets, mostrar 3 elementos del carrusel */
  .carrusel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  /* En móviles grandes, mostrar 2 elementos del carrusel (como solicitaste) */
  .carrusel-item {
    flex: 0 0 calc(50% - 20px);
    min-width: calc(50% - 20px);
  }
  
  .carrusel-item img {
    height: 180px; /* Ajuste de altura para móviles */
  }
}

@media (max-width: 480px) {
  /* En móviles pequeños, mostrar 1 elemento del carrusel */
  .carrusel-item {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
  }
  
  .carrusel-item img {
    height: 160px; /* Ajuste de altura para móviles pequeños */
  }
  
  .carrusel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Botón para agregar productos al carrito */
.carrito-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  margin-top: 8px;
}

.carrito-btn:hover {
  background-color: #555;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 1024px) {
  .footer-contenido {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  /* En tablets, mostrar 3 elementos del carrusel */
  .carrusel-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .footer-contenido {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-logo {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
  
  .footer-columna {
    text-align: center;
  }
  
  .iconos-redes, .iconos-pagos {
    justify-content: center;
  }
  
  .footer-contacto p {
    justify-content: center;
  }
  
  .suscripcion-form {
    flex-direction: column;
  }
  
  .suscripcion-form input,
  .suscripcion-form button {
    border-radius: 4px;
    margin-bottom: 5px;
  }
  
  /* En móviles grandes, mostrar 2 elementos del carrusel */
  .carrusel-item {
    flex: 0 0 calc(50% - 20px);
    min-width: calc(50% - 20px);
  }
  
  .carrito-contenedor {
    padding: 20px;
    margin: 20px;
  }
  
  #botones-compra {
    flex-direction: column;
  }
  
  .carrusel-contenedor {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  /* En móviles pequeños, mostrar 1 elemento del carrusel */
  .carrusel-item {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
  }
  
  .navbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .carrusel-contenedor {
    padding: 0 10px;
  }
}