/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
}

/* Cabecera */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 60px;
  vertical-align: middle;
}

.nombre-empresa {
  font-size: 1.2em;
  font-weight: bold;
  color: #0A0F3C;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #0A0F3C; /* Azul oscuro del logo */
  font-weight: bold;
}

.bienvenida {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.contenido-bienvenida {
  max-width: 800px;
  margin: 0 auto;
}

.bienvenida h2 {
  color: #0A0F3C;
  margin-bottom: 20px;
  font-size: 2em;
}

.bienvenida p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #666;
}

.acciones {
  display: flex;
  gap: 15px; /* Ajustado de 20px a 15px para el nuevo menú */
  align-items: center;
  position: relative; /* Necesario para que el menú se posicione correctamente */
}

.banner {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('banner.jpg');
  background-size: cover;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.banner h2 {
  font-size: 2.5em;
}

.banner p {
  font-size: 1.2em;
  margin-top: 10px;
}

.productos {
  padding: 50px;
}

.productos h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

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

.producto {
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
}

.contenedor-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
}

.contenedor-categorias:after {
  content: "";
  flex: auto;
}

.precio {
  font-size: 1.2em;
  font-weight: bold;
  color: #0A0F3C; /* Cambiado de #007BFF a tu color principal */
  margin: 10px 0;
}

.btn-comprar {
  background-color: #0A0F3C; /* Azul oscuro del logo */
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 20px; /* Reducido de 20px a 15px */
}

.carrusel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 400px;
}

.banner-item {
  display: none;
  position: relative;
}

.banner-item.activo {
  display: block;
}

.banner-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.banner-texto {
  position: absolute;
  top: 50%;
  left: 50px;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  z-index: 2;
}

.banner-texto h2 {
  font-size: 2em;
}

.banner-texto p {
  font-size: 1.2em;
}

.indicadores {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
}

.indicador {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  margin: 0 5px;
  cursor: pointer;
}

.indicador.activo {
  background-color: white;
}
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flecha-izquierda {
  left: 20px;
}

.flecha-derecha {
  right: 20px;
}

