/* Cookie Consent Styling */
#cookie-consent-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d; /* Bootstrap secondary text color */
    cursor: pointer;
    z-index: 1050; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#cookie-consent-icon:hover {
    background-color: #f8f9fa; 
    color: #E0007C; /* Accent color */
}

#cookie-consent-banner {
    position: fixed;
    bottom: 20px; /* Elevado del borde inferior */
    left: 50%;
    transform: translateX(-50%); /* Centrado horizontalmente */
    width: 90%; /* Ancho relativo a la ventana */
    max-width: 700px; /* Ancho máximo para apariencia de ventana */
    background-color: #ffffff;
    padding: 20px 25px; /* Padding ajustado */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* Sombra más de ventana */
    border-radius: 8px; /* Bordes redondeados */
    z-index: 1051;
    font-family: 'Poppins', sans-serif;
    color: #333;
    display: none; /* Initially hidden by JS */
}

.cookie-banner-content {
    display: flex;
    flex-direction: column; /* Apilar verticalmente */
    align-items: flex-start; /* Alinear items a la izquierda */
    margin-bottom: 20px; /* Más espacio antes de los enlaces del pie */
    gap: 15px; /* Espacio entre el bloque de texto y el bloque de botones */
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%; /* Ocupar todo el ancho disponible dentro del banner */
}

.cookie-banner-content p strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem; /* Slightly larger for the title part */
    font-weight: 600;
}

.cookie-banner-content p a {
    color: #E0007C; 
    text-decoration: underline;
}

.cookie-banner-content p a:hover {
    color: #B30062;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%; /* Asegurar que el contenedor de botones ocupe el ancho */
    justify-content: flex-start; /* Alinear botones a la izquierda por defecto */
}

.cookie-banner-actions .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 5px;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
}

#cookie-accept-btn {
    background-color: #E0007C; /* Magenta */
    border: 1px solid #E0007C;
    color: white;
}
#cookie-accept-btn:hover {
    background-color: #B30062; /* Darker Magenta */
    border-color: #B30062;
}

#cookie-deny-btn {
    background-color: #E9ECEF;
    border: 1px solid #E9ECEF;
    color: #495057;
}
#cookie-deny-btn:hover {
    background-color: #D6DCE1;
    border-color: #D6DCE1;
}

#cookie-prefs-btn {
    background-color: #FFFFFF;
    border: 1px solid #CED4DA;
    color: #495057;
}
#cookie-prefs-btn:hover {
    background-color: #F8F9FA;
}

.cookie-banner-footer-links {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #E9ECEF;
    /* max-width y margin auto ya no son necesarios aquí */
}

.cookie-banner-footer-links a {
    color: #6C757D;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0 15px;
}

.cookie-banner-footer-links a:hover {
    color: #333;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .cookie-banner-content p {
        max-width: 100%;
        margin-bottom: 15px;
    }
    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    #cookie-consent-banner {
        padding: 15px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    .cookie-banner-actions .btn:last-child {
        margin-bottom: 0;
    }
    .cookie-banner-footer-links {
        margin-top: 10px;
        padding-top: 10px;
    }
    .cookie-banner-footer-links a {
        display: block;
        margin: 5px 0;
    }
}
