/* Estilos para el banner de cookies mejorado */

/* Banner principal */
#cookie-banner-advanced {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

#cookie-banner-advanced.show {
    transform: translateY(0);
}

/* Contenedor del banner */
.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Contenido del banner */
.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.cookie-banner-content a {
    color: #ed563b;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-content a:hover {
    text-decoration: underline;
}

/* Botones del banner */
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #ed563b;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #d44a2f;
}

.cookie-btn-reject {
    background-color: #6c757d;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #5a6268;
}

.cookie-btn-settings {
    background-color: transparent;
    color: #ed563b;
    border: 2px solid #ed563b;
}

.cookie-btn-settings:hover {
    background-color: #ed563b;
    color: white;
}

/* Modal de configuración */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow-y: auto;
}

.cookie-modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.cookie-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 20px;
    color: #aaa;
    cursor: pointer;
}

.cookie-close:hover {
    color: #000;
}

/* Categorías de cookies */
.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Switch toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #ed563b;
}

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

/* Botones del modal */
.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        margin: 20px auto;
        padding: 20px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }
}