body, html {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  scroll-behavior: smooth;
}

/* Encabezado superior */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: purple;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo-header img {
  height: 60px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

/* Sección inicio */
.inicio {
  position: relative;
  height: auto;
  text-align: center;
  color: #fff;
}

.video-fondo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.5;
}

.contenido-inicio {
  padding: 40px 20px;
  background-color: rgba(255,255,255,0.2);
  color: #4a0072;
}

.logo-inicio {
  width: 100px;
  margin: 10px 0;
}

.subtitulo {
  font-size: 24px;
  font-weight: bold;
  margin: 30px 0 10px;
  color: #4a0072;
}

.botones-catalogo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.boton {
  background-color: purple;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  width: 90%;
  max-width: 300px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: purple;
  color: white;
  padding: 20px 10px;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

@media (max-width: 600px) {
  .contact-links {
    justify-content: center;
    margin-top: 10px;
  }

  .boton {
    font-size: 14px;
  }

  .logo-header {
    text-align: center;
    width: 100%;
  }
}

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

body {
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #000;
  line-height: 1.6;
}

/* ENCABEZADO SUPERIOR */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #7b2cbf, #9d4edd);
  padding: 10px 20px;
  color: white;
}

.logo-header img {
  height: 60px;
}

.contact-links a {
  margin-left: 15px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.contact-links a:hover {
  text-decoration: underline;
}

/* TÍTULO PRINCIPAL DE LA SECCIÓN */
.titulo-seccion {
  text-align: center;
  padding: 30px 10px 10px;
  background-color: #f4f4f4;
}

.titulo-seccion h1 {
  font-size: 36px;
  color: #7b2cbf;
  font-weight: bold;
}

/* CATÁLOGO GENERAL */
.catalogo {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

/* PRODUCTO INDIVIDUAL */
.producto {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.producto:nth-child(even) {
  flex-direction: row-reverse;
}

.producto-img {
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: 8px;
}

/* DETALLES DEL PRODUCTO */
.producto-detalle {
  flex: 1;
  min-width: 260px;
}

.producto-detalle h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #000;
}

.producto-detalle p {
  font-size: 16px;
  margin-bottom: 8px;
}

.precio {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

/* BOTONES */
.botones {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.boton {
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
}

.boton.amarillo {
  background-color: #ffd60a;
  color: #000;
}

.boton.celeste {
  background-color: #90e0ef;
  color: #000;
}

.boton:hover {
  opacity: 0.85;
}

/* FOOTER CON NAVEGACIÓN */
footer {
  background-color: #7b2cbf;
  color: white;
  padding: 30px 20px 10px;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-nav ul li {
  margin: 5px 10px;
}

.footer-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.footer-nav ul li a:hover {
  text-decoration: underline;
}

/* RESPONSIVE PARA CELULAR */
@media (max-width: 768px) {
  .producto {
    flex-direction: column;
    align-items: center;
  }

  .producto:nth-child(even) {
    flex-direction: column;
  }

  .producto-img {
    width: 100%;
    max-width: 320px;
  }

  .producto-detalle {
    text-align: center;
  }

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

  .contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-links a {
    margin: 5px;
  }
}

.boton-carrito {
  background-color: #800080;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.boton-carrito:hover {
  background-color: #a020f0;
}

.carrito-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
  text-align: center;
}

.carrito-container ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.carrito-container li {
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.boton-whatsapp {
  background-color: #25d366;
  color: white;
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}


#carrito {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 260px;
  background-color: #ffffffee;
  border: 2px solid #8e44ad;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
  font-size: 14px;
}


#carrito h2 {
  margin-top: 0;
  font-size: 16px;
  color: #8e44ad;
  text-align: center;
}

#carrito-contenido {
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 10px;
  padding-right: 5px;
}

#carrito ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

#carrito li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 13px;
}

#carrito li button {
  background-color: #ff4d4d;
  border: none;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.contact-links img.icono-red {
  width: 28px;
  height: 28px;
  margin: 0 8px;
  transition: transform 0.2s ease;
}

.contact-links img.icono-red:hover {
  transform: scale(1.1);
}


#total-carrito {
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

#carrito-botones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#enviar-carrito,
#vaciar-carrito {
  padding: 8px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

#enviar-carrito {
  background-color: #8e44ad;
  color: white;
  text-decoration: none;
}

#vaciar-carrito {
  background-color: #888;
  color: white;
}

#carrito-toggle {
  font-size: 18px;
  cursor: pointer;
  position: absolute;
  top: -10px;
  right: -10px;
  background: #8e44ad;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#carrito.minimizado {
  height: auto;
  width: auto;
  overflow: hidden;
}

#carrito.minimizado #carrito-contenido,
#carrito.minimizado #carrito-botones,
#carrito.minimizado #total-carrito {
  display: none;
}

.mensaje-carrito {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50; /* verde */
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.mensaje-carrito.mostrar {
  opacity: 1;
}

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

.modal-contenido {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 350px;
  border: 2px solid #8e44ad;
}

.modal-botones {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.modal-botones button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

#cancelar-btn {
  background-color: #ccc;
  color: #333;
}

#confirmar-btn {
  background-color: #8e44ad;
  color: white;
}

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

