/* ============================================
   BANNER DE COOKIES - ESTILOS
   Entre Asesores
   ============================================ */

/* Banner principal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(107, 114, 128, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 32px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.4s ease-out;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner-text {
    flex: 1;
    color: #ffffff;
}

.cookie-banner-text h3 {
    font-size: 19px;
    font-weight: 600;
    color: #f4d165;
    margin-bottom: 8px;
}

.cookie-banner-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

.cookie-banner-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #f4d165;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

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

.cookie-btn-primary {
    background-color: #f4d165;
    color: #374151;
}

.cookie-btn-primary:hover {
    background-color: #f5d97a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 209, 101, 0.3);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: #d1d5db;
    border: 2px solid #6b7280;
}

.cookie-btn-secondary:hover {
    border-color: #f4d165;
    color: #f4d165;
}

.cookie-btn-tertiary {
    background-color: transparent;
    color: #9ca3af;
    border: 2px solid transparent;
}

.cookie-btn-tertiary:hover {
    color: #d1d5db;
}

/* Modal de configuración */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(156, 163, 175, 0.15);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

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

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.cookie-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.cookie-modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.cookie-modal-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.cookie-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.cookie-modal-body {
    padding: 24px 32px 32px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-badge {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-required {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-optional {
    background-color: #f3f4f6;
    color: #6b7280;
}

.cookie-category-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

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

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

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

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

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

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

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

.cookie-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background-color: #f9fafb;
    border-radius: 0 0 16px 16px;
}

/* Animaciones */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .cookie-modal-header {
        padding: 24px 20px 20px;
    }

    .cookie-modal-body {
        padding: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
        padding: 20px;
    }
}
