/* Barra roja superior */
.topbar {
    width: 100%;
    background: #ec3039;
    padding: 1px 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.topbar p {
    margin: 0;
    padding: 10px 10px;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* 🔥 permite que el texto se parta correctamente */
}

/* NAVBAR PRINCIPAL – Blanco + sombra + texto gris */
.navbar { 
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #4b5563; /* gris elegante */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.navbar__logo img {
    height: 48px;
    object-fit: contain;
}

/* Contenedor del buscador (Referencia para el menú flotante) */
.navbar__search {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative; /* Clave: para que las sugerencias se ubiquen respecto a esto */
}

/* Input original con tus estilos */
.navbar__search input {
    width: 60%;
    padding: 10px 14px; 
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.navbar__search input:focus {
    background: #ffffff;
    border-color: #9ca3af;
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.15);
}

/* Botón original con tus estilos */
.navbar__search button {
    margin-left: -44px;
    background: #11182763;
    color: white;
    padding: 10px 15px; 
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2; /* Para asegurar que el botón quede siempre visible sobre el input */
}

.navbar__search button:hover {
    background: #374151;
}

/* --- NUEVAS REGLAS PARA SUGERENCIAS --- */

#search-suggestions {
    position: absolute;
    top: 100%; /* Justo debajo del buscador */
    left: 50%;
    transform: translateX(-50%); /* Lo centra perfectamente igual que tu input */
    width: 60%; /* Misma anchura que el input */
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none; /* Unión visual con el input */
    z-index: 1000; /* Pasa por encima de todo */
    display: none; /* Se activa con JS */
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Estilo para cada producto sugerido */
.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

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

.suggestion-item:hover {
    background-color: #f9fafb;
    color: #000;
}

/* Iconos derecha */
.navbar__icons {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar__instagram{
    display: none;
}

.navbar__icons a {
    color: #4b5563; /* gris medio */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.navbar__icons a:hover {
    color: #111827; /* gris oscuro */
}

.cart-count {
    background: #ec3039;
    color: white;
    padding: 2px 7px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 3px;
}

/* MENÚ SECUNDARIO PREMIUM */
.subnav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 80px; /* top original */
    z-index: 9; 
}

/* Cuando se vuelve sticky */
.subnav.fixed {
    top: 0 !important; /* se pega al top durante el scroll */
}

/* UL */
.subnav ul {
    display: flex;
    justify-content: center;
    gap: 0px;
    padding: 0;
    margin: 0;
    list-style: none;
    height: 50px; /* altura total del subnav */
    align-items: center;
}

/* LI: toma toda la altura */
.subnav ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

/* A: centrado en toda la altura */
.subnav ul li a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 30px;  /* solo horizontal */
    border-radius: 0; /* no hace falta redondear */
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

/* HOVER COMPLETO */
.subnav ul li:hover {
    background: #f3f4f6; /* fondo ocupa 100% del alto */
}

.subnav ul li:hover a {
    color: #111827;
}

/* BOTÓN HAMBURGUESA (solo mobile) */
.navbar__burger {
    background: none;
    border: none;
    font-size: 24px;
    display: none; /* se muestra en mobile */
    cursor: pointer;
    color: #4b5563;
}


/* --- MENÚ MOBILE GENERAL --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    display: none; /* oculto */
    z-index: 200;
}

/* Fondo oscuro */
.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Panel lateral */
.mobile-menu__panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 70%;
    height: 100%;
    background: #ffffff;
    padding: 25px 20px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
/* Buscador mobile actualizado */
.mobile-menu__search {
    display: flex;
    gap: 10px;
    position: relative; /* Clave para que las sugerencias no se muevan */
    margin-bottom: 30px; /* El margen ahora está en el contenedor */
    margin-top: 45px;
}

.mobile-menu__search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
}

.mobile-menu__search button {
    padding: 10px 14px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.mobile-menu__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    z-index: 10;
}

