body {
  background-color: #fff7e0; /* Color fondo de la pag */
  font-family: Arial, sans-serif; /* Fuente estándar */
  margin: 0;
  padding: 0;
}

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



/* ===============================
   🔹 HEADER ESCRITORIO
=============================== */
.header-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c80036;
  padding: 20px 90px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.header-desktop .header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-desktop .header-right img {
  height: 55px;
}

/* 🔹 Barra de búsqueda */
.header-desktop .search-bar {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  flex-grow: 1;
  max-width: 300px;
}

.header-desktop .search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  width: 100%;
  color: #1d1d1b;
}

.header-desktop .search-bar input::placeholder {
  color: #aaa;
}

.header-desktop .search-icon {
  font-size: 20px;
  color: #1d1d1b;
  margin-right: 8px;
}

/* 🔹 Carrito */
.header-desktop .cart {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 16px;
}

.header-desktop .cart-icon {
  color: #1d1d1b;
  margin-right: 8px;
  font-size: 22px;
}

/* 🔹 Espacio para que el contenido no se oculte detrás */
body {
  padding-top: 120px; /* Altura aproximada del header */
}



/* ===============================
   🔹 HEADER MÓVIL (ya funcional)
=============================== */
.header-mobile {
  display: none; /* oculto por defecto */
}

/* ===============================
   🔹 RESPONSIVE (TABLET Y MÓVIL)
=============================== */
@media (max-width: 850px) {

  /* Oculta header escritorio y muestra móvil */
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #c80036;
    padding: 15px 20px;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }

  /* Parte superior (logo + carrito) */
  .header-mobile .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-mobile .logo img {
    height: 45px;
    margin-top: 5px;
  }

  /* Carrito móvil */
  .header-mobile .cart {
    background-color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
  }

  .header-mobile .cart-icon {
    font-size: 22px;
    color: #1d1d1b;
    margin-right: 6px;
  }

  .header-mobile .cart span {
    font-size: 15px;
    color: #1d1d1b;
  }

  /* Buscador debajo del logo (versión igual al de escritorio) */
.header-mobile .search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  max-width: 320px;
  background-color: #fff;
  border-radius: 30px;
  padding: 10px 15px;
  margin-top: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.header-mobile .search-bar:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-mobile .search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  width: 100%;
  color: #1d1d1b;
}

.header-mobile .search-bar input::placeholder {
  color: #aaa;
}

.header-mobile .search-icon {
  font-size: 20px;
  color: #1d1d1b;
  margin-right: 8px;
}

  /* Ajuste del body por header móvil */
  body {
    padding-top: 180px; /* Header móvil más alto */
  }
}


