/* /css/scc-style.css */

/* --- Banner Principal --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-banner p { margin: 0; flex-grow: 1; }
.cookie-consent-banner a { color: #4db2ec; text-decoration: underline; }
.cookie-consent-banner a:hover { color: #78caff; }

/* --- Botones --- */
.scc-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.scc-btn {
    background-color: #4db2ec;
    color: #fff;
    border: 1px solid #4db2ec;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.scc-btn:hover { background-color: #3ca1db; border-color: #3ca1db; }
.scc-btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.scc-btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

/* --- Modal de Configuración --- */
.cookie-consent-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.scc-modal-content {
    background-color: #fefefe;
    color: #333;
    margin: auto;
    padding: 25px 30px;
    border: 1px solid #888;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: sans-serif;
}

.scc-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}
.scc-modal-close:hover, .scc-modal-close:focus { color: #000; }

.scc-modal-content h3 { margin-top: 0; font-size: 22px; }
.scc-modal-content p { font-size: 15px; line-height: 1.6; }
.scc-modal-content .scc-btn { float: right; margin-top: 15px; }

/* --- Opciones dentro del Modal --- */
.scc-cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
}
.scc-option-text strong { font-size: 16px; }
.scc-option-text p { font-size: 14px; margin: 5px 0 0 0; color: #666; }

/* --- Toggle Switch (para cookie técnica desactivada) --- */
.scc-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.scc-switch input { opacity: 0; width: 0; height: 0; }
.scc-slider {
    position: absolute; cursor: not-allowed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}
.scc-slider:before {
    position: absolute; content: ""; height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .scc-slider { background-color: #4db2ec; }
input:checked + .scc-slider:before { transform: translateX(22px); }
/* --- Estilos para el Botón Flotante de Gestión --- */
.scc-manage-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9997; /* Justo debajo del banner y el modal */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.scc-manage-btn:hover {
    transform: scale(1.1);
    background-color: #4db2ec;
}

.scc-manage-btn svg {
    width: 48px !important;;
    height: 48px !important;;
}


/* --- Responsividad --- */
@media (max-width: 768px) {
    .scc-container { flex-direction: column; text-align: center; }
    .cookie-consent-banner p { margin-bottom: 15px; }
}