/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}



.imgHead {
    display: block;
    width: 130px;
    height: auto;
}

/* --- Búsqueda --- */
.searchContainer { 
    flex-grow: 1; 
    padding: 0 20px; 
} 
.inputHeader { 
    padding: 7px 20px;
    border: 2px solid #ccc; 
    border-radius: 4px 0 0 4px; 
    font-size: 14px; 
    position: relative; 
}

.buttonHeader:hover {
    background-color: #f0c400;
    text-decoration: none   !important;
}

.iconSearch {
    width: 16px;
    height: 16px;
    position: relative;
    top: 2px;
}

/* --- Navegación Superior --- */
.aHeader {
    margin: 0 10px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.aHeader:hover {
    color: #ffffff;
    text-decoration: underline;
}

.separadorHeader {
    background-color: transparent;
    border: none;
    font-size: 25px;
}

.aImage {
    height: 22px;
    position: relative;
    top: 5px;
    transition: transform 0.4s ease, filter 0.5s ease;
}

.aImage:hover {
    transform: scale(1.2);
    filter: brightness(1.15);
}

/* --- Nuevo estilo para el fondo de la sección de productos --- */
.fondo-completo {
    /* Usaremos un fondo gris claro/blanco como el de la imagen de referencia, 
       pero puedes usar una URL de imagen si quieres */
    background: linear-gradient(to bottom, #f0f0f0, #ffffff);
    /* o si tuvieras una imagen: */
    /* background-image: url('URL_DE_TU_IMAGEN_DE_FONDO.jpg'); */

    background-size: cover; /* Hace que la imagen cubra todo el contenedor */
    background-repeat: no-repeat;
    background-attachment: scroll; /* Cambia a 'fixed' si quieres que el fondo no se mueva al hacer scroll */
    min-height: 80vh; /* Asegura que ocupe al menos el 80% de la altura de la vista (viewport height) */
    padding: 40px 0; /* Agrega algo de relleno superior/inferior */
    width: 100%; /* Asegura que ocupe todo el ancho */
}

html, body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff; /* Fondo blanco */
}


/* --- Barra de Categorías --- */
.divCategorias {
    width: 100% !important;
    background-color: #ededed !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    font-size: 12px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.buttonCategorias {
    background-color: #f7f7f7 !important; 
    border: none !important;
    border-right: 1px solid #e0e0e0 !important; 
    cursor: pointer !important;
    text-align: center !important;
    padding: 10px 5px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-grow: 1 !important; 
    flex-shrink: 1 !important;
    flex-basis: 0 !important;
}

.buttonCategorias:last-child {
    border-right: none !important;
}

.buttonCategorias:hover {
    background-color: #e8e8e8 !important; 
}

.imgCategorias {
    width: 50px !important;
    height: 50px !important; 
    object-fit: contain !important; 
    margin-bottom: 5px !important;
    transition: transform 0.3s ease !important;
}

.pCategorias {
    font-weight: bold !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}


.productosContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.producto-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 250px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.producto-card:hover {
  transform: scale(1.05);
}

.producto-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.productosContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.producto-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  width: 200px;
  transition: transform 0.3s ease;
}

.producto-card:hover {
  transform: scale(1.05);
}

.producto-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
}

.producto-card h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}

.producto-card p {
  font-size: 13px;
  color: #666;
}

.producto-card span {
  font-weight: bold;
  color: #000;
}

.aProducto, .aProducto:hover, .aProducto:visited, .aProducto:active, .aProducto:focus, .aProducto *, .aProducto *:hover, .aProducto *:visited, .aProducto *:active, .aProducto *:focus {
  text-decoration: none!important;
  color: inherit !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto; /* 👈 Esto empuja el footer hacia el fondo */
}
@media (1024px <= width) {
    .divCategorias {
        font-size: 14px;
    }
    .buttonCategorias {
        padding: 15px 10px;
    }
    .imgCategorias {
        width: 70px;
        height: 70px;
    }
    .pCategorias {
        font-size: 13px;
    }
div.divErr {
    margin: 20px auto;
    padding: 15px 25px;
    border: 1px solid #ff6b6b;
    background-color: #fff4f4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    max-width: 600px;
    text-align: center;
}
.element {
    position: relative;
    left: 100%; 
} 
}