.modal-contenido {
  background-color: white;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 0 10px #00000050;
}

.modal-botones button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

#confirmar-btn {
  background-color: #e74c3c;
  color: white;
}

#cancelar-btn {
  background-color: #8e44ad;
  color: white;
}

/
  z-index: 1000;
  background-color: #a020f0;
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  transition: background-color 0.3s;
}

.boton-catalogo-flotante,
.boton-faq-flotante {
  position: fixed;
  right: 20px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: bold;
  color: white;
  background-color: #9b00b7;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: 14px;
}

/* 📦 Ver todo el catálogo */
.boton-catalogo-flotante {
  bottom: 330px; /* Altura para quedar alineado con juegos típicos */
}

/* Preguntas frecuentes */
.boton-faq-flotante {
  bottom: 270px; /* 60px más abajo para que no queden pegados */
}

/* Ajuste en pantallas pequeñas */
@media screen and (max-width: 768px) {
  .boton-catalogo-flotante {
    bottom: 260px;
    right: 15px;
  }

  .boton-faq-flotante {
    bottom: 200px;
    right: 15px;
  }
}

.boton-catalogo-flotante,
.boton-faq-flotante {
  position: fixed;
  right: 20px;
  z-index: 999;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #9b00b7;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

/* "Ver todo el catálogo" más arriba */
.boton-catalogo-flotante {
  bottom: 220px;
}

/* "Preguntas frecuentes" más abajo */
.boton-faq-flotante {
  bottom: 160px;
}

/* Responsive para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .boton-catalogo-flotante {
    bottom: 160px;
    right: 10px;
  }

  .boton-faq-flotante {
    bottom: 100px;
    right: 10px;
  }
}



.faq-section {
  background-color: #f9f5ff;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}

.faq-title {
  text-align: center;
  font-size: 32px;
  color: #a259ff;
  margin-bottom: 30px;
  font-weight: 700;
}

.faq-item {
  background-color: white;
  border-left: 6px solid #a259ff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 16px;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
  margin-top: 0;
  color: #4a148c;
  font-size: 20px;
}

.faq-item p {
  margin: 10px 0 0;
  color: #333;
}

.consejos-section {
  background-color: #fff7fe;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
}

.consejos-title {
  text-align: center;
  font-size: 32px;
  color: #a259ff;
  margin-bottom: 30px;
  font-weight: 700;
}

.consejo-item {
  background-color: white;
  border-left: 6px solid #a259ff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 16px;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.consejo-icono {
  font-size: 28px;
  color: #a259ff;
}

.consejo-texto {
  color: #333;
}

.seccion-abono {
  background-color: #f9f9ff;
  padding: 30px;
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.seccion-abono h2 {
  color: #5a00a0;
  margin-bottom: 15px;
}

.seccion-abono ul {
  text-align: left;
  margin: 0 auto 20px;
  max-width: 600px;
}

.boton-abono {
  background-color: #6a0dad;
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.boton-abono:hover {
  background-color: #4d007a;
}

.promociones {
  padding: 30px 15px;
  background-color: #f3e8ff; /* lavanda clara */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 5px solid #9333ea;
}

.promo-card h3 {
  margin-top: 0;
  color: #7c3aed;
  font-size: 1.2rem;
}

.promo-card p {
  margin: 5px 0;
  font-size: 1rem;
  color: #333;
}

.boton-promocion {
  background-color: #25d366;
  color: white;
  font-size: 1.1rem;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.boton-promocion:hover {
  background-color: #1ebc5e;
}

.seccion-promociones {
  padding: 20px;
  background-color: #f9f0ff;
  text-align: center;
}

.titulo-seccion {
  font-size: 28px;
  color: #5e0080;
  margin-bottom: 25px;
}

.promo-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.promo-card h3 {
  margin-top: 0;
  color: #800080;
}

.valor-normal {
  text-decoration: line-through;
  color: gray;
}

.ahorro {
  color: green;
  font-weight: bold;
}

.promo-contacto {
  background-color: #eae4ff;
  padding: 15px;
  border-radius: 10px;
  margin-top: 30px;
}

.boton-promo-whatsapp {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #25d366;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.promo-cuadro {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px;
  width: 300px;
  display: inline-block;
  vertical-align: top;
}

.promo-cuadro img.promo-img {
  width: 100px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.footer-navegacion {
  background-color: #f5f5f5;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-navegacion h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #5e2d91; /* tono morado */
}

.botones-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.botones-footer a {
  text-decoration: none;
  background-color: #7a42c8;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.botones-footer a:hover {
  background-color: #5e2d91;
}

.seo-bloque.estilizado {
  background-color: #f2eaff; /* fondo suave lila */
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
  font-size: 16px;
}

.seo-bloque.estilizado h2 {
  color: #6a1b9a;
  font-size: 22px;
  margin-bottom: 12px;
}

.seo-bloque.estilizado a.boton-wsp {
  background-color: #25d366;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.seo-bloque.estilizado a.boton-wsp:hover {
  background-color: #1ebe5d;
}
