/* Cookies Banner - Versión Profesional y Discreta */
.cookies-banner {
    position: fixed;
    top: 20px;  /* Cambiado de bottom a top */
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    width: 90%;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.cookies-banner.show {
    display: block;
    animation: fadeInDown 0.5s ease-out;  /* Cambiado a fadeInDown */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookies-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookies-text {
    flex: 1;
}

.cookies-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e0e0e0;
}

.cookies-text a {
    color: #667eea;
    text-decoration: none;
}

.cookies-text a:hover {
    text-decoration: underline;
}

.cookies-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.btn-cookie-accept:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-cookie-settings {
    background: transparent;
    color: white;
    border: 1px solid #666;
}

.btn-cookie-settings:hover {
    background: #555;
}

/* Cookies Modal - Mejorado */
.cookies-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.cookies-modal.show {
    display: flex;
}

.cookies-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cookies-modal-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

.cookies-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.cookies-modal-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.cookie-category h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.cookie-toggle 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: .3s;
    border-radius: 22px;
}

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

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

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

.cookie-toggle.disabled {
    opacity: 0.6;
}

.cookies-modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookies-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookies-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookies-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

.btn-primario {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primario:hover {
    background: #5a6fd8;
}