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

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);
}


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


/* 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%;
    }
}



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

/* 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;
}



/* BARRA BUSQUEDA */

.search-bar {
  max-width: 500px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  
}

/* 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;
}

/* --- Estilos Específicos de Quiénes Somos --- */




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

.breadcrumb-item a {
  text-decoration: none;
  transition: 0.3s;
}
.breadcrumb-item a:hover {
  color: var(--primary) !important;
}

.img-fluid {
  border-radius: 15px;
  transition: 0.5s ease;
}

.bg-light.rounded {
  border: 2px dashed #cbd5e0 !important;
  color: #a0aec0;
  font-weight: 600;
  background-color: #f7fafc !important;
}

.card-custom {
  transition: 0.4s;
  border-radius: 15px;
  background: #fff;
}
.card-custom:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.border-bottom-blue {
  border-bottom: 5px solid var(--primary) !important;
}

.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; }

/* =========================================
   FIX WHATSAPP - ELIMINA EL CUADRADO
   ========================================= */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  z-index: 2000;
  text-decoration: none !important;
  outline: none !important;
  border: none !important;
  background: transparent !important; /* Fuerza fondo transparente al enlace */
}

.wa-text {
  background: white;
  color: #333;
  padding: 10px 18px;
  border-radius: 30px;
  margin-right: 15px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  /* Evita que el texto tenga bordes cuadrados */
  border: none !important;
}

.wa-icon {
  background: #25D366 !important;
  width: 65px;
  height: 65px;
  border-radius: 50% !important; /* Círculo perfecto */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: wa-beat 2s infinite;
  
  /* ESTO ES LO MÁS IMPORTANTE PARA QUITAR EL CUADRADO */
  overflow: hidden; 
  border: none !important; 
  outline: none !important;
}

.wa-icon img {
  width: 35px;
  height: 35px;
  display: block;
  /* Evita que la imagen herede fondos extraños */
  background: transparent !important;
}

/* Animación de pulso mejorada */
@keyframes wa-beat {
  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 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Quitar cualquier borde de Bootstrap al hacer clic */
.whatsapp-btn:focus, .whatsapp-btn:active {
  outline: none !important;
  box-shadow: none !important;
}



  /* 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;
  }
.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;
}
/* 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;
}

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