.mensaje-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 40px;
  border: 1px solid #ff6b6b;
  border-radius: 10px;
  background-color: #fff4f4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  width: 90%;
  max-width: 700px;
  margin: 50px auto;
}

.mensaje-vacio p:first-child {
  font-size: 1.5em;
  color: #d9534f;
  font-weight: bold;
  margin: 0 0 10px;
}

.mensaje-vacio p:last-child {
  font-size: 1.1em;
  color: #555;
  margin: 0;
}

@media (max-width: 600px) {
  .mensaje-vacio {
    padding: 15px 20px;
    width: 95%;
    max-width: none;
  }
  .mensaje-vacio p:first-child {
    font-size: 1.2em;
  }
  .mensaje-vacio p:last-child {
    font-size: 1em;
  }
}





html, body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ====== CABECERA ====== */

.imgHead {
  display: block;
  width: 130px;
  height: auto;
}

/* ====== BÚSQUEDA ====== */
.searchContainer { 
  flex-grow: 1; 
  padding: 0 20px; 
} 
.inputHeader { 
  padding: 7px 20px;
  border: 2px solid #ccc; 
  border-radius: 4px 0 0 4px; 
  font-size: 14px; 
  position: relative; 
}
.buttonHeader:hover {
  background-color: #f0c400;
  text-decoration: none !important;
}
.iconSearch {
  width: 16px;
  height: 16px;
  position: relative;
  top: 2px;
}

/* ====== NAVEGACIÓN ====== */
.aHeader {
  margin: 0 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}
.aHeader:hover {
  color: #ffffff;
  text-decoration: underline;
}
.separadorHeader {
  background-color: transparent;
  border: none;
  font-size: 25px;
}
.aImage {
  height: 22px;
  position: relative;
  top: 5px;
  transition: transform 0.4s ease, filter 0.5s ease;
}
.aImage:hover {
  transform: scale(1.2);
  filter: brightness(1.15);
}

/* ====== FONDO PRINCIPAL ====== */
.fondo-completo {
  background: linear-gradient(to bottom, #f0f0f0, #ffffff);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 80vh;
  padding: 40px 0;
  width: 100%;
}

/* ====== CATEGORÍAS ====== */
.divCategorias {
  width: 100% !important;
  background-color: #ededed !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  font-size: 12px !important;
  border-bottom: 1px solid #e0e0e0 !important;
}
.buttonCategorias {
  background-color: #f7f7f7 !important; 
  border: none !important;
  border-right: 1px solid #e0e0e0 !important; 
  cursor: pointer !important;
  text-align: center !important;
  padding: 10px 5px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-grow: 1 !important; 
  flex-shrink: 1 !important;
  flex-basis: 0 !important;
}
.buttonCategorias:last-child {
  border-right: none !important;
}
.buttonCategorias:hover {
  background-color: #e8e8e8 !important; 
}
.imgCategorias {
  width: 50px !important;
  height: 50px !important; 
  object-fit: contain !important; 
  margin-bottom: 5px !important;
  transition: transform 0.3s ease !important;
}
.pCategorias {
  font-weight: bold !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

/* ====== PRODUCTOS ====== */
.productosContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  overflow: hidden;
}

.producto-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  width: 220px;
  height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.producto-card:hover {
  transform: scale(1.05);
}
.producto-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 10px;
}
.producto-card h3 {
  font-size: 16px;
  margin: 10px 0 5px;
}
.producto-card p {
  font-size: 13px;
  color: #666;
}
.producto-card span {
  font-weight: bold;
  color: #000;
}

/* ====== ENLACES PRODUCTOS ====== */
.aProducto, .aProducto:hover, .aProducto:visited, .aProducto:active, .aProducto:focus,
.aProducto *, .aProducto *:hover, .aProducto *:visited, .aProducto *:active, .aProducto *:focus {
  text-decoration: none !important;
  color: inherit !important;
}