/* =========================
   MENÚ PRINCIPAL FLOTANTE
========================= */
nav.menu {
  position: fixed;
  top: 98px; /* justo debajo del header */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1d1d1b;
  padding: 15px 150px;
  box-sizing: border-box;
  min-height: 60px;
  z-index: 1001; /* por encima del header */
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Contenedor interno */
.menu-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Lados del menú */
.menu-left, .menu-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Botones del menú */
.menu-left button,
.menu-right button {
  background-color: #1d1d1b;
  color: #fff;
  border: none;
  padding: 6px 18px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: color 0.4s ease;
}

.menu-left button:hover,
.menu-right button:hover {
  color: #ffc100;
}

/* ✅ Ajuste del body para no ocultar el contenido */
body {
  padding-top: 180px; /* altura combinada del header + menú */
}

/* =========================
   MENÚ RESPONSIVE
========================= */
@media (max-width: 850px) {
  nav.menu {
    top: 180px; /* Debajo del header móvil */
    flex-direction: column;
    padding: 10px 20px;
  }

  body {
    padding-top: 240px; /* Altura compensada */
  }

  .menu-left,
  .menu-right {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  nav.menu {
    top: 150px;
  }

  body {
    padding-top: 220px;
  }
}

  /* imagen bienvenida */
  .bienvenida {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 90px; 
}

.imagen-bienvenida {
  width: 1400px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 1.5s ease; /* Aquí debe estar la transición */
}

.imagen-bienvenida:hover {
  transform: scale(1.02);
}

/* botones de la categorias  #A8D0E6 */
.categorias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 40px;
  column-gap: 30px;
  justify-content: center;
  margin: 90px auto;
  max-width: 85%;
}

.categoria-btn {
  height: 160px;
  padding: 20px 20px 20px 50px; /* Aumentamos el padding izquierdo a 30px */
  background-color: #ffffff;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 30px;
}

.texto-categoria {
  font-size: 22px; /* Ajusta este valor según lo grande que quieras el texto */
  font-weight: 600; /* Opcional: para que el texto se vea más fuerte */
}

.icono-categoria {
  width: 60px;
  height: 60px;
  flex-shrink: 0; /* Evita que la imagen se reduzca si el texto es largo */
}

.categoria-btn:hover {
  background-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.categoria-btn i {
  display: none;
}



/* carrusel */
.carrusel {
  position: relative;
  width: 80%; /* 1200px Ancho del carrusel */
  height: 550px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 8px;
}

.carrusel-contenedor {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 8px;
}
.slide video {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carrusel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}



/* imagen de oferta */
.oferta {
  width: 100%;
}

.imagen-oferta {
  width: 100%; /* Mantiene el ancho completo */
  object-fit: cover; /* Asegura que la imagen se recorte manteniendo proporciones */
}


/* footer */
.pie-de-pagina {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1d1d1b; /* fondo */
  color: white; /* letras */
  width: 100%;
}

/* redes a la izquierda */
.informacion, .redes-sociales {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* logo en el centro */
.centro {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  width: 120px;
  margin-bottom: 5px;
}

.informacion-empresa {
  margin-top: 5px;
  font-size: 14px;
  color: #aaa;
}

p {
  margin: 0; 
}

/* 🔹 Redes sociales ahora con enlaces completos */
.redes-sociales a {
  display: block;
  margin: 2px 0;
  color: #fff7e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.redes-sociales a:hover {
  color: #ffcc66;
}

/* segundo footer */
/* Línea de separación */
.linea-separadora {
  border: 0;
  border-top: 1px solid #fff;
  margin: 0;
}

/* Pie de página final */
.footer-final {
  background-color: #1d1d1b; /* fondo */
  padding: 5px 40px;
  color: white; /* letras */
}

/* Añadir distancia entre la línea de separación y los contenidos */
.footer-contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px; /* separacion de la linea */
}

/* copyright */
.copyright p {
  margin: 0;
  font-size: 14px;
}


/* imagenes de pagos */
.footer-payment-methods i {
  font-size: 20px;
  margin-right: 15px;
  color: white;
}
.footer-payment-methods i:hover {
  color: #ffcc66;
}

.pagina {
  position: relative;
  min-height: 100vh;
}

.boton-flotante-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 80px;
  height: 80px;
  z-index: 999;
  transition: transform 0.4s ease, bottom 0.01s ease;
}

.boton-flotante-whatsapp:hover {
  transform: scale(1.25);
}

.boton-flotante-whatsapp img {
  width: 100%;
  height: auto;
}


.alerta-busqueda {
  background-color: #fff3cd;
  color: #856404;
  padding: 12px;
  margin: 10px auto;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  max-width: 600px;
  text-align: center;
  font-size: 1rem;
}




#notificacion-busqueda {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  width: auto;
  max-height: 100px;
  height: auto;
  background: linear-gradient(145deg, #dedede, #d6d6d6);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  line-height: 1.3;
  font-weight: 500;
  font-size: 15px;
  color: #333;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  word-wrap: break-word;
  white-space: normal;
  text-align: center;
}

/* Icono decorativo */
#notificacion-busqueda::before {
  content: "🔍";
  font-size: 18px;
  flex-shrink: 0;
}