.flecha:hover {
  background-color: rgba(0,0,0,0.8);
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.contenido-modal {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.btn-pago {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  background-color: #0A0F3C;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cerrar {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ccc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.categorias {
  padding: 50px;
}

.categorias h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

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

.categoria {
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.categoria img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.categoria h3 {
  margin: 15px 0;
  font-size: 1.3em;
}

.categoria p {
  margin-bottom: 15px;
  color: #666;
}

.btn-categoria {
  background-color: #0A0F3C;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
}

.menu-desplegable {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  list-style: none;
  padding: 10px 0;
  border-radius: 4px;
}

.menu-desplegable:hover .submenu {
  display: block;
}

.submenu li {
  margin: 5px 0;
}

.submenu a {
  color: #0A0F3C;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
}

.submenu a:hover {
  background-color: #f1f1f1;
}

.carrito {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow-y: auto;
}

.contenido-carrito {
  padding: 20px;
}

.lista-carrito {
  margin: 20px 0;
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.item-carrito button {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.total-carrito {
  padding: 15px 0;
  border-top: 2px solid #0A0F3C;
  margin-top: 10px;
}

.btn-pagar {
  background-color: #0A0F3C;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 10px;
}

.btn-cerrar-carrito {
  background-color: #ccc;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
}

.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366; /* Verde de WhatsApp */
  border-radius: 50px;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 15px 25px;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  height: 50px;
}

.btn-whatsapp img {
  width: 24px;
  height: 24px;
}

.redes-sociales {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.redes-sociales a {
  color: white; /* Texto blanco para que se vea bien en fondo negro */
  text-decoration: none;
  font-weight: bold;
}

.redes-sociales a:hover {
  text-decoration: underline;
}

.comentarios {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.comentarios h2 {
  margin-bottom: 30px;
  color: #0A0F3C;
}

.contenedor-comentarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.comentario {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.estrellas {
  color: #ffc107;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.comentario p {
  margin: 10px 0;
  color: #666;
}

.comentario strong {
  color: #0A0F3C;
}

.redes-sociales a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

.icono-red {
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
}

.nombre-red {
  font-size: 0.9em;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  /* Ajustes para tabletas */
  .contenedor-categorias {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .carrusel {
    height: 250px;
  }

  .banner-texto {
    left: 20px;
  }

  .banner-texto h2 {
    font-size: 1.5em;
  }

  .banner-texto p {
    font-size: 1em;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-desplegable {
    position: static;
  }

  .submenu {
    position: static;
    width: 100%;
    margin-top: 5px;
  }

  .btn-whatsapp {
    padding: 10px 15px;
    font-size: 0.8em;
    height: 40px;
  }

  .btn-whatsapp img {
    width: 20px;
    height: 20px;
  }
}

@media screen and (max-width: 480px) {
  /* Ajustes para móviles */
  .contenedor-categorias {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .carrusel {
    height: 200px;
  }

  .banner-texto {
    left: 10px;
    right: 10px;
  }

  .banner-texto h2 {
    font-size: 1.2em;
  }

  .banner-texto p {
    font-size: 0.9em;
  }

  header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  nav {
    order: 3;
    width: 100%;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .acciones {
    order: 2;
  }

  .logo {
    order: 1;
  }

  .productos {
    padding: 20px;
  }

  .contenedor-productos {
    grid-template-columns: 1fr;
  }

  .btn-whatsapp {
    width: 140px;
    padding: 8px 12px;
    font-size: 0.7em;
    height: 35px;
    border-radius: 25px;
  }

  .btn-whatsapp img {
    width: 18px;
    height: 18px;
  }
}
.titulo-categoria {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.titulo-categoria h1 {
  color: #0A0F3C;
  font-size: 2.5em;
  margin: 0;
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 10px;
}

.contenedor-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.producto {
  border: 1px solid #ddd;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-detalle {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.contenido-detalle {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.contenido-detalle img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cerrar-detalle {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
}
.breadcrumb-container {
  padding: 15px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 5px; /* Agregamos este espacio */
}

.breadcrumb-container .page-title {
  margin-top: 0px !important;
  font-size: 2.5em;
  font-weight: bold;
  color: #0A0F3C;
  text-align: center;
}

.page-title {
  margin-top: 5px; /* Reducido de 10px a 5px */
  font-size: 2.5em;
  font-weight: bold;
  color: #0A0F3C;
  text-align: center;
}

.detalle-contenido {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.imagen-detalle {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
}

.caracteristicas-detalle {
  list-style: none;
  padding: 0;
}

.caracteristica-item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
}

.caracteristica-item:last-child {
  border-bottom: none;
}

.descripcion-detalle {
  line-height: 1.6;
  color: #555;
}

.precio-detalle {
  font-size: 1.4em;
  font-weight: bold;
  color: #0A0F3C;
}

.contenido-detalle h4 {
  margin: 15px 0 10px 0;
  color: #0A0F3C;
  border-bottom: 2px solid #0A0F3C;
  padding-bottom: 5px;
}

#modal-notificacion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-notificacion-contenido {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.opciones-carrito {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-pagar-modal, .btn-seguir-modal {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-pagar-modal {
  background-color: #0A0F3C;
  color: white;
}

.btn-seguir-modal {
  background-color: #6c757d;
  color: white;
}

#mensaje-confirmacion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mensaje-confirmacion-contenido {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.opciones-mensaje {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-seguir, .btn-pagar {
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  width: 140px; /* Mismo ancho para ambos botones */
  text-align: center;
}

.btn-seguir {
  background-color: #0A0F3C; /* Mismo color que el botón de pagar */
  color: white;
}

.btn-pagar {
  background-color: #0A0F3C;
  color: white;
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.item-carrito:last-child {
  border-bottom: none;
}

.nombre-producto {
  flex: 1;
  margin-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.precio-producto {
  font-weight: bold;
  color: #0A0F3C;
  margin-right: 20px;
}

.btn-eliminar {
  background-color: #ff4444;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.btn-eliminar:hover {
  background-color: #e63946;
}

.anuncio-aniversario {
  background: linear-gradient(270deg, #0A0F3C, #1a237e, #283593, #0A0F3C);
  background-size: 800% 800%;
  animation: gradiente-aniversario 8s ease infinite;
  color: white;
  text-align: center;
  padding: 15px 20px;
  margin-bottom: 0;
}

@keyframes gradiente-aniversario {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.contenido-anuncio h2 {
  margin: 0;
  font-size: 1.0em; /* Reducido de 1.2em a 1.0em */
  font-weight: bold;
}

.comentarios {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.comentarios h2 {
  margin-bottom: 30px;
  color: #0A0F3C;
}

.contenedor-carrusel-comentarios {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.grupo-comentarios {
  display: none;
  flex: 0 0 100%;
}

.grupo-comentarios.activo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.comentario {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: left;
  width: 300px;
  min-height: 150px;
}

.estrellas {
  color: #ffc107;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.comentario p {
  margin: 10px 0;
  color: #666;
  font-style: italic;
}

.comentario strong {
  color: #0A0F3C;
  display: block;
  margin-top: 10px;
}

.controles-carrusel-comentarios {
  margin: 20px 0;
}

.flecha-comentarios {
  background-color: #0A0F3C;
  color: white;
  border: none;
  font-size: 1.2em;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 5px;
}

.flecha-comentarios:hover {
  background-color: #080B2A;
}

.indicadores-comentarios {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.indicador-comentarios {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}

.indicador-comentarios.activo {
  background-color: #0A0F3C;
}

/* ESTILO ESPECÍFICO PARA EL NUEVO MENÚ DE OPCIONES */
/* Checkbox Hack para el menú de opciones */
.menu-toggle {
  display: none; /* Ocultamos el checkbox */
}

.icono-menu {
  cursor: pointer;
  font-size: 1.2em;
  color: #0A0F3C;
}

.icono-menu:hover {
  color: #080B2A;
}

.menu-opciones {
  position: absolute;
  background-color: white;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  list-style: none;
  padding: 10px 0;
  border-radius: 4px;
  right: 0;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Mostrar menú cuando el checkbox está marcado */
.menu-toggle:checked ~ .menu-opciones {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-opciones li {
  margin: 5px 0;
}

.menu-opciones a {
  color: #0A0F3C;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
}

.menu-opciones a:hover {
  background-color: #f1f1f1;
}

.acciones a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.icono-whatsapp img {
  width: 24px;
  height: 24px;
}

.icono-whatsapp:hover img {
  opacity: 0.8;
}