/* Asegurémonos de que el overlay ocupe toda la pantalla */
.mobile-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Cuadro de sugerencias Mobile */
#mobile-search-suggestions {
    position: absolute;
    top: 100%; /* Se pega justo debajo del input */
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 2000; /* Por encima de todo el panel mobile */
    display: none;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Items de sugerencia dentro del mobile */
#mobile-search-suggestions .suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #333;
}

#mobile-search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

/* Links del menú */
.mobile-menu__links {
    display: flex;
    flex-direction: column; 
}

.mobile-menu__links a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    padding: 17px 0;
    border-top: 1px solid rgb(238, 238, 238);
}

.mobile-menu__links a:last-child{
    margin-bottom: 30px;
}

.mobile-menu__links a:first-child{
     border-top: none;
}

.redes{
    font-size: 12.4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
}

.redes p{
    margin: 0;
}

.redes .barrio{
    padding-bottom: 7px;
}


/* SLIDER */ 
/* Contenedor general del slider */
.hero-slider {
    position: relative;
    width: 100%;
}

/* Ordenamos imágenes + indicadores verticalmente */
.slider-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Contenedor de imágenes */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
}

/* Imágenes apiladas para fade */
.slider-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.slider-container img.active {
    opacity: 1;
    z-index: 2;
}

/* Indicadores dentro del flujo */
.slider-indicators {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

/* Cada puntito */
.slider-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: transform 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.slider-indicators .dot.active {
    background: #111;
    transform: scale(1.3);
}


/* Flechas del slider */
.slider-prev,
.slider-next {
    position: absolute;
    top: 52%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    color: #111;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none; /* no clickeable hasta que aparezca */
    transition: opacity 0.25s ease, background 0.25s ease;
    z-index: 5; /* por encima de las imágenes */
}

/* Posición izquierda/derecha */
.slider-prev {
    left: 14px;
}

.slider-next {
    right: 14px;
}

/* Flechas aparecen solo cuando el mouse está en el slider */
.hero-slider:hover .slider-prev,
.hero-slider:hover .slider-next {
    opacity: 1;
    pointer-events: auto; /* ahora sí responden al click */
}

/* Hover visual */
.slider-prev:hover,
.slider-next:hover {
    background: rgba(255,255,255,0.9);
}

/* Indicadores debajo del slider */
.slider-indicators {  
    color: white;  
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    margin-top: -30px;
    margin-left: 50px;
}

/* Cada puntito */
.slider-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

/* Activo */
.slider-indicators .dot.active {
    background: white;
    transform: scale(1.35);
}

/*/////////////////////////////////////////*/
/*          BOTON CATEGORIAS MOBIL        */
/*///////////////////////////////////////*/
.mobile-cat-bar {
  width: 100%;
  background: #ffffff; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: none; /* oculto por defecto */
  position: relative;
  z-index: 0;
}

.mobile-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e92e2e;
  color: white;
  padding: 10px 23px; 
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 3px 10px rgba(0,0,0,0.20);
}

.mobile-cat-btn i {
  font-size: 18px;
}

/* SOLO SE VE EN CELULAR */
@media (max-width: 600px) {
  .mobile-cat-bar {
    display: block;
    margin-top: 0px; /* separa del navbar */
  }

  /* Ajusta el hero para bajar un poco */
  .hero-carousel {
    margin-top: 0px !important;
  }
}



/*/////////////////////////////////////////*/
/*          CATEGORÍAS DESTACADAS         */
/*///////////////////////////////////////*/

.featured-categories {
    text-align: center;
    padding: 30px 30px;
}

.featured-categories h2{
    margin-top: 30px;
    margin-bottom: 38px;
}

.titulos {
    font-size: 19px;
    font-weight: 500;
    color: #222;
    margin-bottom: 24px;
}

/* Wrapper para poder poner los botones a los costados */
.featured-categories-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
}

