/* Estilos para el banner de cookies LGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 4px solid #009739;
    font-family: 'Inter', sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner.hide {
    transform: translateY(100%);
    animation: slideDown 0.4s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

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

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    color: #FFDE00;
    font-size: 1.2em;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95em;
    color: #ecf0f1;
}

.cookie-text a {
    color: #FFDE00;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #ffffff;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

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

.cookie-btn-accept:hover {
    background: #007a2e;
    transform: translateY(-2px);
}

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

.cookie-btn-reject:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

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

.cookie-btn-settings:hover {
    background: #FFDE00;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Modal de configuración de cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    background: linear-gradient(135deg, #009739, #00bf4a);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.cookie-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 25px;
    color: #2c3e50;
}

.cookie-category {
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.cookie-category-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-toggle.active {
    background: #009739;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cookie-toggle.active::after {
    transform: translateX(25px);
}

.cookie-category-description {
    padding: 15px 20px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #5a6c7d;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cookie-modal-btn-save {
    background: #009739;
    color: white;
}

.cookie-modal-btn-save:hover {
    background: #007a2e;
}

.cookie-modal-btn-accept-all {
    background: #FFDE00;
    color: #2c3e50;
}

.cookie-modal-btn-accept-all:hover {
    background: #f1c40f;
}

.cookie-modal-btn-reject-all {
    background: #e74c3c;
    color: white;
}

.cookie-modal-btn-reject-all:hover {
    background: #c0392b;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-text h4 {
        font-size: 1.1em;
    }
    
    .cookie-text p {
        font-size: 0.9em;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.85em;
        padding: 8px 12px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .cookie-modal-header {
        padding: 15px;
    }
    
    .cookie-modal-header h3 {
        font-size: 1.2em;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-text h4 {
        font-size: 1em;
    }
    
    .cookie-text p {
        font-size: 0.85em;
    }
    
    .cookie-btn {
        font-size: 0.8em;
        padding: 6px 10px;
        min-width: 70px;
    }
    
    .cookie-category-header {
        padding: 12px 15px;
    }
    
    .cookie-category-description {
        padding: 12px 15px;
        font-size: 0.85em;
    }
}
