/* ================= CONTENEDOR VISUAL INDEX (LEGACY) ================= */

:root {
  --naranjo: #F37021;        /* Naranjo oficial */
  --naranjo-hover: #d85e1c;  /* Hover oficial */
  --gris-carbon: #151515;    /* Gris carbón oficial */
  --marfil: #F1EFED;         /* Fondo oficial */
  --blanco: #ffffff;
}

body {
  background: var(--marfil);
}

.index-page .main-container {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 30px 20px 40px;
  min-height: calc(100vh - 120px);
}


/* ===============================
   INDEX - ESTILOS EXCLUSIVOS
   =============================== */

.index-page .container,
.index-page .container-fluid {
  background: transparent !important;
}

.index-page .main-content {
  background: rgba(255,255,255,0.45);
  border-radius: 14px;
}


.index-page .filtros{
  background: var(--marfil);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.index-page .filtros form{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  align-items:center;
}

.index-page .filtros input[type="text"],
.index-page .filtros select{
  min-width: 180px;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all .3s ease;
  background:#fff;
}

.index-page .filtros input[type="text"]:focus,
.index-page .filtros select:focus{
  border-color: var(--naranjo);
  box-shadow: 0 0 6px rgba(243,112,33,.35);
  outline:none;
}

/* Botón Filtrar */
.index-page .filtros button[type="submit"]{
  background: var(--naranjo);
  color:#fff;
  border:none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  cursor:pointer;
  font-weight:700;
  transition: all .3s ease;
  box-shadow: 0 4px 8px rgba(243,112,33,.35);
}

.index-page .filtros button[type="submit"]:hover{
  background: var(--naranjo-hover);
  box-shadow: 0 6px 14px rgba(216,94,28,.35);
}

/* Ordenar: más cercanos */
.index-page .btn-ubicacion{
  background: var(--naranjo);
  color:#fff;
  border:none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor:pointer;
  font-weight:700;
  transition: all .2s ease;
}

.index-page .btn-ubicacion:hover{
  background: var(--naranjo-hover);
}
/* Botón "Ordenar: más cercanos" dentro del bloque inline */
.index-page .filtros .inline button {
  background: var(--naranjo);
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all .3s ease;
  box-shadow: 0 4px 8px rgba(243,112,33,.35);
}

.index-page .filtros .inline button:hover {
  background: var(--naranjo-hover);
  box-shadow: 0 6px 14px rgba(216,94,28,.35);
}


/* ================= BOTÓN LIMPIAR FILTROS (LEGACY) ================= */

.index-page .filtros .btn-limpiar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;

  background-color: transparent;
  color: var(--naranjo);
  border: 2px solid var(--naranjo);

  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 165, 0, 0.25);
}

.index-page .filtros .btn-limpiar:hover {
  background-color: var(--naranjo);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4);
  transform: translateY(-1px);
}



/* ================= LISTADO DE PRODUCTOS (LEGACY) ================= */

.index-page #productos {
  display: grid;
  gap: 25px;
  padding: 0 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Breakpoints EXACTOS del antiguo */
@media (max-width: 1400px) {
  .index-page #productos {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .index-page #productos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .index-page #productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .index-page #productos {
    grid-template-columns: 1fr;
  }
}

.index-page .producto {
  background-color: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.index-page .producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(243, 112, 33, 0.25);
}

/* Imagen EXACTA */
.index-page #productos .img {
  height: 220px;
  padding: 12px;
  background: var(--marfil);
  display: flex;
  justify-content: center;
  align-items: center;
}

.index-page #productos .img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Contenido compacto */
.index-page .producto .contenido {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  padding-bottom: 30px;
}