/* Grid de 3 columnas centradas (DESKTOP) */
.featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    max-width: 1300px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Cada tarjeta */
.featured-card {
    background: #ffffff;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Imagen dentro */
.featured-card img {
    width: 100%;
    height: 232px;
    object-fit: cover;
}

/* Hover */
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* Botones, ocultos por defecto (solo mobile los muestra) */
.featured-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Solo para saber dónde van (izq/der) */
.featured-prev { left: 8px; }
.featured-next { right: 8px; }

/* //////////////////////////////////////////////////////////////////////////////// */
/* =========================================================
   PRODUCTOS DESTACADOS
========================================================= */
/* //////////////////////////////////////////////////////////////////////////////// */

.featured-products {
    background: #f9fafb;
    margin-top: 25px;
}

.destacados_product{ 
    padding: 40px 30px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-products__header {
    text-align: center;
    margin-bottom: 18px;
}

.featured-products h2 {
    font-size: 19px;
    font-weight: 500;
    color: #222;
    margin-bottom: 14px;
    display: flex; 
    align-items: center;
    justify-content: start;
}

/* Chips de categorías */
.featured-products__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 8px;
}

.featured-category-pill {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: #4b5563;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.featured-category-pill--active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Viewport carrusel */
.featured-products__viewport {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 22px;
}

/* Track con productos */
.featured-products__track {
    display: flex;
    justify-content: center;
    gap: 18px;
    transition: transform 0.35s ease;
}

/* CARD de producto */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Imagen */
.product-card__image {
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 10px;
}

.product-card__image img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

/* Título */
.product-card__title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

/* Precios */
.product-card__prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.product-card__price-current {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444; /* rojo */
}

.product-card__price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Barras de info */
.product-card__badges {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.product-card__badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
}

.product-card__badge--discount {
    background: #ef4444; /* rojo ahorro */
}

.product-card__badge--shipping {
    background: #1d4ed8; /* azul envío */
}

/* Botón VER MÁS */
.product-card__cta {
    margin-top: auto;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid #111827;
    color: #111827;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-card__cta:hover {
    background: #111827;
    color: #ffffff;
}

/* --- Flechas del carrusel (solo mobile se muestran) --- */
.featured-products__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    width: 32px;
    height: 32px;
    display: none;            /* se habilita en mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
}

.featured-products__btn--prev { left: 4px; }
.featured-products__btn--next { right: 4px; }

/*///////////////////////////////////////////////////////*/
/*         RESPONSIVE DE PRODUCTOS DESTACADOS           */
/*/////////////////////////////////////////////////////*/

@media (max-width: 767px) {
  .featured-products__track {
    justify-content: flex-start; /* clave */
    will-change: transform;
  }

  /* 1 card visible <500 (tu JS usa visible=1) */
  @media (max-width: 499px) {
    .product-card {
      flex: 0 0 90%;
      max-width: 100%;
    }
    /* .product-card__title{
        width: 70%;
    } */

    .featured-products__btn {
      display: flex;
    }
  }

  /* 2 cards visibles 500-767 (tu JS usa visible=2) */
  @media (min-width: 500px) and (max-width: 767px) {
    .product-card {
      flex: 0 0 calc((100% - 18px) / 2);
      max-width: calc((100% - 18px) / 2);
    }

    .featured-products__btn {
      display: flex;
    }
  }
}


/* //////////////////////////////////////////////////////////////////////////////// */
/*                                 IMAGENES DE MEDIO                               */
/* ////////////////////////////////////////////////////////////////////////////// */

.img-dos{
  display: flex;
  justify-content: center;
  gap: 30px;         /* vos decías 30px */
  margin: 80px 0;
  flex-wrap: wrap;
}

.img-dos > div{
  flex: 0 1 480px;   /* cada bloque intenta ser 480px, si no entra baja */
}

.img-dos img{
  width: 100%;
  height: auto;
  display: block;
}


/* //////////////////////////////////////////////////////////////////////////////// */
/*                                MAS VENDIDOS                                 */
/* ////////////////////////////////////////////////////////////////////////////// */

.mas-vendidos{
    height: auto;
    min-height: 600px;     /* opcional: mantiene “presencia” en desktop */
    background-color: rgba(66, 66, 66, 0.055);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}
 
.contenedor-principal{
    height: auto;
    width: 100%;
    margin: 0 auto;
    background-color: rgb(255, 255, 255); 
    padding: 0 50px 0 50px;
}

.titulo-seccion{
    font-size: 19px;
  font-weight: 600;
  color: #222222d0;
  margin-top: 50px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grilla */
.grid-productos{
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    margin: 30px;
}

/* Card */
.card-producto{
    position: relative;
    border: 1px solid #e9e9e9;
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease;
}

.card-producto:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* Link full clickable */
.card-link{
    display: block;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

.card-producto img{
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 12px;
}

.nombre{
    font-size: 13.5px;
    color: #2b2b2b;
    line-height: 1.25;
    min-height: 42px;
    margin-bottom: 10px;
}

/* Precios */
.precios{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.precio-viejo{
    text-decoration: line-through;
    color: #8a8a8a;
    font-size: 13px;
}

.precio-nuevo{
    color: #e53935;
    font-weight: 700;
    font-size: 13.5px;
}

/* Badge */
.badge-oferta {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e53935;
    color: #fff;
    font-size: 11px;
    padding: 4px 30px;
    font-weight: 700;
    letter-spacing: .3px;
    border-radius: 2px;
}

/* Botón */
.btn-ver-todo{
    margin: 76px auto;
    display: block;
    background-color: #e53935;
    color: #fff;
    border: none;
    padding: 12px 46px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
}
.btn-ver-todo:hover{ opacity: 0.92; }

/* Responsive básico */
@media (max-width: 1200px){
  .grid-productos{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px){
  .grid-productos{ grid-template-columns: repeat(2, 1fr); }
}

/*////////////////////////////////////////////////////*/
/*/////////       IMAGEN Y PRODUCTO         /////////*/
/*//////////////////////////////////////////////////*/

.promo{  

  width: 100%;              /* FULL WIDTH en desktop */
  margin: 40px 0;           /* separa de otras secciones */
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);

  display: grid;
  grid-template-columns: 2fr 1fr;
}

/* Columna imagen */
.promo__media{
  position: relative;
  min-height: 280px;
}
.promo__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Corte diagonal (sin assets) */
.promo__media::after{
  content:"";
  position: absolute;
  top: 0;
  right: -1px;
  width: clamp(60px, 8vw, 140px);
  height: 100%;
  background: #fff;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

/* Contenido */
.promo__content{
  padding: clamp(18px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.promo__kicker{
  margin: 0;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
}

.promo__price{
  margin: 0;
  font-size: clamp(44px, 5.5vw, 86px);
  line-height: .95;
  letter-spacing: -0.02em;
}

.promo__subtitle{
  margin: 0;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
}

.promo__legal{
  margin: 0;
  opacity: .7;
  font-size: 13px;
}

.promo__btn{
  margin-top: 10px;
  align-self: flex-start;
  background: #6d28d9;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
}

/* Responsive: apila en mobile */
@media (max-width: 820px){
  .promo{
    grid-template-columns: 1fr;
    margin: 24px 0;
    text-align: center;
  }

  .promo__media{
    min-height: 200px; /* baja la altura en mobile */
  }

  .promo__media::after{
    display: none; /* quitamos la diagonal en mobile */
  }

  .promo__content{
    padding: 18px 16px; /* respira mejor en celular */
  }
}

/*////////////////////////////////////////////////////*/
/*/////////         PROD MAS FOTO           /////////*/
/*//////////////////////////////////////////////////*/ 

/* Sección centrada */
.homeRow{
  /* ancho de tarjeta */
  --tile-w: 250px;   /* antes 230 */
  --tile-h: 450px;   /* antes 360 */
  display:grid;
  grid-template-columns: repeat(5, var(--tile-w));
  gap:16px;
  justify-content: center;
  padding:16px;
}

/* Todas las tarjetas con tamaño fijo */
.tile{
  width: var(--tile-w);
  height: var(--tile-h);
  background:#fff;
  border:1px solid #e8e8ee;
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

#tilesProducts{ display: contents; }

.tile--banner img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Card producto simple estilo “imagen 2” */
.pTile{
  display:flex;
  flex-direction:column;
  height:100%; /* ocupa los 360px */
}

.pTile__media{
  height: 200px;              /* zona de imagen del producto */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}

.pTile__media img{
  width:250px;
  height:250px;
  object-fit:contain;
}

.pTile__body{
  padding:10px 12px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1; /* ocupa el resto del espacio */
}


.pTile__title {
    margin: 14px;
    font-size: 14px;
    line-height: 1.25;
    height: 36px;
    overflow: hidden;
    padding-top: 13px; 
}

.pTile__price{
  margin: 14px;
  font-weight:800;
  font-size:18px;
}

.pTile__btn{
  margin-top:auto;
  height:42px;
  border:0;
  border-radius:10px;
  background:#ff6f6f;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

@media (max-width: 760px){
  .homeRow{
    grid-template-columns: repeat(1, var(--tile-w));
    justify-content: center;     /* centradas */
  }
}



/*////////////////////////////////////////////////////*/
/*/////////         FORMAS DE PAGO          /////////*/
/*//////////////////////////////////////////////////*/ 

#slider h2 {
  font-size: 19px;
  font-weight: 500;
  color: #222;
  margin-top: 50px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor */
.slider {
  padding: 15px 0;
  width: 75vw;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* Track */
.slider .slide-track {
  display: flex;
  align-items: center;
  gap: 35px;                 /* reemplaza todos los margin inline */
  width: max-content;        /* se ajusta al contenido */
  animation: scroll 20s linear infinite;
  will-change: transform;
}

/* Cada item */
.slider .slide {
  flex: 0 0 180px;           /* ancho fijo del item */
}

.slider .slide img {
  width: 130%;
  display: block;
  padding-top: 5px;          /* lo que tenías inline */
  filter: grayscale(3);
  opacity: 0.3;
  transition: 0.3s ease;
}

.slider .slide:hover img {
  filter: none;
  opacity: 1;
}

/* ✅ clave del infinito: mover solo la mitad del track (porque el JS lo duplica) */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 900px){
  #slider h2 {
    display: none;
  }
  .slider { display: none; }
  .slider .slide { display: none; }
}

@media (max-width: 520px){
  .slider { display: none; }
  .slider .slide-track { display: none; }
  .slider .slide { display: none; }
}

/*
SPINER DE COMPRA
*/
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Opcional: que el botón se vea un poco más claro mientras carga */
#checkoutBtn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

 
/*////////////////////////////////////////////////////*/
/*/////////       MODO RESPONSIVE         ///////////*/
/*//////////////////////////////////////////////////*/

/* ==============================
          TOPBAR COMPLETO
   ============================== */
@media (max-width: 480px) {
    .topbar {
        font-size: 12px; /* levemente más chico */
        padding: 6px 0;
    }

    .topbar p {
        gap: 4px;
        text-align: center;
    }

    .topbar i {
        font-size: 12px; /* ícono proporcional */
    }
}

/* ==============================
          NAVBAR COMPLETO
   ============================== */

@media (max-width: 768px) {
    /* Navbar mobile layout */
    .navbar {
        display: grid;
        grid-template-columns: 40px 1fr 40px; 
        align-items: center;
        padding: 12px 16px;
    }

    /* Hamburguesa a la izquierda */
    .navbar__burger {
        display: block;
        justify-self: start;
    }

    /* Logo centrado */
    .navbar__logo {
        justify-self: center;
    }
    .navbar__logo img {
        height: 40px; /* un poco más pequeño en mobile */
    }

    /* Icono Instagram a la derecha */
    .navbar__instagram {
        display: block;
        justify-self: end;
        font-size: 22px;
        color: #4b5563;
        text-decoration: none;
    }

    /* Ocultar buscador e íconos desktop */
    .navbar__search,
    .navbar__icons {
        display: none;
    }

    /* Ocultar subnav */
    .subnav {
        display: none !important;
    }
}

/* ==============================
              CATEGORIAS
   ============================== */

@media (max-width: 768px) {
    .featured-categories-wrapper {
        max-width: 100%;
        padding: 0;
        position: relative;
        overflow: hidden; /* 🔥 evita que se vea lo demás */
    }

    /* Convierte el grid en slider horizontal */
    .featured-categories-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 30px;
        width: 300%; /* 🔥 asegura el ancho para 3 slides */
        transition: transform 0.35s ease;
        padding-left: 10px;
    }

  .featured-card {
        aspect-ratio: 1.45 / 1; /* exactamente tu proporción */
        width: 100%; 
    }

    .featured-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;   /* mantiene calidad */
    }
    /* Activamos botones */
    .featured-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        background: rgba(255,255,255,0.85);
        border-radius: 50%;
        width: 34px;
        height: 34px;
        border: 1px solid #ddd;
    }

    .featured-prev { left: 16px; }
    .featured-next { right: 16px; }
}

/* ==============================
       PROD DESTACADOS DEL MES
   ============================== */

/* Desktop / tablet ancho: 5 productos visibles, sin flechas */
@media (min-width: 768px) {
    .product-card {
        flex: 0 0 17%; /* 5 por fila */
    }

    .featured-products__btn {
        display: none;
    }
}

/* Entre 500 y 767px: carrusel, 2 productos por vista */
@media (max-width: 767px) and (min-width: 500px) {
    .product-card {
        flex: 0 0 50%;
    }

    .featured-products__btn {
        display: flex;
    }
}

/* ==============================
            MAS VENDIDOS
   ============================== */

/* 3) Grid responsive más fino */
@media (max-width: 1200px){
  .grid-productos{ grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px){
  .mas-vendidos{ padding: 30px 18px; }
  .grid-productos{
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0;
    gap: 14px;
  }
  .titulo-seccion{
    font-size: 22px;
    margin: 24px 0 18px; 
  }
}

@media (max-width: 700px){
  .grid-productos{ grid-template-columns: repeat(2, 1fr); }
  .card-link{ padding: 14px; }
  .card-producto img{ height: 140px; }
  .btn-ver-todo{ margin: 28px auto ; } /* en vez de 76px */
}

@media (max-width: 420px){
  .grid-productos{ grid-template-columns: 1fr; }
  .card-producto img{ height: 160px; }
}

 

/*///////////////////////////////
footer
///////////////////////////////*

/* =============================================
   FOOTER – AP SuperShop
   Pegar al final de layout.css (o en base.css)
============================================= */

/* ── Variables locales (ya las tenés o las usás inline) ── */
:root {
  --footer-bg:       #111827;
  --footer-surface:  #1f2937;
  --footer-border:   #374151;
  --footer-text:     #9ca3af;
  --footer-heading:  #f9fafb;
  --footer-accent:   #ec3039;
  --footer-radius:   8px;
}

/* =========================================
   BANDA SUPERIOR – iconos de garantías
========================================= */
.footer-top {
  background: var(--footer-accent);
  padding: 18px 24px;
}

.footer-top__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.footer-top__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 32px;
  white-space: nowrap;
}

.footer-top__item i {
  font-size: 20px;
  opacity: 0.9;
}

/* Línea divisoria entre items */
.footer-top__divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* =========================================
   CUERPO PRINCIPAL
========================================= */
.footer-body {
  background: var(--footer-bg);
  padding: 60px 24px 48px;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}

/* ── Columna Marca ── */
.footer-col--brand .footer-logo img {
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* logo blanco sobre fondo oscuro */
  margin-bottom: 16px;
  display: block;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--footer-text);
  line-height: 1.65;
  margin: 0 0 22px;
}

/* Íconos sociales */
.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--footer-surface);
  border: 1px solid var(--footer-border);
  color: var(--footer-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--footer-accent);
  border-color: var(--footer-accent);
  color: #fff;
}

/* ── Títulos de columna ── */
.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--footer-accent);
  display: inline-block;
}

/* ── Links de navegación ── */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links li a i {
  font-size: 10px;
  color: var(--footer-accent);
  transition: transform 0.2s ease;
}

.footer-links li a:hover {
  color: #fff;
  gap: 12px;
}

.footer-links li a:hover i {
  transform: translateX(2px);
}

/* ── Lista de contacto ── */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--footer-text);
  font-size: 13.5px;
  line-height: 1.55;
}

