/* Estilos Banner de Cookies - Archivo: cookies.css */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -5px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #87CEEB;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cookie-header i {
    font-size: 2rem;
    color: #87CEEB;
}

.cookie-header h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.cookie-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.cookie-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.cookie-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-category h4 {
    color: #1e3c72;
    font-size: 1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.cookie-category p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Switch personalizado */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.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: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #87CEEB, #2a5298);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + .cookie-slider {
    background: #87CEEB;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Botones */
.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cookie-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #87CEEB, #2a5298);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.cookie-btn-config {
    background: white;
    color: #1e3c72;
    border: 2px solid #87CEEB;
}

.cookie-btn-config:hover {
    background: #f0f8ff;
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-reject:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

/* Footer del banner */
.cookie-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cookie-link {
    color: #1e3c72;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #87CEEB;
    text-decoration: underline;
}

/* Botón flotante de configuración */
.cookie-config-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB, #2a5298);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
}

.cookie-config-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(30, 60, 114, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        padding: 20px 15px;
    }

    .cookie-header h3 {
        font-size: 1.2rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        min-width: 100%;
    }

    .cookie-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-config-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}