*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    text-decoration: none;
    color: black;
}
body{
    font-family:Arial, Helvetica, sans-serif;
    padding-top: 70px; /* EVITA QUE LA NAV-BAR FIJA LE QUITE ESPACIO AL CONTENIDO */
}
a{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
.nav-bar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0px 20px; /* Ajustado para mejor separación */
    height: 70px;
    max-width: 1150px;
    width: 100%;
    margin: 0 auto;
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999; 
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 0  rgba(0,0,0,0.1);   
}
.nav-bar__logo img{
    display: block;
    max-height: 100%;
    max-width: 100%;
    height:30px;
    width: 80px;
    object-fit: contain;
}
#SIMBOLO{
    display: none;
    height: 50px;
    width: 50px;
}
.nav-bar__links{
    display: flex;
    gap: 20px;
}
#herramienta, #tecnologia, #hogar, #cosmeticos {
    color: #0008ff;
    padding: 10px 10px;
    border-bottom: 2px #0008ff solid;
    white-space: nowrap; /* Evita que el texto de los links se rompa en dos líneas */
}
.header{
    padding: 0;
}

.hero-banner {
    display: block;
    background: black;
    max-width: 100%;
    height: 600px; /* Altura ideal para PC */
    margin-top: 0;
    position: relative; 
    z-index: 1;
}
.hero-banner__carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important; 
}

.hero-banner__carousel::-webkit-scrollbar {
    display: none !important;
}

.hero-banner__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.hero-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    background-color: rgba(0, 0, 0, 0.5); 
    color: white;
    border: none;
    font-size: 24px;
    padding: 16px 12px;
    cursor: pointer;
    z-index: 10; 
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-banner__btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.hero-banner__btn:active {
    transform: translateY(-50%) scale(0.95); 
}

.hero-banner__btn--prev { left: 20px; }
.hero-banner__btn--next { right: 20px; }

