:root {
  --primary: #c0de5d;
  --dark: #050a12;
  --gray-text: #6c757d;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.text-secondary {
  color: #b0b0b0;
}
body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
  font-family: 'Montserrat', sans-serif;
}


/* Altura del Header: quitamos el fijo de 80px para que no se corte el logo */
.main-header {
  height: 80px;       /* altura fija */
overflow: visible !important; /* 👈 Cambia 'hidden' por 'visible' */}

.logo-img-new {
  height: 60px;        /* tamaño base */
  width: auto;
  transform: scale(5.3); /* 👈 aquí lo agrandas */
  transform-origin: left center;
    margin-left: -50px; /* ajusta el número hasta que quede donde quieres */

}





/* --- ÚNICO BOTÓN CATEGORÍAS --- */
.btn-c0de5d {
    background-color: #c0de5d;
    color: #000;
    border: none;
    padding: 0.6rem 1.5rem !important; /* Altura y ancho normal */
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0 !important; /* NUNCA pongas 100px aquí */
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-c0de5d:hover {
    background-color: #b0cd53;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* Buscador estilo Falabella centrado */
.search-wrapper .search-input {
    border-radius: 25px 0 0 25px !important;
    border: 1px solid #ced4da !important;
    padding-left: 20px !important;
    height: 45px;
}





.search-wrapper .search-btn {
    border-radius: 0 25px 25px 0 !important;
    background-color: #c0de5d !important;
    color: #000 !important;
    padding: 0 20px !important;
    border: 1px solid #ced4da !important;
    border-left: none !important;
}

/* Ajuste rápido para móvil para que no se vea amontonado mientras arreglamos la web */
@media (max-width: 991px) {
    .logo-img-new {
        height: 40px;
    }
    .col-6 {
        width: 50%;
    }
}



/* Dropdown Menu */
.dropdown-menu {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
}

/* Cuando se abre el dropdown */
.show.dropdown-menu {
  opacity: 1;
  transform: translateY(0);
}

/* Items */
.dropdown-item {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
  color: #000;
}

/* Divider */
.dropdown-divider {
  border-top: 1px solid #e5e5e5;
}

/* Iconos dentro del dropdown */
.dropdown-item i {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Hover icono + texto */
.dropdown-item:hover i {
  color: #c0de5d;
}




/* BUSCADOR */
.search-input {
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.search-input::placeholder {
  color: #6c757d;
  font-weight: 500;
}

/* BOTON BUSQUEDA */
.search-btn {
  background-color: #c0de5d;
  color: #000;
  border: none;
  padding: 0 1.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background-color: #b0cd53;
}




/* Nav Links */
.nav-link {
  color: var(--nav-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.8px;
  position: relative;
  padding: 0.25rem 0;
  transition: all 0.3s ease;
}

/* Efecto underline animado con “slide + fade” */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.4s ease;
}

/* Hover y activo */
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Pequeña elevación al hover */
.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Sombra suave al hover (opcional, tipo glow) */
.nav-link:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 8px;
  background-color: var(--nav-hover-shadow);
  border-radius: 4px;
  transform: translateX(-50%) translateY(2px);
  opacity: 0.6;
  z-index: -1;
}






/* Carousel */
.carousel-item {
  height: 90vh; /* casi toda la pantalla */
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  transition: transform 0.5s ease; /* efecto suave */
}

.carousel-img-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.8), transparent); /* degradado sutil */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1, .hero-text h4, .hero-text p {
  transition: all 0.5s ease;
}

.carousel-item.active .hero-text h1 {
  transform: translateY(0);
  opacity: 1;
}

.carousel-item .hero-text h1 {
  transform: translateY(20px);
  opacity: 0;
}

/* Botones de carousel */
.carousel-control-prev, .carousel-control-next {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-size: 50%;
  background-color: rgba(0,0,0,0.6);
  border-radius: 50%;
}


/* Cards */
.card-custom {
  transition: 0.4s;
  border-radius: 15px;
}
.card-custom:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.icon-box {
  font-size: 3rem;
}
.border-bottom-blue {
  border-bottom: 5px solid var(--primary) !important;
}


/* =========================================
   WHATSAPP ULTRA-PRO (REFINADO)
   ========================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  z-index: 2000;
  text-decoration: none !important;
  /* Elimina cualquier cuadro o borde azul al hacer clic */
  outline: none !important;
}

.wa-text {
  background: white;
  color: #333;
  padding: 10px 20px;
  border-radius: 50px; /* Bordes totalmente redondeados */
  margin-right: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  transition: 0.3s;
}

.wa-icon {
  background: #25D366;
  width: 60px;  /* Tamaño más equilibrado */
  height: 60px;
  border-radius: 50% !important; /* Círculo perfecto */
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente */
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: wa-beat-pro 2s infinite;
  border: none !important;
}

.wa-icon img {
  width: 32px; /* Tamaño de imagen ajustado para que no toque los bordes */
  height: auto;
  display: block;
}

/* Interacción Pro */
.whatsapp-btn:hover .wa-icon {
  transform: scale(1.1) rotate(10deg);
  background: #20ba5a;
}