.footer-contact li i {
  color: var(--footer-accent);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact li a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact li a:hover {
  color: #fff;
}

/* =========================================
   BANDA INFERIOR – copyright + pagos
========================================= */
.footer-bottom {
  background: #0d1320; /* más oscuro que el cuerpo */
  border-top: 1px solid var(--footer-border);
  padding: 18px 24px;
}

.footer-bottom__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.footer-bottom__payments {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom__payments span {
  font-size: 12px;
  color: #6b7280;
}

.footer-bottom__payments img {
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.footer-bottom__payments img:hover {
  opacity: 0.85;
}

/* =========================================
   RESPONSIVE
========================================= */

/* Tablet: 2 columnas */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }

  .footer-top__item {
    padding: 6px 18px;
  }
}

/* Mobile grande: 2 columnas ajustadas */
@media (max-width: 640px) {
  .footer-top__inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 0 8px;
  }

  .footer-top__divider {
    display: none;
  }

  .footer-top__item {
    padding: 4px 0;
  }

  .footer-body {
    padding: 40px 20px 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  /* Marca ocupa todo el ancho en mobile */
  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
}

/* Mobile pequeño: 1 columna */
@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Contenedor de botones flotantes */
.floating-container {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacio entre botones */
    z-index: 9999;
}

/* Estilo general de los botones flotantes */
.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-decoration: none;
    transition: transform 0.2s ease;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Color Carrito */
.btn-cart-float {
    background-color: #111827; /* Negro/Gris oscuro */
}

/* Color WhatsApp */
.btn-wpp-float {
    background-color: #25d366; /* Verde WPP */
}

/* Badge del contador en el botón flotante */
.btn-cart-float .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444; /* Rojo */
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid white;
}

/* OCULTAR CARRITO FLOTANTE EN DESKTOP */
@media (min-width: 769px) {
    #cart-float {
        display: none;
    }
}

/* Contenedor principal (fondo oscuro) */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Por encima de TODO */
}

/* Caja de contenido */
.promo-content {
    position: relative;
    max-width: 500px; /* Ancho máximo en PC */
    width: 90%; /* Ancho en móviles */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: scaleUp 0.3s ease-out;
}

/* Imagen de la promo */
.promo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Botón de cerrar (X) */
.promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 35px;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
}

.promo-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Animación de entrada */
@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/*CONTACTO*/
/* --- ESTILOS PÁGINA CONTACTO --- */
.contact-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 10px;
}

.contact-header p {
    color: #6b7280;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Tarjetas de Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #e5e7eb;
}

.info-card i {
    font-size: 24px;
    color: #ec3039;
    width: 30px;
    text-align: center;
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #111827;
}

.info-card p, .info-card a {
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
}

/* Formulario */
.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ec3039;
}

.btn-send {
    width: 100%;
    background: #111827;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-send:hover {
    background: #1f2937;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
}

/* Responsive */
@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-header h1 { font-size: 26px; }
}
 