/* ====== MENSAJE VACÍO ====== */
.mensaje-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 40px;
  border: 1px solid #ff6b6b;
  border-radius: 10px;
  background-color: #fff4f4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  width: 90%;
  max-width: 700px;
  margin: 50px auto;
}
.mensaje-vacio p:first-child {
  font-size: 1.5em;
  color: #d9534f;
  font-weight: bold;
  margin: 0 0 10px;
}
.mensaje-vacio p:last-child {
  font-size: 1.1em;
  color: #555;
  margin: 0;
}

/* ====== FOOTER ====== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
footer {
  margin-top: auto;
}

/* ====== MODAL ====== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 🔹 Contenedor del modal */
.modal-contenido {
  width: 100%;
  max-width: 1050px;
  height: 620px;
  background: #fff;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 50% 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  position: relative;
  align-items: stretch;
}

/* Columna izquierda: imagen */
.modal-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  height: 100%;
  padding: 25px;
  border-right: 1px solid #eee;
}
.modal-imagen img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Columna derecha: info */
.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 36px;
  height: 100%;
  overflow-y: auto;
}
.modal-info h2 {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 800;
}
.modal-info p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}
.modal-info .bloque {
  margin: 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.modal-info .bloque:last-child {
  border-bottom: none;
}

/* Botones */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 12px rgba(37,211,102,0.25);
  transition: transform 0.2s ease;
}
.btn-whatsapp:hover { transform: translateY(-2px); }

/* 🔹 Cuando el modal está activo, bloquear scroll de fondo */
body.modal-abierto {
  overflow: hidden;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .modal-contenido {
    grid-template-columns: 1fr;
    height: auto;
    max-width: 90%;
  }
  .modal-imagen {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 20px;
  }
  .modal-info {
    padding: 24px;
    height: auto;
  }
}


/* === ANIMACIÓN DE CARGA === */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-content {
  text-align: center;
  animation: float 2s ease-in-out infinite;
}

.loader-logo {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

.loader-text {
  font-weight: bold;
  font-size: 18px;
  color: #222;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* === BOTÓN SUBIR ARRIBA === */
#btnSubir {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9998;
}

#btnSubir:hover {
  transform: scale(1.1);
  background: #ffea70;
}

#btnSubir.visible {
  opacity: 1;
  pointer-events: all;
}

/* === ANIMACIÓN DE CARGA === */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-content {
  text-align: center;
  animation: float 2s ease-in-out infinite;
}

.loader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}

.loader-text {
  font-weight: bold;
  font-size: 18px;
  color: #222;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* === BOTÓN SUBIR ARRIBA === */
#btnSubir {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #FFD700;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btnSubir.visible {
  opacity: 1;
  pointer-events: all;
}

#btnSubir:hover {
  transform: scale(1.1);
  background: #ffea70;
}

/* Ícono dentro del botón */
.icono-flecha {
  width: 28px;
  height: 28px;
  filter: brightness(0);
}

/* Contenedor centrado del spinner */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: #ffffff; /* o #000000 si prefieres oscuro */
}

/* Círculo giratorio */
.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #e0e0e0;        /* color gris del borde */
  border-top: 6px solid #f1c40f;     /* color amarillo (puedes cambiarlo) */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.divCategorias {
    position: static;
}

header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: #000; /* Cambia si quieres */
}

/* Evitar que el contenido se suba debajo del header */
#btnSubir {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: yellow;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 9999;
}

#btnSubir.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#btnSubir .icono-flecha {
  width: 60%;
  height: 60%;
}

.logoOneButton {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

header {
  background: #f1c40f !important;
}


.divModalIMG{
  height: 500px;
}


/* Animación de giro */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .divCategorias {
        overflow-y: auto !important;
        max-height: 70vh !important;
        -webkit-overflow-scrolling: touch !important; /* scroll suave en iPhone */
    }
}

.divCategorias {
  flex-wrap: wrap !important; /* hace que las categorías se envuelvan en varias filas */
  /* y además css2 repite muchas reglas con !important que complican la cascada */
}

.modal-imagen {
    flex: 0 0 45%;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;        /* antes 300px → demasiado grande */
    border-right: 1px solid #eee;
}

.modal-imagen img {
    max-width: 90%;       /* evita imágenes gigantes */
    max-height: 350px;    /* tamaño moderado para ventana */
    object-fit: contain;
    display: block;
}




