/*
 * --------------------------------
 * ESTILOS GLOBALES DE AUTOCOMPLETADO (contenedor principal)
 * --------------------------------
 */
.ui-autocomplete {
    background: #ffffff; 
    border: 1px solid #ccc; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    padding: 0;
    margin: 0;
    max-height: 300px; 
    overflow-y: auto; 
    /* Asegúrate de que aparezca sobre otros elementos */
    z-index: 1000; 
}

/* * --------------------------------
 * ESTILOS DE CADA RESULTADO (<li>)
 * --------------------------------
 */
.ui-menu .ui-menu-item {
    /* Separador: Aplica una línea inferior a cada elemento */
    border-bottom: 1px solid #eee; 
    padding: 0; 
}
/* Elimina la línea inferior del último elemento */
.ui-menu .ui-menu-item:last-child {
    border-bottom: none;
}

/* * --------------------------------
 * ESTILOS DEL CONTENEDOR INTERNO (para padding y estructura)
 * --------------------------------
 */
.autocomplete-product-item { /* Esta es la clase del <a> */
    padding: 8px 12px;
    display: flex !important; 
    flex-direction: column !important;
    width: 100%;
    text-decoration: none !important;
    color: inherit;
    
    /* CAMBIO CLAVE: Cambia el cursor a la manita */
    cursor: pointer;
}

/* * --------------------------------
 * ESTILOS DE TIPOGRAFÍA
 * --------------------------------
 */
.autocomplete-product-item .product-name {
    font-weight: bold;
    color: #333;
    font-size: 1.3em;
    line-height: 1.2;
    
    /* ESPACIO DE SEPARACIÓN */
    margin-bottom: 1px; 
}

.autocomplete-product-item .product-model {
    font-size: 0.9em; 
    color: #666;
    font-weight: normal;
}

/* * --------------------------------
 * ESTILO AL PASAR EL RATÓN (Hover)
 * --------------------------------
 */
/* 1. NEUTRALIZAR EL FONDO (Anula el color azul/gris en cualquier estado activo/enfocado) */
.ui-menu .ui-state-active, 
.ui-menu .ui-state-focus {
    /* La regla de fondo más importante para que no se pinte la caja */
    background: transparent !important; 
    border: none !important;
    color: inherit !important;
    cursor: pointer !important;
}


/* 2. APLICAR COLOR DE ILUMINACIÓN SOLO A LAS LETRAS */

/* Cuando el LI o cualquier elemento contenedor está activo/enfocado */
.ui-menu .ui-state-active .product-model,
.ui-menu .ui-state-active .product-name,
.ui-menu .ui-state-focus .product-model,
.ui-menu .ui-state-focus .product-name {
    color: #13acb9 !important; /* Color Azul de Iluminación */
}

/*
 * --------------------------------
 * ESTILOS DE WHATSAPP BUTTON
 * --------------------------------
 */

/* Contenedor del área de contacto */
.whatsapp-contact-area {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center; 
}

/* Estilo del enlace completo (el área clickeable) */
.whatsapp-button {
    display: inline-flex; 
    align-items: center; 
    text-decoration: none !important; 
    background-color: #E0FFEA; /* Fondo sutil verde muy claro */
    border: 1px solid #25D366; /* Borde del color oficial de WhatsApp */
    border-radius: 8px; 
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.3s ease; 
}

/* Efecto al pasar el ratón */
.whatsapp-button:hover {
    background-color: #C3FFD8; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

/* Estilo de la imagen del ícono */
.whatsapp-button img {
    width: 40px; 
    height: 40px;
    margin-right: 10px; 
    border: none;
    vertical-align: middle;
}

/* Estilo del texto del mensaje */
.whatsapp-button span {
    font-size: 1.1em;
    font-weight: bold;
    color: #128C7E !important; /* Verde oscuro, legible */
    line-height: 1.2;
}

/* Opcional: Estilos para móviles */
@media (max-width: 767px) {
    .whatsapp-button {
        display: flex; 
        padding: 15px 10px;
        font-size: 0.9em;
    }
    .whatsapp-button img {
        width: 30px; 
        height: 30px;
    }
}