.whatsapp-btn:hover .wa-text {
  background: var(--primary);
  color: white;
}

/* Animación de latido profesional */
@keyframes wa-beat-pro {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Ajustes celulares */
@media (max-width: 768px) {
  .wa-text { display: none; } /* En móvil solo queda el círculo */
  .wa-icon { width: 55px; height: 55px; }
  .whatsapp-btn { bottom: 20px; right: 20px; }
}

 /* Hover links sociales y productos */
  footer a.hover-effect:hover {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s;
  }

  /* Botón volver arriba */
  footer .btn-outline-light {
    transition: transform 0.2s, background-color 0.2s;
  }
  footer .btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: #fff;
    color: #000;
  }

  /* Texto secundario */
  footer .text-secondary {
    color: #b0b0b0;
  }
.fs-1 {
  font-size: 3.5rem !important;
}

.footer-links a {
  text-decoration: none;
  color: #adb5bd;
  transition: 0.3s;
}
.footer-links a:hover { color: white; padding-left: 5px; }


/* Modifica esto en tu CSS */
.search-results {
    max-height: 400px; /* Altura máxima antes de que aparezca el scroll */
    overflow-y: auto;  /* Activa el scroll vertical */
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
    z-index: 1050;     /* Asegura que esté por encima de todo */
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: white;
    /* Esto es vital para que el scroll se vea en navegadores modernos */
    display: block; 
}

/* Mejora el diseño del scrollbar para que sea visible y elegante */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c0de5d; /* El color verde de tu marca */
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #b0cd53;
}




/* Opcional: Dale un poco más de espacio al header si sientes que el logo se sale */
header.sticky-top {
    height: auto !important; /* Deja que el contenido defina la altura o súbelo a 100px */
    padding-bottom: 10px;
}

.search-item {
  transition: background 0.2s ease, transform 0.15s ease;
}

.search-item:hover {
  background: #f8f9fa;
  transform: scale(1.01);
}

.search-item img {
  border-radius: 10px;
}

.search-item span {
  font-size: 0.95rem;
}
.search-bar {
  max-width: 500px;
  border-radius: 50px;
  overflow: hidden;
}

.search-input {
  border-radius: 50px 0 0 50px;
  padding-left: 20px;
  flex: 1;
  margin-right: -1px; /* <--- esto pega el botón al input */
    border: 1px solid #ced4da; /* borde gris claro para que se vea */

}

.search-btn {
  border-radius: 0 50px 50px 0;
  background: #c0de5d;
  color: #fff;
  padding: 0 18px;
  margin-left: 0; /* aseguramos que no haya gap extra */
}




/* scrollbar bonito */
.search-results::-webkit-scrollbar {
  width: 6px;
}
.search-results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
/* Animación hover */
.hover-scale {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-scale:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Opcional: iconos grandes y centrados */
.icon-box {
  font-size: 3rem;
}



/* Transiciones suaves */
.transition {
  transition: all 0.3s ease-in-out;
}

/* Contenedor general del carrusel de marcas */
.brands-strip {
    padding: 60px 0; /* Aumenta el primer número para bajarlo más */
    background-color: #fff; /* O el color que prefieras */
}

/* Eliminamos cualquier rastro de espacio extra */
.brands-strip {
    background-color: #ffffff;
    padding: 90px 0 !important; /* Un poco más de aire para que respire la marca */
    border-top: 1px solid #f0f0f0; /* Línea sutil para separar de las cards */
}

/* Forzamos al carrusel a medir solo lo que miden los logos */
#brandsCarousel, 
#brandsCarousel .carousel-inner, 
#brandsCarousel .carousel-item {
    height: auto !important;
    min-height: 110px; /* Ajusta según el tamaño de tus logos */
}

.brand-logo-custom {
    height: 115px; 
    width: auto;
    max-width: 180px;
    object-fit: contain;
  
}


/* Para que el cambio de slide de Bootstrap no sea brusco */
#brandsCarousel .carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}


/* SOLO PARA MOVILEEEEES  */
/* SOLO PARA MOVILEEEEES  */
/* SOLO PARA MOVILEEEEES  */
/* SOLO PARA MOVILEEEEES  */

@media (max-width: 991px) {
  /* Logo y botón juntos */
  .main-header .col-lg-3 {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* pega logo y boton al inicio */
    width: 100%;
    order: 1;
    gap: 8px; /* espacio entre logo y boton, ajusta a gusto */
  }

  /* Botón "CATEGORÍAS" un poco más arriba */
  .main-header .col-lg-3 .dropdown {
    margin-left: 0;       /* quita margen extra */
    margin-top: -5px;     /* sube el botón */
  }

  /* Buscador debajo con menos espacio */
  .main-header .col-lg-6 {
    order: 2;
    width: 100%;
    margin-top: 5px;      /* menos gap entre header y buscador */
  }

  /* Ajuste del botón para móvil */
  .btn-c0de5d {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem;
  }
}

/* Para móvil lo dejamos como está */
@media (max-width: 991px) {
    .btn-c0de5d {
        margin-top: -30px; /* o el valor que tenías antes para móvil */
    }
}