.notificacion-activa {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.notificacion-oculta {
  opacity: 0 !important;
  transform: translate(-50%, -60%) scale(0.95) !important;
}






/* 📱 Estilos Responsive */

/* --- Tablets (pantallas menores a 992px) --- */
@media (max-width: 992px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 30px;
  }

  .header img {
    height: 45px;
    margin-bottom: 10px;
  }

  .search-bar {
    max-width: 100%;
    margin: 10px 0;
  }


  .categorias {
    grid-template-columns: repeat(2, 1fr);
    max-width: 75%;
  }

  .imagen-bienvenida {
    width: 90%;
    height: 130px;
  }

  .carrusel {
    width: 80%;
    height: 250px;
  }

  .slide img,
  .slide video {
    height: 250px;
  }

  .pie-de-pagina {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-contenido {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .boton-flotante-whatsapp {
    width: 65px;
    height: 65px;
  }
}

/* ===============================
   ENCABEZADO (MÓVIL)
=================================*/
@media (max-width: 600px) {

  /* Cabecera general */
  .header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 20px;
    background-color: #c80036;
    gap: 10px;
  }

  /* Logo + carrito en la parte superior */
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-top img {
    margin-top: 10px;
    height: 45px;
  }

  /* Carrito móvil */
  .cart {
    background-color: #fff;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
  }

  .cart-icon {
    font-size: 22px;
    color: #1d1d1b;
    margin-right: 6px;
  }

  .cart span {
    font-size: 15px;
    color: #1d1d1b;
  }

  /* Buscador debajo del logo */
  .search-bar {
    width: 100%;
    max-width: 95%;
    background-color: #fff;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .search-bar input {
    font-size: 15px;
    padding: 5px;
    width: 100%;
  }

  .search-icon {
    font-size: 18px;
    color: #1d1d1b;
  }

  
  /* Ajustes del resto del contenido (si los tienes) */
  .categorias {
    grid-template-columns: 1fr;
    row-gap: 20px;
    margin: 40px;
  }

  .categoria-btn {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
  }

  .icono-categoria {
    width: 50px;
    height: 50px;
  }

  .carrusel {
    width: 90%;
    height: 140px;
  }

  .slide img,
  .slide video {
    height: 140px;
  }

  .imagen-bienvenida {
    width: 95%;
    height: 40px;
  }

  .pie-de-pagina {
    padding: 15px;
  }

  .footer-final {
    padding: 10px 20px;
  }

  .boton-flotante-whatsapp {
    width: 55px;
    height: 55px;
    right: 15px;
    bottom: 15px;
  }
}

/* =========================
   BOTÓN HAMBURGUESA
========================= */
.menu-toggle {
  display: none; /* Oculto en pantallas grandes */
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  position: absolute;
  left: 25px;
  top: 10px;
}

/* =========================
   MENÚ MÓVIL UNIFICADO
========================= */
.menu-mobile {
  display: none; /* oculto por defecto */
}

@media (max-width: 850px) {
  /* Ocultar el menú de escritorio */
  .menu-contenido {
    display: none !important;
  }

  /* Mostrar el menú móvil */
  .menu-mobile {
    display: flex;
    flex-direction: column;
    background-color: #1d1d1b;
    position: fixed;
    top: 232px;
    left: 0;
    width: 60%;
    height: calc(100vh - 70px);
    padding: 0;
    overflow-y: auto;
    z-index: 20;
    transform: translateX(-100%);
    opacity: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  /* Estado visible */
  .menu-mobile.active {
    transform: translateX(0);
    opacity: 1;
  }

  /* Botones del menú móvil */
  .menu-mobile button {
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .menu-mobile button:hover {
    background-color: #333;
    color: #ffc100;
  }

  .menu-mobile button:last-of-type {
    border-bottom: none;
  }

  /* Botón hamburguesa visible */
  .menu-toggle {
    display: block;
    position: absolute;
    left: 25px;
    top: 12px;
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30;
  }

  html, body {
    overflow-x: hidden;
  }
}

/* =========================
   CORRECCIÓN DE DESBORDES
========================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


@media (max-width: 850px) {
  nav.menu {
    top: 180px; /* Ajusta según tu header móvil */
  }

  body {
    padding-top: 200px;
  }
}

@media (max-width: 600px) {
  nav.menu {
    top: 150px;
  }

  body {
    padding-top: 180px;
  }
}