/* Título */
.index-page .producto h3 {
  color: var(--naranjo);
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Texto */
.index-page .producto p {
  color: var(--gris-carbon);
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

/* Precio */
.index-page .producto strong {
  font-size: 1.05rem;
  color: var(--gris-carbon);
  font-weight: 800;
  margin-bottom: 8px;
}

/* Botones */
.index-page .producto .btn-detalle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  margin-top: 10px;
  border-radius: 8px;
  font-weight: 700;
  background: var(--naranjo);
  color: var(--blanco);
  text-decoration: none;
}

.index-page .producto .btn-detalle:hover {
  background: var(--naranjo-hover);
}

.index-page .producto .agregar-carrito {
  width: 100%;
  background-color: var(--gris-carbon);
  color: var(--blanco);
  border: none;
  padding: 12px 0;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  margin-top: 10px;
}




/* ===============================
   BOTONES
   =============================== */
.index-page .btn-detalle,
.index-page .agregar-carrito {
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.index-page .btn-detalle {
    background: #151515;
    color: #fff;
    text-decoration: none;
}

.index-page .agregar-carrito {
    background: #F37021;
    color: #fff;
    border: none;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px) {

    .index-page .filtros form {
        flex-direction: column;
        align-items: stretch;
    }

    .index-page .filtros input,
    .index-page .filtros select,
    .index-page .filtros button {
        width: 100%;
    }

    .index-page .producto .img img {
        height: 180px;
    }
}


/* ================= FORCE TOAST OVERLAY FIX ================= */
#toast {
  position: fixed !important;
  z-index: 999999 !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

/* Boton whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 56px;
    height: 56px;

    border-radius: 50%;
    overflow: hidden; /* 👈 CLAVE */

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    z-index: 99999;

    transition: transform .2s ease, box-shadow .2s ease;
}


.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 👈 rellena y recorta */
}

.whatsapp-float {
    background: transparent;
    box-shadow: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}



/* =======================================================
   Carrusel de productos destacados
   ======================================================= */

#carouselDestacados {
  margin-top: 5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  z-index: 1;
  background: linear-gradient(180deg, #F1EFED 0%, #F7E7D4 55%, #F37021 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/*  Cada item del carrusel en formato horizontal */
#carouselDestacados .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

/*  Imagen del producto a la izquierda */
#carouselDestacados .carousel-item img {
  width: 43%;
  max-width: 360px;
  height: 320px;
  object-fit: contain;
  border-radius: 12px;
  background-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#carouselDestacados .carousel-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/*  Contenedor del texto a la derecha */
#carouselDestacados .carousel-caption {
  position: static;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 25px 35px;
  color: #151515;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  width: 38%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*  Título del producto */
#carouselDestacados .carousel-caption h5 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Precio */
#carouselDestacados .carousel-caption p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F37021;
  margin-bottom: 14px;
}

/*  Botón “Ver producto” */
#carouselDestacados .carousel-caption .btn-ver-producto {
  background: #F37021;
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
  align-self: center;
}

#carouselDestacados .carousel-caption .btn-ver-producto:hover {
  background: #d85e1c;
  transform: scale(1.05);
}



/*  Badge “Destacado” */
.promo-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #F37021;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/*  Controles del carrusel */
.carousel-indicators [data-bs-target] {
  background-color: #F37021;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}
/* ===== Separación Navbar / Carrusel ===== */
.index-separator {
    height: 16px;
    background-color: #f6f3ef; /* mismo tono base del sitio */
}

/* Contenedor del carrusel */
.index-carrusel {
    padding-top: 10px;
}



/* =======================================================
   🎨 Navbar coherente con la marca (tono piel original)
   ======================================================= */
header, .navbar, .navbar-container {
  position: relative;
  z-index: 100;
}

/* Color piel suave */
.navbar,
.navbar-nav,
.navbar-container {
  background-color: #FBECE3 !important; /* ✅ tono piel cálido */
  color: #151515 !important;
  border: none !important;
}

.navbar a,
.navbar-brand,
.navbar-nav .nav-link,
.navbar-text {
  color: #151515 !important;
  transition: color 0.2s ease-in-out;
  font-weight: 500;
}

.navbar a:hover,
.navbar-nav .nav-link:hover {
  color: #F37021 !important; /* acento naranjo */
}

.navbar-toggler {
  border-color: transparent !important;
}
.badge-distancia {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #151515;              /* gris carbón */
    background-color: #F1EFED;   /* marfil */
    border-radius: 6px;
    border: 1px solid #e0dedb;
}
.badge-distancia{
    background: #e6f4ea;
    color: #1b5e20;
    border-color: #c8e6c9;
}