.catalog-header__title-container{
    padding: 15px;
    text-align: center;
}
.catalog-header__title{
    font-size: 30px;
}
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alineación perfecta vertical */
    gap: 20px;
    padding: 20px;
}
.search-bar {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 2px solid transparent; 
  border-radius: 30px;         
  padding: 4px 8px 4px 16px;    
  width: 100%;
  max-width: 400px;            
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-bar:focus-within {
  background-color: #ffffff;
  border-color: #0076ff;         
  box-shadow: 0 0 0 4px rgba(0, 118, 255, 0.15); 
}
.search-bar__input {
  flex: 1;                      
  background: none;
  border: none;
  outline: none;                
  font-size: 16px;
  color: #333333;
  padding: 8px 0;
}
.search-bar__input::placeholder {
  color: #8e8e93;
  opacity: 1;
}
.search-bar__button {
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;        
  transition: background-color 0.2s ease;
}
.search-bar__button:hover {
  background-color: rgba(0, 0, 0, 0.05); 
}
.search-bar__icon {
  color: #636366;             
  transition: color 0.3s ease, transform 0.2s ease;
}
.search-bar:focus-within .search-bar__icon {
  color: #0076ff;
}
.search-bar__button:active .search-bar__icon {
  transform: scale(0.9);
}
main{
    display: block;
    background: white;
    width: 100%;
    max-width: 1150px;
    height: auto;
    margin: -70px auto 0 auto; /* Montado sutil sobre el banner */
    position: relative;
    padding-bottom: 40px;
    z-index: 9;
    border-radius: 30px 30px 0px 0px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Optimizado minmax para pantallas pequeñas */
  gap: 20px;
  padding: 20px;
}
.product-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Mantiene los botones alineados abajo */
}
.product-card__img { max-width: 100%; height: auto; border-radius: 4px; width: 100%; }
.product-card__title { font-size: 22px; margin: 5px 0;  }
.product-card__content{display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;}
.product-card__subtitle{font-size: 18px; margin: 3px 0;}
.product-card__price{font-size: 18px; font-weight: bold;}
.product-card__actions{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.product-card__btn {
  flex: 1; /* Hace que ambos botones midan lo mismo */
  text-align: center;
  padding: 10px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}
.product-card__btn--info {  background-color: #f0f0f0; color: #333; }
.product-card__btn--buy {  background-color: #0008ff; color: #fff; }

.product-carousel-section {
    width: 100%;
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 20px;
}
.product-carousel-section__title { font-size: 30px; margin-bottom: 10px; }
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px 25px 5px; 
}
.product-carousel__item {
    flex: 0 0 85%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .product-carousel__item {
        flex: 0 0 calc(25% - 15px);
        scroll-snap-align: start;
    }
}

@media (pointer: coarse) {
    .product-carousel { -webkit-overflow-scrolling: touch; scrollbar-width: none !important; }
    .product-carousel::-webkit-scrollbar { display: none !important; }
}
@media (pointer: fine) {
    .product-carousel { scrollbar-width: thin !important; scrollbar-color: #0008ff #f5f5f5; cursor: grab; }
    .product-carousel:active { cursor: grab; }
    .product-carousel::-webkit-scrollbar { display: block !important; height: 8px !important; }
    .product-carousel::-webkit-scrollbar-track { background: #f5f5f5 !important; border-radius: 10px; }
    .product-carousel::-webkit-scrollbar-thumb { background: #0008ff !important; border-radius: 10px; }
    .product-carousel::-webkit-scrollbar-thumb:hover { background: #0005b3 !important; }
}

/* ==========================================================================
   🚨 NUEVAS REGLAS DE ADAPTACIÓN PARA MÓVILES (PANTALLAS < 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Navbar con scroll horizontal para que no se amontonen los links */
    .nav-bar {
        border-radius: 0; /* Quitamos bordes en móvil para aprovechar espacio */
        padding: 0 10px;
        gap: 5px;
    }
    .nav-bar__logo{
        height: 25px;
        width: 50px;
    }
    .nav-bar__whatsapp{
        display: none;
    } 
    .nav-bar__links {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
    }
    .nav-bar__links::-webkit-scrollbar {
        display: none; /* Oculta la barra de navegación del menú */
    }
    #SIMBOLO{
        display: block;
    }
    #LOGO{
        display: none;
    }
    #herramienta, #tecnologia, #hogar, #cosmeticos {
        padding: 6px 8px;
        font-size: 14px;
    }

    /* 2. Reducimos el tamaño del Banner en móviles para que no ocupe toda la pantalla */
    .hero-banner {
        height: 350px;
    }
    .hero-banner__btn {
        font-size: 18px;
        padding: 10px 8px;
    }
    .hero-banner__btn--prev { left: 10px; }
    .hero-banner__btn--next { right: 10px; }

    /* 3. La cabecera del catálogo pasa de fila a columna */
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .search-bar {
        max-width: 100%; /* El buscador toma todo el ancho disponible */
    }
    
    /* 4. Ajustes finos en los títulos */
    .catalog-header__title, .product-carousel-section__title {
        font-size: 24px;
    }
    
    /* 5. Main se acomoda mejor en los bordes de la pantalla */
    main {
        margin-top: -30px; /* Menos agresivo el solapado en pantallas chicas */
    }
}

/* ==========================================================================
   CARRUSEL DE PRODUCTOS (CONFIGURACIÓN BASE)
   ========================================================================== */
.product-carousel-section {
    width: 100%;
    max-width: 1150px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-carousel-section__title {
    font-size: 30px;
    margin-bottom: 10px;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden; /* Bloquea el scroll vertical */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px 25px 5px; /* Aumentamos el padding inferior para darle espacio a la barra */
}

.product-carousel__item {
    flex: 0 0 85%;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .product-carousel__item {
        flex: 0 0 calc(25% - 15px);
        scroll-snap-align: start;
    }
}

/* ==========================================================================
   CONTROL EXCLUSIVO DE BARRAS POR DISPOSITIVO
   ========================================================================== */

/* 📱 SI ES CELULAR/TABLET (Pantalla táctil): Ocultamos la barra por completo */
@media (pointer: coarse) {
    .product-carousel {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
    }
    .product-carousel::-webkit-scrollbar {
        display: none !important;
    }
}

/* 💻 SI ES COMPUTADORA (Mouse): Forzamos la barrita moderna */
@media (pointer: fine) {
    .product-carousel {
        scrollbar-width: thin !important; /* Activa barra delgada en Firefox */
        scrollbar-color: #0008ff #f5f5f5;  /* Color de la barra en Firefox (Azul y Gris) */
        cursor: grab;
    }
    
    .product-carousel:active {
        cursor: grabbing;
    }

    /* Activa y diseña la barra en Chrome, Edge y Safari para PC */
    .product-carousel::-webkit-scrollbar {
        display: block !important;
        height: 8px !important; /* Le damos 8px para que sea fácil de clickear en PC */
    }
    
    .product-carousel::-webkit-scrollbar-track {
        background: #f5f5f5 !important; /* Fondo gris claro para el riel */
        border-radius: 10px;
    }
    
    .product-carousel::-webkit-scrollbar-thumb {
        background: #0008ff !important; /* Tu color azul de los botones principales */
        border-radius: 10px;
    }

    .product-carousel::-webkit-scrollbar-thumb:hover {
        background: #0005b3 !important; /* Azul más oscuro al pasar el mouse */
    }
}

/* ==========================================================================
   ESTILOS GENERALES DEL FOOTER (METODOLOGÍA BEM)
   ========================================================================== */

.footer {
    margin-top: 200px;
    background-color: #1a1a1a; /* Fondo oscuro elegante */
    color: #ffffff;
    padding: 60px 20px 20px 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Contenedor Flexbox principal */
.footer__container {
    display: flex;
    flex-direction: column; /* Por defecto en móvil: una columna abajo de otra */
    gap: 40px;
    max-width: 1150px;       /* Alineado con el ancho de tu menú y main */
    margin: 0 auto;          /* Centrado perfecto en la pantalla */
}

/* Cada una de las 4 columnas */
.footer__col {
    flex: 1; /* Distribuye el espacio equitativamente */
}

.footer__logo {
    height: 35px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}

.footer__description {
    color: #b3b3b3; /* Gris claro para que sea fácil de leer */
    font-size: 14px;
    line-height: 1.6;
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase; /* Letras mayúsculas para títulos pequeños */
    letter-spacing: 1px;
    color: #ffffff;
}

/* Listas de enlaces */
.footer__list {
    list-style: none; /* Quita los puntitos negros de las listas */
    padding: 0;
    margin: 0;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    color: #b3b3b3;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

/* Efecto visual al pasar el cursor sobre un enlace */
.footer__link:hover {
    color: #0076ff; /* Cambia al color de tu marca (azul) */
    padding-left: 5px; /* Sutil desplazamiento hacia la derecha */
}

/* Contenedor de redes sociales */
.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__social-link img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Truco CSS: Vuelve los iconos negros a blancos automáticamente */
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.footer__social-link:hover img {
    opacity: 1;
    transform: scale(1.1); /* Efecto de agrandamiento sutil */
}

/* Barra inferior de derechos de autor (Copyright) */
.footer__bottom {
    border-top: 1px solid #333333; /* Línea divisoria fina */
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer__copy {
    color: #666666;
    font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT (PANTALLAS GRANDES Y COMPUTADORAS)
   ========================================================================== */
@media (min-width: 768px) {
    .footer__container {
        flex-direction: row; /* Cambia a fila: las 4 columnas se ponen una al lado de la otra */
        justify-content: space-between;
        gap: 20px;
    }
}



/* ==========================================================================
   ESTILOS DE LA VENTANA MODAL (ETIQUETA <DIALOG> CON BEM)
   ========================================================================== */

/* Bloque Principal: El diálogo nativo */
.modal {
    border: none;
    padding: 0;
    max-width: 100%;
    width: 100%;
    max-height: 100%; 
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Centrado nativo mágico que provee la etiqueta <dialog> */
    margin: auto; 
    position: fixed;
    z-index: 10000;
}

/* El fondo oscuro nativo que bloquea la página de atrás */
.modal::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); /* Efecto moderno de desenfoque de fondo */
}

/* Elemento: La ventana contenedora interna */
.modal__window {
    position: relative;
    padding: 30px;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Si el texto es muy largo en celulares, permite hacer scroll interno */
}

/* Elemento: Botón flotante para cerrar (La X) */
.modal__close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 15;
}

.modal__close-btn:hover {
    color: #000000;
    transform: scale(1.1);
}

/* Elemento: Contenedor flexible de la información (Por defecto en móvil: 1 columna) */
.modal__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 15px;
    height: 90%;
}

/* Elementos hijos: Columnas de Galería e Información */
.modal__gallery, 
.modal__info {
    width: 100%;
    height: 100%;
}
/* Estilos de la información de producto */
.modal__title {
    font-size: 35px;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal__price {
    font-size: 25px;
    color: #000000; /* El azul de tus botones principales */
    font-weight: 600;
    margin-bottom: 20px;
}

.modal__details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.modal__subtitle {
    font-size: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555555;
}

.modal__text {
    font-size: 14px;
    color: #333333;
    line-height: 1.6;
}

/* Botón de WhatsApp con esteroides */
.modal__btn--whatsapp {
    display: flex; 
    margin-bottom: 50px;
    justify-content: center;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.modal__btn--whatsapp:hover {
    background-color: #1ebd56;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT PARA COMPUTADORAS (PC / PANTALLAS GRANDES)
   ========================================================================== */
@media (min-width: 768px) {
    .modal__content {
        flex-direction: row; /* Transforma el diseño en 2 columnas perfectas lateralmente */
        align-items: flex-start;
    }

    .modal__gallery {
        flex: 1.2; /* La galería de fotos toma un poquito más de espacio */
    }

    .modal__info {
        flex: 1;
    }
}
/* ==========================================================================
   CARRUSEL INTERNO DE LA VENTANA MODAL (CSS PURO)
   ========================================================================== */
.modal__gallery {
    width: 100%;

    position: relative;
}

.modal__carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%; /* Altura fija para que la foto detallada luzca genial */
    border-radius: 8px;
    
    /* Ocultamos la barra en celulares y PC */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.modal__carousel::-webkit-scrollbar {
    display: none;
}

/* Las imágenes inyectadas dinámicamente por JS */
.modal__carousel-img {
    flex: 0 0 100%; /* Cada foto toma el 100% del ancho del carrusel */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    scroll-snap-align: start; /* Efecto imán al deslizar */
}





/* ==========================================================================
   AJUSTES FINALES PARA PUBLICAR
   ========================================================================== */
/* Banner: se ve completo (sin recortes) y rellena los costados con el mismo azul */
.hero-banner { background: #0000ff; height: auto; aspect-ratio: 1366 / 600; max-height: 600px; overflow: hidden; }
.hero-banner__slide picture { display: block; width: 100%; height: 100%; }
.hero-banner__img { display: block; object-fit: contain; }
@media (max-width: 768px) {
    .hero-banner { height: auto; aspect-ratio: 4 / 5; max-height: 640px; }
}

/* Tarjetas: todas del mismo tamaño de foto */
.product-card { background: #fff; }
.product-card__img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.product-card__title { font-size: 18px; line-height: 1.3; }

/* Aside (Ofertas Recomendadas) */
.product-carousel-section { margin: 40px auto 0; }
.product-carousel__item { min-width: 0; }
.footer { margin-top: 60px; }

/* Categoría "pronto llegará" */
.coming-soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 70px 20px 60px; }
.coming-soon__icon { font-size: 64px; line-height: 1; }
.coming-soon__badge { background: #ffb800; color: #000; font-weight: bold; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; }
.coming-soon__title { font-size: 34px; }
.coming-soon__text { max-width: 480px; font-size: 17px; line-height: 1.6; color: #444; }
.coming-soon__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.coming-soon__btn { padding: 12px 22px; border-radius: 8px; font-size: 15px; }
.coming-soon__btn--primary { background: #25d366; color: #fff; }
.coming-soon__btn--secondary { background: #f0f0f0; color: #333; }
@media (max-width: 768px) { .coming-soon__title { font-size: 26px; } }

.product-card__title { min-height: 2.6em; }
main { margin-top: -30px; }
@media (max-width: 768px) { main { margin-top: -10px; } }
